/* ============================================================
   Policy pages — refunds.html, privacy.html.

   Shared on purpose. Two pages with duplicated CSS drift, and these
   two must not: they are the pages a Stripe reviewer and a customer
   in a dispute both read. index.html stays self-contained (it is the
   page that gets looked at first and must never depend on a second
   request); these two share this file, which is same-origin, so the
   "no third-party requests but the webfonts" rule still holds.

   Tokens are copied from index.html rather than imported. If a token
   changes there, change it here — HERO-SPEC.md §3 governs both.
   ============================================================ */

:root {
  --paper: #ffffff;
  --ink: #0F110F;
  --gray: #575D59;
  --green: #0E9F5D;
  --green-dark: #0A7A48;
  --hairline: #E8EAE8;
  --mesh-0: #05160E;

  --disp: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--green); color: #fff; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- nav: paper, not the hero's transparent-over-colour variant ---------- */
nav { border-bottom: 1px solid var(--hairline); background: var(--paper); }
.nav-inner {
  display: flex; align-items: center; gap: 2rem;
  padding: 1.15rem 1.5rem;   /* restate .wrap's gutter — see index.html .nav-inner */
  max-width: 48rem; margin: 0 auto;
}
.wordmark {
  font-family: var(--disp); font-weight: 700; font-size: 1.1rem;
  letter-spacing: 0.12em; text-decoration: none; color: var(--ink);
}
.nav-back {
  margin-left: auto; font-family: var(--disp); font-size: 0.95rem;
  font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav-back:hover { color: var(--green-dark); }

/* ---------- the document ---------- */
main { padding: 4rem 0 5rem; }
.eyebrow {
  font-family: var(--disp); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-dark);
}
h1 {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.08;
  letter-spacing: -0.02em; margin-top: 0.75rem;
}
.updated {
  margin-top: 1rem; font-family: var(--mono); font-size: 0.8rem;
  letter-spacing: 0.04em; color: var(--gray);
}
h2 {
  font-family: var(--disp); font-weight: 600; font-size: 1.45rem;
  line-height: 1.25; letter-spacing: -0.01em;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline);
}
h3 {
  font-family: var(--disp); font-weight: 600; font-size: 1.1rem;
  margin-top: 2rem;
}
p, ul, ol { margin-top: 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-top: 0.4rem; }
a { color: var(--green-dark); }
strong { font-weight: 600; }

/* the one-sentence rule at the top of a section — the thing someone
   skim-reading in a dispute must not be able to miss */
.rule {
  margin-top: 1.5rem; padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--green);
  background: rgba(14, 159, 93, 0.05);
  font-size: 1.1rem;
}
.rule strong { font-weight: 600; }

table {
  width: 100%; margin-top: 1.5rem; border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left; padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--hairline); vertical-align: top;
}
th {
  font-family: var(--disp); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray);
}
td.num { font-family: var(--mono); white-space: nowrap; }
/* wide tables scroll inside themselves rather than pushing the page sideways */
.table-scroll { overflow-x: auto; }

.note {
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline);
  font-size: 0.95rem; color: var(--gray);
}

/* ---------- footer: same block of colour the landing page ends on ---------- */
footer { background: var(--mesh-0); color: #fff; margin-top: 4rem; }
.foot-inner { padding: 3rem 1.5rem 3.5rem; max-width: 48rem; margin: 0 auto; }
.foot-mark {
  font-family: var(--disp); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.12em;
}
.foot-lines {
  margin-top: 1.75rem; display: grid; gap: 0.6rem;
  font-size: 0.95rem; color: rgba(255,255,255,0.75);
}
.foot-lines a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--green); }
.foot-lines a:hover { color: var(--green); }
.foot-copy { margin-top: 2rem; font-size: 0.9rem; color: rgba(255,255,255,0.5); }

@media (max-width: 560px) {
  main { padding: 2.5rem 0 3rem; }
  th, td { padding-right: 0.5rem; }
}
