/*
 * The privacy and terms pages. Tokens and typefaces are the landing page's
 * (index.html), which mirror the iOS app: blue brand on mist in light, mint
 * brand on black in dark. Keep the three in step.
 */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial");
  ascent-override: 89.71%;
  descent-override: 26.62%;
  line-gap-override: 0%;
  size-adjust: 109.69%;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #f1f5f8;
  --surface: #ffffff;
  --border: #dfe5ee;
  --text: #101418;
  --text-muted: #596571;
  --brand: #1d60fb;
  --brand-ink: #154ecc;
  --accent-soft: #edf3ff;
  --focus-ring: 0 0 0 3px rgba(29, 96, 251, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", "Space Grotesk Fallback", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1f1f1f;
    --border: #353a40;
    --text: #ffffff;
    --text-muted: #8e8e93;
    --brand: #77eaa9;
    --brand-ink: #a9f5c9;
    --accent-soft: #18352a;
    --focus-ring: 0 0 0 3px rgba(119, 234, 169, 0.4);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

header, main, footer {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
}

header { padding: 28px 0 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 8px;
}
.brand:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* The app icon; the light and dark variants differ only in these three colours. */
.brand__mark { width: 36px; height: 36px; display: block; flex: none; }
.brand__mark-a { stop-color: #1f1f1f; }
.brand__mark-b { stop-color: #10254b; }
.brand__mark-hole { fill: #10254b; }
@media (prefers-color-scheme: dark) {
  .brand__mark-a { stop-color: #000000; }
  .brand__mark-b { stop-color: #101d32; }
  .brand__mark-hole { fill: #101d32; }
}

main { flex: 1; padding: 40px 0 64px; }

.kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lede { margin: 18px 0 0; font-size: 19px; color: var(--text-muted); }

h2 {
  margin: 48px 0 0;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h3 { margin: 28px 0 0; font-size: 17px; font-weight: 650; }

p, ul, ol { margin: 12px 0 0; }
ul, ol { padding-left: 22px; }
li + li { margin-top: 6px; }

a { color: var(--brand-ink); text-underline-offset: 3px; }
a:focus-visible { outline: none; border-radius: 4px; box-shadow: var(--focus-ring); }

/* The short version, on the stub's paper. */
.short {
  margin: 32px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.short h2 { margin: 0; font-size: 19px; }
.short ul { margin-top: 10px; }

/* How long things are kept: a table that lets itself be scrolled sideways on a phone. */
.table { margin: 16px 0 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; }
th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
tbody tr { border-top: 1px solid var(--border); }
td:first-child { min-width: 170px; }

footer {
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}
footer p { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
footer a { color: inherit; text-decoration: underline; }
footer a:hover { color: var(--text); }
