/* ─────────────────────────────────────────────────────────────
   Legal / support pages — privacy, terms, support.

   Shares the manifesto's design tokens (same palette, same serif
   display + sans body, same topbar/footer language) so the legal
   pages read as part of the site rather than a bolted-on doc.

   Layout differs on purpose: legal copy is a reading document, so
   it uses a single 760px measure with a sticky table of contents
   rather than the manifesto's centered editorial hero.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #0a0808;
  --bg-warm: #131010;
  --paper: #1a1614;
  --ink: #f5f1ea;
  --ink-soft: rgba(245, 241, 234, 0.65);
  --ink-muted: rgba(245, 241, 234, 0.42);
  --line: rgba(245, 241, 234, 0.16);
  --line-soft: rgba(245, 241, 234, 0.08);
  --rust: #c9461f;
  --rust-soft: rgba(201, 70, 31, 0.16);
  --gold: #d4a653;
  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(201, 70, 31, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(184, 138, 58, 0.03) 0%, transparent 45%);
  pointer-events: none; z-index: -1;
}

/* ───── topbar (identical language to home/manifesto) ───── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 8, 8, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 40px;
  display: flex; align-items: center; gap: 32px;
}
.topbar a { text-decoration: none; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 700; font-size: 19px;
  color: var(--ink); letter-spacing: -0.01em;
}
.back-home { color: var(--ink-soft); transition: color 0.2s; }
.back-home:hover { color: var(--ink); }
.topnav { display: flex; gap: 2px; flex: 1; margin-left: 8px; }
.topnav a {
  padding: 8px 16px; color: var(--ink-soft); font-size: 14px; font-weight: 500;
  border-radius: 6px; transition: all 0.15s ease;
}
.topnav a:hover { color: var(--rust); }
.topnav a.active {
  color: var(--ink); font-weight: 600;
  border-bottom: 2px solid var(--rust); border-radius: 0; padding-bottom: 6px;
}
.topbar .actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-outline {
  font-size: 13px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  cursor: pointer; display: inline-block; transition: all 0.15s ease;
}
.btn-outline:hover { border-color: var(--ink); }
.btn-solid {
  font-size: 13px; font-weight: 600;
  padding: 10px 22px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  cursor: pointer; display: inline-block; transition: all 0.15s ease;
}
.btn-solid:hover { background: var(--rust); border-color: var(--rust); }
@media (max-width: 900px) {
  .topbar-inner { padding: 14px 22px; gap: 14px; }
  .topnav { display: none; }
}

/* ───── document head ─────────────────────────────────────────────
   One centred column, top to bottom. These pages exist to be read
   and cited, so the layout gets out of the way: no sidebar, no rules
   between sections, no ornament competing with the text.

   The COLUMN is centred; the prose inside it stays left-aligned,
   because centred body copy gives the eye no fixed return point and
   is measurably harder to read at this length.
   ───────────────────────────────────────────────────────────── */
.doc-head {
  max-width: 720px; margin: 0 auto; padding: 72px 24px 8px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rust); margin-bottom: 18px;
}
.doc-head h1 {
  font-family: var(--serif); font-size: 46px; font-weight: 600;
  line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 18px; color: var(--ink);
}
.doc-head .lede {
  font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 20px;
}
.doc-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted);
}
.doc-meta span { color: var(--rust); }
@media (max-width: 900px) {
  .doc-head { padding: 48px 22px 8px; }
  .doc-head h1 { font-size: 34px; }
  .doc-head .lede { font-size: 16.5px; }
}

/* ───── body ───── */
.doc-body { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
@media (max-width: 900px) { .doc-body { padding: 32px 22px 64px; } }

.prose { min-width: 0; line-height: 1.72; }
.prose section { padding-top: 8px; margin-bottom: 44px; scroll-margin-top: 96px; }
.prose h2 {
  font-family: var(--serif); font-size: 27px; font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.25;
  margin: 0 0 14px; color: var(--ink);
}
.prose h3 {
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--ink); margin: 26px 0 10px;
}
.prose p { color: var(--ink-soft); margin: 0 0 16px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }
.prose ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.prose ul li {
  color: var(--ink-soft); margin-bottom: 11px;
  padding-left: 22px; position: relative;
}
.prose ul li::before {
  content: "—"; position: absolute; left: 0;
  color: var(--ink-muted);
}
.prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-soft); }
.prose ol li { margin-bottom: 11px; padding-left: 4px; }
.prose ol li::marker { color: var(--rust); font-family: var(--mono); font-size: 13px; }
@media (max-width: 900px) { .prose h2 { font-size: 22px; } }

/* Callout — the few things a reader must not miss (AI limitations,
   affiliate disclosure, the deletion path). Deliberately quiet: a tinted
   block, no accent bar. It should read as a raised paragraph, not a
   banner interrupting the document. */
.callout {
  border: 1px solid var(--line-soft);
  background: var(--bg-warm); border-radius: 6px;
  padding: 20px 22px; margin: 0 0 18px;
}
.callout .kicker {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 9px;
}
.callout p:last-child { margin-bottom: 0; }

/* Data table — wide content scrolls inside its own container so the
   page body never scrolls horizontally on a phone. */
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 4px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
th, td {
  text-align: left; padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft); vertical-align: top;
}
th {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--rust);
  background: var(--bg-warm); white-space: nowrap;
}
td { color: var(--ink-soft); }
td strong { color: var(--ink); }
tr:last-child td { border-bottom: none; }

/* PLACEHOLDER marker — anything that must be confirmed by a human
   before this page is published. Deliberately loud. Grep for
   `class="todo"` to find every one of them. */
.todo {
  background: var(--rust-soft); color: var(--gold);
  border: 1px dashed var(--rust); border-radius: 3px;
  padding: 1px 7px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.02em; white-space: nowrap;
}

/* ───── support page ─────────────────────────────────────────────
   One centred card with a single action. Support has exactly one
   answer — email us — so the page shows one thing rather than
   sorting the reader into categories before they can act.
   ───────────────────────────────────────────────────────────── */
/* The head is already centred and rule-free for every page in this
   family, so support only needs the accent on the headline. */
/* Accent half of the headline, matching the display treatment used on
   the marketing pages. <em> carries no emphasis meaning here, so the
   italic is reset. */
.contact-head h1 em { font-style: normal; color: var(--rust); }

.contact-card {
  max-width: 620px; margin: 0 auto 24px;
  border: 1px solid var(--line); background: var(--bg-warm);
  border-radius: 14px; padding: 44px 32px; text-align: center;
}
.icon-tile {
  width: 60px; height: 60px; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; background: var(--rust-soft); color: var(--rust);
}
.contact-card p { color: var(--ink-soft); margin: 0 0 24px; }

/* Scoped under .prose so it beats `.prose a`, which would otherwise paint
   the label rust-on-rust and underline it. */
.prose a.btn-mail {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  background: var(--rust); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.1s ease;
  max-width: 100%; word-break: break-word;
}
.prose a.btn-mail:hover { background: #d8532a; color: #fff; }
.prose a.btn-mail:active { transform: scale(0.985); }

.contact-links { text-align: center; font-size: 15px; color: var(--ink-muted); }

@media (max-width: 620px) {
  .contact-card { padding: 34px 22px; border-radius: 12px; }
  .btn-mail { padding: 14px 22px; font-size: 14px; }
}

/* ───── footer ───── */
.footer-note {
  border-top: 1px solid var(--line); background: var(--bg);
  padding: 44px 40px; text-align: center;
}
.footer-note .small-caps {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--rust); margin-bottom: 14px;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  align-items: center; justify-content: center;
  font-size: 13px; margin-bottom: 20px;
}
.footer-links a { color: var(--ink-soft); text-decoration: none; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--rust); }
.footer-meta { font-size: 11px; color: var(--ink-muted); letter-spacing: 0.05em; }
@media (max-width: 900px) { .footer-note { padding: 36px 22px; } }
