/* Shared styles for the standalone pages: /privacy, /terms and /support.
   Colour and type tokens mirror the ones at the top of index.html; keep the two in step. */
:root {
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  --surface: #f6f1e7; --raised: #fffcf6; --sunken: #ece4d4;
  --line: #d9ccb6; --line-strong: #8a7a66;
  --ink: #2a1f17; --muted: #6b5b4c;
  --clay: #a3462a; --forest: #263e32; --on-forest: #f6f1e7;
  --sage: #79916a; --grain: #d9a23f;
  --seat-top: #263e32; --seat-ring: #263e32;
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #1c1712; --raised: #261f19; --sunken: #15110d;
    --line: #3d3329; --line-strong: #7d6d5b;
    --ink: #f2ebdf; --muted: #b8aa97;
    --clay: #e3805c; --forest: #3d6150; --on-forest: #f6f1e7;
    --sage: #8fa880; --grain: #e2b65c;
    --seat-top: #f6f1e7; --seat-ring: #f6f1e7;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #1c1712; --raised: #261f19; --sunken: #15110d;
  --line: #3d3329; --line-strong: #7d6d5b;
  --ink: #f2ebdf; --muted: #b8aa97;
  --clay: #e3805c; --forest: #3d6150; --on-forest: #f6f1e7;
  --sage: #8fa880; --grain: #e2b65c;
  --seat-top: #f6f1e7; --seat-ring: #f6f1e7;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 26px; }
main { flex: 1; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }
a { color: var(--clay); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: var(--radius-sm); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }
.mono { font-family: var(--font-mono); font-size: 13px; line-height: 18px; }
.label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* mark colours */
.mk-table { fill: var(--mk-table, var(--clay)); }
.mk-top { fill: var(--seat-top); }
.mk-sage { fill: var(--mk-sage, var(--sage)); }
.mk-grain { fill: var(--mk-grain, var(--grain)); }
.mk-ring { fill: none; stroke: var(--seat-ring); stroke-width: 2; }

/* header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; min-height: 68px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand span { font-family: var(--font-display); font-size: 28px; line-height: 1; letter-spacing: -0.02em; }
.head-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.head-nav a { color: var(--ink); text-decoration: none; padding-block: 6px; }
.head-nav a:hover { text-decoration: underline; }
.head-nav a[aria-current="page"] { color: var(--clay); font-weight: 600; }

/* document */
.doc { max-width: 46em; padding-block: 48px 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.02em; margin-top: 12px; }
.doc .updated { color: var(--muted); margin-top: 12px; }
.doc .lede { font-size: 18px; line-height: 28px; margin-top: 20px; }
.doc h2 { font-size: 24px; line-height: 1.2; margin-top: 44px; scroll-margin-top: 24px; }
.doc h3 { font-family: var(--font-sans); font-weight: 600; font-size: 17px; margin-top: 24px; }
.doc p, .doc ul { margin: 12px 0 0; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc .caps { font-size: 14px; line-height: 22px; }
.callout { margin-top: 28px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised); }
.callout p:first-child { margin-top: 0; }
.callout .big { font-family: var(--font-display); font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }

/* footer: sits on forest in both themes, so the logo uses the reversed colours */
.foot { background: var(--forest); color: var(--on-forest); padding-block: 32px; --mk-table: #e3805c; --mk-sage: #8fa880; --mk-grain: #e2b65c; --seat-top: #f6f1e7; --seat-ring: #f6f1e7; }
.foot a { color: var(--on-forest); }
.foot .brand { color: var(--on-forest); }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(246, 241, 231, 0.22); font-size: 14px; line-height: 20px; }
.foot-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
