/* ------------------------------------------------------------------
   Shared stylesheet for the policy pages (/privacy/, /terms/,
   /accessibility/, /do-not-sell/) and 404.html.

   Tokens are the Prototype Build Spec §1 values, VERBATIM — one design
   language across the app, the one-pager, and these documents.
   index.html keeps its own inline copy of the tokens (self-contained
   by design), so a token change must land in both places.

   Same posture as the one-pager: no external fonts, scripts, or
   trackers — nothing phones home from a wellness brand. These are
   documents, so they get no entrance motion at all: a policy should
   simply be there when you arrive.
------------------------------------------------------------------- */
:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #1F2430;
  --ink-soft: #6B7280;
  --accent: #2F6D62;
  --accent-soft: #E4EFEA;
  --line: #E8E2D8;
  --care: #8C4A3F;
  --on-accent: #FFFFFF;
  --r-bubble: 18px;
  --r-card: 16px;
  --r-button: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171C;
    --surface: #1D222A;
    --ink: #ECEAE4;
    --ink-soft: #9AA3AF;
    --accent: #7FB5A8;
    --accent-soft: #24332F;
    --line: #2A313B;
    --care: #C98A7F;
    --on-accent: #14171C;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- atmosphere: one quiet wash + the paper grain ---------- */
.field { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  width: 40vmax; height: 40vmax;
  right: -16vmax; top: -18vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  background: radial-gradient(circle at 35% 40%, var(--accent-soft), transparent 65%);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.page { position: relative; z-index: 2; }
.shell { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header (matches the one-pager) ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 0 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark svg { display: block; }
.leaf-stroke { stroke: var(--accent); }
.leaf-fill { fill: var(--accent); }
.flag {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- the document ---------- */
.doc {
  max-width: 740px;
  padding: clamp(44px, 8vh, 88px) 0 clamp(44px, 7vh, 76px);
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.doc h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.dateline {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15px;
}
.doc h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1.25;
  margin: 40px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.doc p, .doc li { font-size: 16.5px; }
.doc p + p { margin-top: 14px; }
.doc ul { margin-top: 14px; padding-left: 1.25em; }
.doc li + li { margin-top: 10px; }
.doc li::marker { color: var(--accent); }
.doc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.doc strong { font-weight: 600; }

/* Callout cards — the "short version" of a policy, and the passages that
   deserve a reader's full attention. */
.callout {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-card);
  padding: 20px 22px;
  margin-top: 28px;
}
.callout p + p { margin-top: 12px; }
.callout--care {
  border-color: color-mix(in srgb, var(--care) 34%, transparent);
  border-left-color: var(--care);
  background: color-mix(in srgb, var(--care) 7%, transparent);
}
/* All-caps legal passages stay verbatim; give the setting room to breathe. */
.caps p { font-size: 15px; line-height: 1.75; letter-spacing: 0.015em; }

/* ---------- footer (matches the one-pager, plus a top rule) ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: clamp(32px, 5vh, 48px) 0 44px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
/* Tap targets grow toward the 44px guideline without moving the text. */
.foot-links a { padding: 10px 0; margin: -10px 0; }
.foot-links a[aria-current="page"] { color: var(--ink-soft); }
.fineprint { max-width: 62em; }
/* Crisis-number links stay visually calm: same ink as their sentence. */
.fineprint a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 10px 4px;
  margin: -10px -4px;
}
