/* The legal pages (/terms, /privacy), in the landing page's language, per
   the 108bt-design skill: Cormorant Garamond headings, Lora text, maroon and
   gold on warm off-white, nothing heavier than 400. One reading column, with
   a contents list beside it on wide screens. */

:root {
  --bg: #EFE6D8; --bg-2: #F3EEE6; --surface: #FFFDF9;
  --ink: #221915; --ink-2: #5F5650; --ink-3: #978C84;
  --line: #E7E0D7; --line-2: #D8CEC3;
  --accent: #4A1A2E; --accent-2: #3A1424; --on-accent: #FAF6F0;
  --gold: #C8A96E; --gold-soft: #E8D5A8; --chip: #F3ECE2;
  --glow-mid: #2A0F1A; --glow-edge: #1A0710;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: Lora, Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(20px, 4.4vw, 72px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 calc(16px * var(--a11y-text, 1))/1.75 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; font-weight: 400; }
a { color: var(--accent); text-underline-offset: 3px; }
::selection { background: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 980px; background: var(--accent); color: var(--on-accent); text-decoration: none; transition: top 200ms var(--ease); }
.skip:focus { top: 12px; }

/* ---- Bar ------------------------------------------------------------------ */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(239, 230, 216, 0.85); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: inset 0 -1px 0 var(--line); }
.bar-in { height: 56px; width: min(100% - 2 * var(--gutter), 1120px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar img { display: block; height: 40px; width: auto; } /* the tall gold mark, 9 Oct 2026 */
.bar-links { display: flex; align-items: center; gap: 22px; font-size: calc(13px * var(--a11y-text, 1)); }
.bar-links a { color: var(--ink-2); text-decoration: none; }
.bar-links a[aria-current="page"] { color: var(--accent); }
.bar-links .cta { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 980px; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); transition: background-color 240ms var(--ease), color 240ms var(--ease); }
@media (hover: hover) { .bar-links a:hover { color: var(--ink); } .bar-links .cta:hover { background: var(--accent); color: var(--on-accent); } }
@media (max-width: 560px) { .bar-links .hide-sm { display: none; } }

/* ---- Heading ---------------------------------------------------------------- */
.head { width: min(100% - 2 * var(--gutter), 1120px); margin: 0 auto; padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 48px); }
.eyebrow { font-size: calc(11px * var(--a11y-text, 1)); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.title { font: 300 calc(clamp(44px, 7vw, 88px) * var(--a11y-text, 1))/1 var(--serif); letter-spacing: -0.02em; }
.title em { font-style: italic; color: var(--accent); }
.lede { margin-top: 20px; max-width: 38em; font-size: calc(clamp(17px, 1.3vw, 19px) * var(--a11y-text, 1)); line-height: 1.65; color: var(--ink-2); }
.meta { margin-top: 18px; font-size: calc(13px * var(--a11y-text, 1)); color: var(--ink-3); }

/* Draft notice: until the operator's lawyers have reviewed it */
.draft { margin-top: 28px; max-width: 46em; padding: 16px 20px; border-radius: 16px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line-2); font-size: calc(14px * var(--a11y-text, 1)); line-height: 1.6; color: var(--ink-2); }
.draft strong { font-weight: 400; color: var(--accent); }
.ph { padding: 0 6px; border-radius: 6px; background: rgba(200, 169, 110, 0.28); color: var(--accent-2); -webkit-box-decoration-break: clone; box-decoration-break: clone; overflow-wrap: anywhere; }

/* ---- Body: contents + text -------------------------------------------------- */
.layout { width: min(100% - 2 * var(--gutter), 1120px); margin: 0 auto; padding-bottom: clamp(80px, 10vw, 140px); display: grid; gap: 40px; }
@media (min-width: 960px) { .layout { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start; } }
.toc { font-size: calc(13px * var(--a11y-text, 1)); }
.toc p { font-size: calc(11px * var(--a11y-text, 1)); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 8px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { color: var(--ink-2); text-decoration: none; display: flex; gap: 10px; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .toc a:hover { color: var(--accent); } }
@media (min-width: 960px) { .toc { position: sticky; top: 96px; } }
@media (max-width: 959px) { .toc { padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); } }

.layout > * { min-width: 0; }
.doc { max-width: 44em; counter-reset: sec; overflow-wrap: break-word; }
.doc section { padding-top: 36px; margin-top: 36px; box-shadow: inset 0 1px 0 var(--line); counter-increment: sec; }
.doc section:first-child { padding-top: 0; margin-top: 0; box-shadow: none; }
.doc h2 { font: 300 calc(clamp(28px, 2.6vw, 36px) * var(--a11y-text, 1))/1.15 var(--serif); letter-spacing: -0.01em; margin-bottom: 16px; display: flex; gap: 14px; align-items: baseline; }
.doc h2::before { content: counter(sec, decimal-leading-zero); font: 400 calc(12px * var(--a11y-text, 1))/1 var(--body); letter-spacing: 0.1em; color: var(--gold); transform: translateY(-4px); }
.doc h3 { font-size: calc(16px * var(--a11y-text, 1)); color: var(--ink); margin: 22px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.25em; margin-top: 12px; display: grid; gap: 8px; }
.doc li::marker { color: var(--gold); }
.doc strong { font-weight: 400; color: var(--ink); }

/* A plain-words summary at the top of a section */
.short { margin-bottom: 16px; padding: 14px 18px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: calc(15px * var(--a11y-text, 1)); }
.short::before { content: "In short"; display: block; font-size: calc(10.5px * var(--a11y-text, 1)); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }

/* Tables of what we collect */
.table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: calc(14.5px * var(--a11y-text, 1)); }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; box-shadow: inset 0 -1px 0 var(--line); }
.table th { font-weight: 400; font-size: calc(11px * var(--a11y-text, 1)); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.table td:first-child { color: var(--ink); white-space: nowrap; }
.table td { color: var(--ink-2); }
@media (max-width: 640px) {
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { padding: 12px 0; box-shadow: inset 0 -1px 0 var(--line); }
  .table td { box-shadow: none; padding: 2px 0; white-space: normal; }
}

/* ---- Foot ------------------------------------------------------------------ */
.foot { background: linear-gradient(var(--glow-mid), var(--glow-edge)); color: rgba(250, 246, 240, 0.62); border-radius: 32px 32px 0 0; }
.foot-in { width: min(100% - 2 * var(--gutter), 1120px); margin: 0 auto; padding: 48px 0 40px; display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; font-size: calc(13px * var(--a11y-text, 1)); }
.foot a { color: rgba(250, 246, 240, 0.8); text-decoration: none; }
.foot nav { display: flex; gap: 22px; }
@media (hover: hover) { .foot a:hover { color: var(--on-accent); } }

/* ---- Accessibility modes (src/lib/a11y.ts; the app's own are in src/app/a11y.css) ------------ */
/* Colour-blind friendly: the app's red-green filter (src/components/a11y/a11y-filter.tsx), inline in the page. */
html.a11y-colour { filter: url(#a11y-cvd); }
html.a11y-contrast { --ink: #120D0B; --ink-2: #2B2420; --ink-3: #4A413B; --line: #8C8178; --line-2: #6E645C; }
html.a11y-contrast .bar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.a11y-contrast :focus-visible { outline-width: 3px; }
html.a11y-text { --a11y-text: 1.2; }
