/* ---------------------------------------------------------------------------
   page.css — shared styling for the policy and contact pages.

   The landing page is deliberately a single self-contained file. Everything
   else on the site shares this stylesheet, so a colour or type change happens
   in one place instead of six.

   Same tokens as index.html. Keep them in step if you change one.
   --------------------------------------------------------------------------- */

:root {
  /* v2 palette: white ground, navy, one green. Matches index.html. */
  --paper:    #ffffff;
  --sand:     #f7f8fa;
  --ink:      #131a26;
  --ink-soft: #3f4653;
  --ink-mute: #3d4452;
  --rule:     #e6e8ec;
  --accent:   #1f7a52;
  --accent-ink: #166344;
  --navy:     #16233a;
  --wa:       #1f8f4e;

  --head: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Shell ─────────────────────────────────────────────────────────────── */
.shell { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
.shell--wide { max-width: 1120px; }

/* ── Header ────────────────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: clamp(1.25rem, 4vw, 2rem);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__name { font-family: var(--head); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.brand__logo { height: 36px; width: auto; display: block; }
.brand__sub { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.topbar__back { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }

/* ── Document body ─────────────────────────────────────────────────────── */
main { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(3rem, 8vw, 5rem); }

.doc__kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 1.25rem;
}
h1 {
  font-family: var(--head); font-weight: 600;
  font-size: clamp(2rem, 6vw, 3rem); line-height: 1.05; letter-spacing: -0.025em;
   margin: 0 0 1rem; text-wrap: balance;
}
.doc__updated {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft);
  margin: 0 0 clamp(2rem, 5vw, 3rem); padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums;
}

h2 {
  font-family: var(--head); font-weight: 600;
  font-size: clamp(1.3rem, 3.4vw, 1.65rem); line-height: 1.15; letter-spacing: -0.02em;
  
  margin: clamp(2.25rem, 5vw, 3rem) 0 .85rem;
  padding-top: 1.5rem; border-top: 1px solid var(--rule);
  text-wrap: balance;
}
h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
h3 {
  font-family: var(--head); font-weight: 600; font-size: 1.1rem;
  letter-spacing: -0.015em; line-height: 1.25; margin: 1.75rem 0 .6rem;
}

p, li { max-width: 62ch; }
p { margin: 0 0 1rem; text-wrap: pretty; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.3rem; }
li { margin-bottom: .5rem; line-height: 1.6; }
strong { font-weight: 600; }

/* Definition-style rows, used for refund tiers and contact details. */
.rows { border-top: 1px solid var(--rule); margin: 1.5rem 0 2rem; max-width: 62ch; }
.row {
  display: grid; grid-template-columns: minmax(min(140px, 100%), 1fr) 2fr; gap: .35rem 1.5rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.row__key { font-family: var(--head); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.row__val { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

/* A boxed aside — used for "we never see your card details" and similar. */
.note {
  border: 1px solid var(--rule); background: var(--sand);
  padding: clamp(1.1rem, 3vw, 1.5rem); margin: 1.75rem 0; max-width: 62ch;
}
.note p:last-child { margin-bottom: 0; }
.note__label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .75rem;
}

/* Anything the owner must replace before publishing. */
.ph {
  background: #fdf3d8; border-bottom: 1px solid #d9c48a;
  padding: 0 .2em; font-family: var(--mono); font-size: .92em;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-size: 16px; font-weight: 600; text-decoration: none;
  padding: 15px 28px; border-radius: var(--radius); border: 1px solid transparent;
  min-height: 44px; transition: transform .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn--wa:hover { color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: #ccd2db; }
.btn--ghost:hover { color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.5rem 0; }

/* ── Footer ────────────────────────────────────────────────────────────── */
footer { padding-block: clamp(2rem, 5vw, 3rem); }
.footrow {
  border-top: 1px solid var(--rule); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem 1.75rem;
  align-items: baseline; justify-content: space-between;
}
.footrow nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; font-size: 14.5px; }
.footrow__note { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); letter-spacing: .06em; margin: 0; }

/* ── Legal identity block, repeated in the footer of every policy page ─── */
.identity {
  border-top: 1px solid var(--rule); padding-top: 1.5rem; margin-top: 2.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 1.5rem 2.5rem;
}
.identity p { font-size: 14.5px; line-height: 1.7; margin: 0; max-width: none; }
.identity__label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .5rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* The "where should we send it?" form on the thank-you page. Only appears when
   checkout passed on no email address, which is the one case where the
   customer has paid and we have no way to reach them. */
.capture__form { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.capture__form input[type="email"] {
  flex: 1 1 14rem; min-width: 0;
  font: inherit; font-size: 16px;      /* 16px or iOS zooms in on focus */
  padding: 12px 14px; min-height: 46px;
  border: 1px solid var(--rule2, #ccd2db); border-radius: 3px; background: #fff;
}
.capture__form .btn { flex: 0 0 auto; }
@media (max-width: 460px) { .capture__form .btn { flex: 1 1 100%; } }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
