/*
  Styles for /privacy and /terms.

  These two pages are plain static HTML in `public/`, not React. Vite copies
  `public/` into `dist/` untouched, so `dist/privacy/index.html` is a real file
  and Cloudflare Pages serves it at `/privacy` with no router, no SPA fallback
  and no JavaScript. Legal copy should render with the network on fire.

  Tokens are copied from src/styles/tokens.css rather than imported: that file
  goes through the Vite pipeline and gets a hashed name, which a static page in
  `public/` cannot reference. Keep the two in step by hand if the palette moves.

  Dark mode is a deliberate addition — the marketing site is light-only. A
  legal document gets read once, often at night, on a phone, by someone who has
  their phone in dark mode. Letting the browser auto-invert cream-on-ink is
  worse than choosing the dark palette ourselves.
*/

:root {
  --paper: #f6f0e4;
  --paper2: #ede4d1;
  --ink: #1f1b14;
  --inkSoft: #524a3a;
  --inkMute: #6a6354;
  --ochre: #b8843d;
  --ochreDeep: #7a5520;
  --eucDeep: #4f5e47;
  --line: rgba(31, 27, 20, 0.14);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14100a;
    --paper2: #1f1b14;
    --ink: #f2ece0;
    --inkSoft: #c8c0af;
    --inkMute: #9a927f;
    --ochre: #d8a763;
    --ochreDeep: #e5c896;
    --eucDeep: #c4d0b9;
    --line: rgba(242, 236, 224, 0.16);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Bricolage Grotesque", -apple-system, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.bar {
  background: var(--eucDeep);
  padding: 14px 0;
}

@media (prefers-color-scheme: dark) {
  .bar {
    background: var(--paper2);
    border-bottom: 1px solid var(--line);
  }
}

.bar a {
  color: var(--paper);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .bar a {
    color: var(--ink);
  }
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  padding: 40px 0 72px;
}

h1 {
  font-size: clamp(30px, 7vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(21px, 4.6vw, 25px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 24px 0 8px;
}

p,
ul,
ol {
  margin-bottom: 14px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

a {
  color: var(--ochreDeep);
}

.stamp {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--inkMute);
  margin-bottom: 28px;
}

.lede {
  font-size: 19px;
  color: var(--inkSoft);
  margin-bottom: 28px;
}

/* A stated fact that carries risk — the allergen carve-out, the Gemini
   disclosure, the consumer guarantees. Not decoration: these are the lines a
   reader must not skim past. */
.flag {
  background: var(--paper2);
  border-left: 4px solid var(--ochre);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  margin: 20px 0;
}

.flag > :last-child {
  margin-bottom: 0;
}

/* Sub-processor table. Collapses to stacked cards on a phone, because a
   four-column table at 375px is unreadable and horizontal scroll hides rows. */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 16px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--inkMute);
}

@media (max-width: 640px) {
  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }

  td {
    border: 0;
    padding: 2px 0;
  }

  td::before {
    content: attr(data-label) ": ";
    color: var(--inkMute);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  td:first-child::before {
    content: "";
  }

  td:first-child {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
  }
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 20px;
  font-size: 15px;
  color: var(--inkMute);
}

footer a {
  color: var(--inkSoft);
}
