/* The look of /terms and /privacy (terms.html, privacy.html): direction A of docs/mockups/legal/index.html, picked by
   the owner 2026-11-04. The landing's tokens and top bar (apps/site/src/styles.css). Static on purpose: the site's CSP
   allows no inline scripts, so the pages work without any script. */
:root {
  --canvas: #0b0b0c;
  --panel: #141415;
  --panel-2: #101011;
  --text: #f4f4f5;
  --body: rgba(244, 244, 245, 0.86);
  --soft: rgba(244, 244, 245, 0.74);
  --muted: rgba(244, 244, 245, 0.54);
  --line: rgba(255, 255, 255, 0.08);
  --accent: #e3a533;
  --on-accent: #0b0b0c;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--canvas); scroll-padding-top: 80px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); color: var(--body); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 6vw; background: rgba(11, 11, 12, 0.86); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav .logo { display: block; line-height: 0; }
.nav .logo svg { height: 27px; width: calc(27px * 826 / 222); display: block; margin: -3px 0 -3px -3px; }
.nav .right { display: flex; align-items: center; gap: 18px; }
.nav .signin { font-size: 14px; font-weight: 500; color: var(--soft); text-decoration: none; }
.nav .signin:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; background: var(--accent); color: var(--on-accent); text-decoration: none; white-space: nowrap; }
.btn:hover { background: #ecb247; }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 56px 24px; }
.head { display: grid; gap: 14px; }
.docnav { justify-self: start; display: inline-flex; gap: 2px; margin-bottom: 12px; padding: 4px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.docnav a { height: 28px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; }
.docnav a:hover { color: var(--text); }
.docnav a[aria-current='page'] { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.updated { margin: 0; font: 500 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.02em; color: var(--text); font-weight: 600; text-wrap: balance; }
.lede { margin: 0; color: var(--soft); font-size: 17px; line-height: 1.55; max-width: 60ch; }

section { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 28px; }
section:first-of-type { margin-top: 28px; }
h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--text); display: flex; gap: 12px; align-items: baseline; text-wrap: balance; }
h2 .n { flex: none; min-width: 26px; font: 500 13px var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 20px; }
li { margin: 0 0 8px; }
li::marker { color: var(--muted); }
strong { color: var(--text); font-weight: 600; }
main a { color: var(--accent); text-decoration: none; }
main a:hover { text-decoration: underline; }
main .docnav a { color: var(--muted); }
main .docnav a:hover { color: var(--text); text-decoration: none; }
main .docnav a[aria-current='page'] { color: var(--text); }

.tbl { margin: 0 0 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
th { padding: 10px 14px; text-align: left; white-space: nowrap; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
td { padding: 10px 14px; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 130px; }
td:first-child { color: var(--text); font-weight: 500; }
tr:last-child td { border-bottom: 0; }

.foot { margin-top: auto; padding: 22px 6vw 30px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font: 400 12px/1.6 var(--mono); color: var(--muted); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .links { display: flex; gap: 18px; }

@media (max-width: 560px) {
  .nav { padding: 12px 16px; }
  .nav .logo svg { height: 22px; width: calc(22px * 826 / 222); }
  .nav .signin { display: none; }
  .wrap { padding: 32px 16px 40px; }
  .foot { padding: 20px 16px 26px; }
  /* tables turn into stacked rows on a phone: no sideways scrolling inside a legal text */
  thead { display: none; }
  tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { display: block; min-width: 0; padding: 0 0 8px; border-bottom: 0; }
  td:last-child { padding-bottom: 0; }
  td:not(:first-child)::before { content: attr(data-label); display: block; font: 500 10px/1.8 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
}
