/* Shared by /privacy and /terms. Tokens, nav, button and footer are copied from
   index.html's inline <style> so the legal pages read as the same site; keep the
   two in step when the palette changes. Everything below "legal prose" is new. */
:root {
  color-scheme: light dark;
  --bg-0:#f0f0ed; --bg-1:#fafaf8; --bg-2:#ffffff;
  --elev-1:rgba(17,17,17,0.03);
  --elev-2:rgba(17,17,17,0.05);
  --elev-3:rgba(17,17,17,0.07);
  --line:rgba(17,17,17,0.09);
  --line-2:rgba(17,17,17,0.14);
  --text:#111111; --text-2:#4f4f4c; --text-3:#6b6b67; --text-faint:#a3a39e;
  --text-small:#62625e;
  --btn-bg:#111111; --btn-fg:#ffffff;
  --m-blue:#3b8cf0; --m-sun:#f7c531; --m-magenta:#e04fd0; --m-lime:#9bdc3c; --m-orange:#ff7a3d;
  --t-blue:#1f6fd6; --t-sun:#8f6400; --t-magenta:#a8279a; --t-lime:#3d7a12; --t-orange:#c2470f;
  --accent:var(--t-blue);
  --nav-scrim:rgba(250,250,248,.8);
  --stage-shadow:0 1px 2px rgba(17,17,17,.05), 0 20px 50px rgba(17,17,17,.07);
  --phones:#151515;
  --r:999px; --r-lg:14px; --r-xl:20px; --r-2xl:28px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Display",system-ui,"Segoe UI",sans-serif;
  --pad:clamp(20px, 5vw, 64px);
  --maxw:1180px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg-0:#0a0a0b; --bg-1:#111113; --bg-2:#18181b;
    --elev-1:rgba(255,255,255,0.03);
    --elev-2:rgba(255,255,255,0.05);
    --elev-3:rgba(255,255,255,0.07);
    --line:rgba(255,255,255,0.08);
    --line-2:rgba(255,255,255,0.12);
    --text:#f3f3f0; --text-2:#a5a5a0; --text-3:#7c7c77; --text-faint:#55554f;
    --text-small:#8a8a85;
    --btn-bg:#f3f3f0; --btn-fg:#111111;
    /* on a dark ground the mascot colours themselves are readable as text */
    --t-blue:#5aa2ff; --t-sun:#f7c531; --t-magenta:#ef72e2; --t-lime:#a6e350; --t-orange:#ff8a52;
    --nav-scrim:rgba(17,17,19,.78);
    --stage-shadow:0 1px 2px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.4);
    --phones:#ecedf2;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px; line-height: 1.55; letter-spacing: -0.011em;
  color: var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background: var(--bg-1);
}
::selection { background: rgba(59,140,240,.28); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---------------- nav ---------------- */
header { position: sticky; top: 0; z-index: 50; background: var(--nav-scrim); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 15.5px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  padding: 10px 20px; border-radius: var(--r); border: 1px solid transparent;
  color: var(--btn-fg);
  background: var(--btn-bg);
  transition: transform .15s var(--ease), opacity .2s var(--ease);
}
.btn:hover { opacity: .86; }
.btn:active { transform: translateY(1px); }
.btn.lg { font-size: 16px; padding: 15px 30px; }
.btn svg { width: 16px; height: 16px; }

/* ---------------- legal prose ---------------- */
.legal { max-width: 720px; padding-block: clamp(40px, 8vh, 88px) clamp(56px, 10vh, 112px); }
.legal .kicker { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--t-blue); }
.legal h1 { margin: 0 0 10px; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -0.035em; }
.legal .updated { margin: 0 0 36px; font-size: 14px; color: var(--text-3); }
.legal h2 { margin: 48px 0 12px; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.022em; scroll-margin-top: 80px; }
.legal h3 { margin: 26px 0 8px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.summary { background: var(--elev-1); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px 24px 8px; margin: 0 0 12px; }
.summary h2 { margin-top: 0; font-size: 17px; }
.legal .toc { columns: 2 220px; column-gap: 28px; margin: 28px 0 0; padding: 0 0 0 2px; list-style: none; font-size: 14.5px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }
.table-wrap { overflow-x: auto; margin: 4px 0 18px; border: 1px solid var(--line); border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--text-2); }
th { color: var(--text); font-weight: 600; background: var(--elev-1); }
tr:last-child td { border-bottom: 0; }
.caps { font-size: 14.5px; }

/* ---------------- footer ---------------- */
footer { border-top: 1px solid var(--line); padding-block: 30px 38px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 13px; color: var(--text-small); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-left: auto; }
.foot a { color: var(--text-small); text-decoration: none; }
.foot a:hover, .foot a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .nav { height: 58px; }
  .nav .btn { padding: 9px 14px; font-size: 13.5px; }
  .foot nav { margin-left: 0; width: 100%; }
}

/* Unfilled facts (legal name, jurisdiction). Loud on purpose: none may ship. */
.todo { background: var(--m-sun); color: #111; border-radius: 4px; padding: 0 4px; font-weight: 600; }
