/* Shared style of the plain public pages /terms.html and /privacy.html.
   A file (not an inline style block) so the CSP style-src 'self' covers it
   and no hash has to be recomputed when the pages change. Colours and type
   follow src/v2/tokens.css (light :root, dark via prefers-color-scheme). */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface-2: #f6f7f8;
  --line: #e9ebee;
  --ink: #171a20;
  --ink-2: #5c5e62;
  --accent-ink: #1f6b4a;
  --font-display: "Onest", "Segoe UI", system-ui, sans-serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --surface-2: #1b1f23;
    --line: #2b3036;
    --ink: #e8eaed;
    --ink-2: #a3a8ae;
    --accent-ink: #6cc596;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/24px var(--font-ui);
}
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.legal-brand {
  display: inline-block;
  margin-bottom: 32px;
  font: 600 18px/24px var(--font-display);
  color: var(--ink);
  text-decoration: none;
}
h1 {
  margin: 0 0 4px;
  font: 600 26px/32px var(--font-display);
  letter-spacing: -0.01em;
}
.meta {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 20px;
}
.lead { margin: 0 0 8px; }
h2 {
  margin: 32px 0 8px;
  font: 600 17px/24px var(--font-display);
}
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin: 0 0 6px; }
strong { font-weight: 600; }
a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 2px; }

.table-wrap { overflow-x: auto; margin: 0 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
th, td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; }

.legal-foot {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 20px;
}
.legal-foot a { margin-right: 16px; }

@media (max-width: 600px) {
  .legal { padding: 24px 16px 56px; }
  .legal-brand { margin-bottom: 24px; }
  h1 { font-size: 22px; line-height: 28px; }
  /* Stack table rows on a phone: each cell gets its column name above it. */
  table, thead, tbody, tr, th, td { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
  td { border: 0; border-top: 1px solid var(--line); }
  td:first-child { border-top: 0; background: var(--surface-2); font-weight: 600; }
}

@media print {
  .legal { max-width: none; padding: 0; }
  .legal-foot { display: none; }
  a { color: inherit; }
}
