/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES — /terms.html, /privacy.html
   ───────────────────────────────────────────────────────────────
   Shared by both, and by nothing in the app.

   These are standalone documents, not routes. The app is one canvas
   with floating glass over it; a legal page is a column of prose
   that has to survive being printed, quoted in an email, and opened
   by a compliance reviewer with JavaScript disabled. So they live in
   public/ as real files at real URLs, served without booting
   three.js or Convex.

   The palette is COPIED from src/index.css rather than imported.
   Importing would put these pages behind the bundle, which is the
   one thing they must not be. If the interface is re-tinted, this
   file is the second place to change — it is not wired to the first.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --paper: #fcf6f3;
  --paper-2: #ffffff;
  --line: rgba(120, 92, 98, 0.18);
  --ink: #2c2229;
  --ink-dim: #6b5d66;
  --accent: #a35c4e;
  --accent-deep: #8a4a3d;
  --accent-soft: rgba(163, 92, 78, 0.09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 15.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.back {
  display: inline-block;
  margin-bottom: 34px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
}
.back:hover { color: var(--accent-deep); }

h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.dates {
  margin: 0 0 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
}

h2 {
  margin: 46px 0 12px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h2 .num {
  margin-right: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

h3 {
  margin: 26px 0 8px;
  font-size: 15.5px;
  font-weight: 700;
}

p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 8px; }
strong { font-weight: 700; }

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Storage keys named in the privacy policy. Set in the same mono the interface
   uses for figures, so a reader can tell "the literal string in your browser"
   from prose describing it. */
code {
  padding: 1px 5px;
  background: var(--accent-soft);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.86em;
}

/* The clause a payment processor or a reviewer comes to the page to read.
   Boxed so it cannot be missed by someone scanning, and so a screenshot of it
   stands on its own. */
.rules {
  margin: 18px 0 20px;
  padding: 20px 22px 6px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}
.rules ul { padding-left: 19px; }

.note {
  padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 14px;
}
.note > :last-child { margin-bottom: 0; }

/* What we hold, item by item. A table would be the obvious shape and is the
   wrong one — the "why" column runs to two sentences, and a three-column table
   carrying a paragraph is unreadable on a phone and unprintable anywhere. */
.record {
  padding: 16px 18px;
  margin-bottom: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.record h3 { margin: 0 0 6px; font-size: 14.5px; }
.record p { margin: 0 0 8px; font-size: 14px; }
.record > :last-child { margin-bottom: 0; }
.record .kept {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-dim);
}

footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-dim);
}

@media (max-width: 560px) {
  .wrap { padding: 40px 20px 72px; }
  h1 { font-size: 27px; }
}

@media print {
  body { background: #ffffff; }
  .back { display: none; }
  .rules, .record { break-inside: avoid; }
}
