/* Terms of Use / Privacy Policy pages (/terms, /privacy). Same tokens and
   dark look as index.html, trimmed to what a long-read document needs. */
:root {
  color-scheme: dark;
  --bg: #050608;
  --bg-raise: #0a0c10;
  --ink: #f5f6f8;
  --ink-2: rgba(245,246,248,0.72);
  --ink-3: rgba(245,246,248,0.5);
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --glass: rgba(255,255,255,0.028);
  --orange: #ff6b2c;
  --amber: #ffb070;
  --orange-glow: rgba(255,107,44,0.55);
  --r-full: 999px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --gutter: 20px;
  font-family: var(--font-sans);
  line-height: 1.5;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* one soft orange light at the top, like the landing hero */
body::before {
  content: ""; position: fixed; left: 50%; top: -340px; width: 900px; height: 560px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,107,44,0.16), transparent); pointer-events: none; z-index: -1;
}
::selection { background-color: rgba(255,107,44,0.4); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; }
[hidden] { display: none !important; }

nav {
  position: sticky; top: 0; z-index: 40; padding-block: 14px;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
  margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
  background: rgba(5,6,8,0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1180px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; display: block; flex-shrink: 0; border-radius: 22%; box-shadow: 0 0 22px -4px var(--orange-glow); }
.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--r-full); padding: 3px; background: var(--glass); gap: 2px; }
.lang-toggle button {
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; min-width: 40px; min-height: 32px; padding: 0 12px;
  border-radius: var(--r-full); border: none; cursor: pointer; background: transparent; color: var(--ink-3);
  transition: color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button.active { background: rgba(255,255,255,0.1); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); }
@media (max-width: 460px) { .logo-text { display: none; } }

.doc { max-width: 780px; margin: 0 auto; padding: clamp(40px, 7vw, 72px) 0 56px; }
.doc-kicker { font-family: var(--font-display); font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.doc h1 { margin: 14px 0 10px; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.03em; line-height: 1.12; }
.doc-meta { color: var(--ink-3); font-size: 14px; }
.doc-lead { margin: 22px 0 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }

.toc { margin: 32px 0 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); }
.toc b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; color: var(--ink-2); font-size: 14px; line-height: 1.9; }
.toc li { break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

.doc section { padding-top: 34px; }
.doc h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 2.4vw, 23px); letter-spacing: -0.02em; line-height: 1.3; }
.doc h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; line-height: 1.72; text-wrap: pretty; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--amber); text-underline-offset: 3px; }
.note { margin: 16px 0; padding: 14px 16px; border-left: 2px solid var(--orange); border-radius: 0 12px 12px 0; background: rgba(255,107,44,0.06); }
.note p:last-child { margin-bottom: 0; }

.legal-footer {
  max-width: 1180px; margin: 0 auto; padding: 28px 0 48px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; color: var(--ink-3); font-size: 13px;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal-footer a { text-decoration: none; }
.legal-footer a:hover, .legal-footer a[aria-current="page"] { color: var(--ink); }
