/* ==========================================================================
   EmailHelp — Refund Policy page styles (css/pages/refund-policy.css)
   Only refund-policy-specific rules live here: the hero "money-back windows"
   card, the summary table, the TOC help box and small prose tweaks.
   Everything else comes from css/style.css (.page-hero, .legal-grid, .toc,
   .prose, .legal-meta, .callout, .table-wrap, .cta-band).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page hero: copy on the left, glass "money-back windows" card on the right
   (the card is desktop-only — on phones the summary table sits just below)
   -------------------------------------------------------------------------- */
.refund-hero .page-hero__content { max-width: 720px; }
.refund-hero h1 { letter-spacing: -.03em; }
/* Each wrapped line gets its own full gradient sweep so the hue does not jump at a line break */
.refund-hero h1 .gradient-text {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-image: linear-gradient(90deg, #818CF8 0%, #A78BFA 45%, #22D3EE 100%);
}
.refund-hero .lead { max-width: 600px; }
.refund-hero .hero__actions { margin-bottom: 0; }

.refund-hero__grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.refund-glance { display: none; }
@media (min-width: 1024px) {
  .refund-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 380px); }
  .refund-glance { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 20px; justify-self: end; width: 100%; }
}
.refund-glance,
.refund-glance:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 40px -20px rgba(0, 0, 0, .6); } /* .card--static:hover would swap in the light shadow */
.refund-glance__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}
.refund-glance__title .icon { width: 18px; height: 18px; color: var(--cyan); }
.refund-glance__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.refund-glance__list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.refund-glance__list li:first-child { border-top: 0; padding-top: 4px; }
.refund-glance__plan,
.refund-glance__window { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.refund-glance__plan { flex: 1 1 auto; color: #fff; font-weight: 600; font-size: .98rem; }
.refund-glance__plan small,
.refund-glance__window small { font-size: .76rem; font-weight: 400; line-height: 1.35; color: var(--text-muted-dark); }
.refund-glance__window {
  flex: 0 0 auto;
  max-width: 44%;
  align-items: flex-end;
  text-align: right;
  font-family: var(--font-heading, "Sora", system-ui, sans-serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  background: linear-gradient(90deg, #A5B4FC 0%, #C4B5FD 50%, #67E8F9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.refund-glance__window small { -webkit-text-fill-color: var(--text-muted-dark); color: var(--text-muted-dark); background: none; }
.refund-glance__foot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .82rem;
  line-height: 1.5;
  color: var(--text-muted-dark);
}
.refund-glance__foot .icon { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }

/* --------------------------------------------------------------------------
   Table of contents: help box under the links (desktop only)
   -------------------------------------------------------------------------- */
.toc__help {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.toc__help p { margin: 0 0 12px; font-size: .84rem; line-height: 1.5; color: var(--text-muted); }
@media (min-width: 1024px) {
  .toc__help { display: block; }
}

/* --------------------------------------------------------------------------
   Prose tweaks: summary table, buttons and the contact block
   -------------------------------------------------------------------------- */
.prose .table-wrap { margin: 1.5em 0 1em; }
.refund-table { min-width: 720px; table-layout: fixed; }
.refund-table col.is-plan { width: 25%; }
.refund-table col.is-window { width: 18%; }
.refund-table col.is-qualifies { width: 33%; }
.refund-table col.is-cancel { width: 24%; }
.refund-table th[scope="row"] {
  text-transform: none;
  letter-spacing: 0;
  font-size: .98rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-2);
}
.refund-table th[scope="row"] small,
.refund-table td small {
  display: block;
  margin-top: 3px;
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-muted);
}
.refund-table td { font-size: .92rem; line-height: 1.55; }
.refund-table__window {
  display: inline-block;
  font-family: var(--font-heading, "Sora", system-ui, sans-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-600);
  white-space: nowrap;
}
.refund-table tbody tr:hover td { background: rgba(99, 102, 241, .03); }
.prose .small { font-size: .875rem; line-height: 1.6; }

.prose .btn,
.prose .btn:hover { text-decoration: none; }
.prose .refund-contact__grid { display: grid; gap: 14px; margin: 0 0 1.6em; }
@media (min-width: 640px) {
  .prose .refund-contact__grid { grid-template-columns: 1fr 1fr; }
}
.refund-contact__card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.refund-contact__card .icon-tile { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; }
.refund-contact__card .icon-tile .icon { width: 22px; height: 22px; }
.refund-contact__card h3 { margin: 0 0 4px; font-size: 1.02rem; }
.refund-contact__card p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--text-muted); }
.refund-contact__card p a { color: var(--text); font-weight: 500; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .refund-hero .page-hero__content { max-width: 780px; }
}
@media (max-width: 1024px) {
  .refund-body .toc { max-width: 780px; } /* single-column layout: line the chip box up with .prose (max-width 780px) */
}
@media (max-width: 720px) {
  .legal-meta { gap: 6px 14px; }

  /* Summary table → one stacked card per plan. On a phone the 4-column table only fits by
     scrolling sideways, which hides "What qualifies" and "Cancellation" — the two cells the
     page exists for. Each <td> carries its column heading in data-label. */
  .refund-table { display: block; min-width: 0; table-layout: auto; }
  .refund-table colgroup { display: none; }
  .refund-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .refund-table tbody,
  .refund-table tr { display: block; }
  .refund-table tr { padding: 16px 18px 6px; border-bottom: 1px solid var(--border); }
  .refund-table tr:last-child { border-bottom: 0; }
  .refund-table th[scope="row"],
  .refund-table td { display: block; padding: 0 0 12px; border: 0; background: transparent; }
  .refund-table th[scope="row"] { padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px dashed var(--border); font-size: 1.05rem; }
  .refund-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .refund-table td small { display: inline; margin: 0 0 0 6px; }
  .refund-table tbody tr:hover td { background: transparent; }
}
