/* The text pages (Privacy, Terms, DPA, Subprocessors, Security, How the score works), in the product's own terms,
   like the landing page: Geist, Tenura ink on the cool grey frame, pill buttons, and the ink button that starts a trial. A list of the page's sections stays beside
   the text on a wide screen (legal.js builds it from the headings) and folds into a menu on a narrow one. */
@font-face { font-family: "Geist"; src: url("/vendor/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #f1f2f4; --ink: #0e1320; --muted: #5e636c; --field: #e6e8ec; --surface: #ffffff;
  --dark: #0f1012; --dark-2: #2c2d31; --dark-ink: #f4f4f5; --dark-muted: #9c9ea6;
  --accent: #0e1320; --accent-hover: #262c3d; --on-accent: #ffffff;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(clamp(16px, 2.2vw, 32px), env(safe-area-inset-left, 0px));
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #0f1012; --ink: #f4f4f5; --muted: #9c9ea6; --field: #1c1d20; --surface: #16171a;
    --dark: #08090a; --dark-2: #1c1d20; --accent: #f2f2f3; --accent-hover: #ffffff; --on-accent: #0e1320; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid #2b50e8; outline-offset: 3px; border-radius: 4px; }
b { font-weight: 600; }

/* ---------- top bar: the landing page's ---------- */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 64px; padding-inline: var(--gutter); }
.top .logo { justify-self: start; display: inline-flex; }
.top img { height: 26px; width: auto; display: block; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { .logo-light { display: none !important; } .logo-dark { display: block !important; } }
.top nav { display: flex; gap: clamp(16px, 2vw, 28px); font-weight: 500; }
.top nav a { text-decoration: none; }
.top nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.top-end { justify-self: end; display: flex; align-items: center; gap: clamp(4px, 1.4vw, 20px); }
.top .signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.top .go { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.top .go:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .top .go:hover { background: var(--accent-hover); }
  .top nav a:hover, .top .signin:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
}
@media (max-width: 900px) { .top { grid-template-columns: 1fr auto; } .top nav { display: none; } }

/* ---------- the page: a title across the top, then the sections beside their list ---------- */
main { padding: clamp(40px, 6vw, 104px) var(--gutter) clamp(72px, 9vw, 144px); }
main > * { max-width: 60ch; }
main > .lede { max-width: 34ch; margin: clamp(18px, 2vw, 28px) 0 0; font: 500 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.3 var(--font-display); letter-spacing: -0.02em; }
main p, main li { overflow-wrap: break-word; }
main li a { overflow-wrap: anywhere; }
main > h1 { max-width: none; margin: 0; font: 600 clamp(2.5rem, 1.2rem + 5.6vw, 6.25rem)/0.98 var(--font-display); letter-spacing: -0.04em; text-wrap: balance; }
main > .meta { max-width: none; margin: clamp(14px, 1.6vw, 22px) 0 clamp(36px, 5vw, 80px); color: var(--muted); }
main.has-toc { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 112px); }
main.has-toc > * { grid-column: 2; }
main.has-toc > h1, main.has-toc > .lede, main.has-toc > .meta { grid-column: 1 / -1; }
h2 { margin: clamp(44px, 4.4vw, 64px) 0 14px; font: 600 clamp(1.375rem, 1.1rem + 0.95vw, 1.9375rem)/1.12 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
.draft + h2, .meta + h2, .toc + h2 { margin-top: 0; }
h3 { margin: 28px 0 8px; font: 600 1.125rem/1.3 var(--font-display); letter-spacing: -0.015em; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 6px; }
li::marker { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { main a:hover { text-decoration-thickness: 2px; } }
code { font: inherit; background: var(--field); padding: 1px 5px; }
/* a notice that has to be read, and the blanks still to be filled in */
.draft { max-width: none; background: var(--ink); color: var(--bg); padding: 16px 20px; margin-bottom: clamp(28px, 3vw, 40px); font-size: 0.9375rem; line-height: 1.5; }
.fill { background: var(--field); padding: 1px 6px; font-weight: 500; }

/* ---------- on this page ---------- */
.toc { font-size: 0.9375rem; line-height: 1.35; }
.toc summary { list-style: none; cursor: pointer; font-weight: 600; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc li { margin: 0; }
.toc a { display: block; padding: 8px 12px; text-decoration: none; color: var(--muted); transition: background-color 160ms ease, color 160ms ease; }
.toc a.on { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .toc a:not(.on):hover { background: var(--field); color: var(--ink); } }
main.has-toc > .toc { grid-column: 1; grid-row: 4 / span 400; align-self: start; position: sticky; top: 88px; max-width: none; max-height: calc(100vh - 112px); overflow-y: auto; scrollbar-width: thin; }
main.has-toc > .toc summary { display: none; }
@media (max-width: 900px) {
  main.has-toc { display: block; }
  main.has-toc > .toc { position: static; max-height: none; background: var(--field); margin-bottom: 28px; }
  main.has-toc > .toc summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px; }
  main.has-toc > .toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease-out); }
  main.has-toc > .toc[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
  .toc ol { padding: 0 4px 8px; }
  .toc a { padding: 11px 12px; color: var(--ink); }
}

/* ---------- tables ---------- */
.table-wrap { max-width: none; overflow-x: auto; margin: 10px 0 24px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--field); }
thead th { background: var(--ink); color: var(--bg); font-weight: 600; white-space: nowrap; border-bottom: 0; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; min-width: 9em; }
body.wide td { min-width: 7em; }
body.wide td:last-child { min-width: 22em; overflow-wrap: anywhere; }
/* on a narrow screen each row becomes a short block, every cell named, so nothing scrolls sideways */
@media (max-width: 900px) {
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--field); }
  tbody tr:last-child { border-bottom: 0; }
  td, body.wide td, body.wide td:last-child { display: block; min-width: 0; padding: 2px 0; border: 0; }
  td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 400; }
}

/* ---------- footer: a dark strip with every text page in it ---------- */
.foot { background: var(--dark); color: var(--dark-ink); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 48px; padding: clamp(28px, 3.4vw, 48px) var(--gutter); }
.foot > span { color: var(--dark-muted); font-size: 0.9375rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 2vw, 28px); font-weight: 500; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot nav a[aria-current="page"] { color: var(--dark-muted); }
.foot .fill { background: var(--dark-2); color: var(--dark-ink); }
@media (hover: hover) and (pointer: fine) { .foot nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .toc a, .top .go { transition: none; } }
