/* Shared styles for /privacy and /terms. Tokens match index.html. */
:root {
  color-scheme: dark;
  --bg: #0B0B0C; --ink: #F5F5F5; --accent: #FF4D2E;
  --surface: #171719; --raised: #3A3A3E; --note: #B9B9BF;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --display: clamp(48px, 8vw, 128px); --h2: clamp(26px, 2.8vw, 38px);
  --lead: clamp(22px, 2.2vw, 30px); --body: 18px; --small: 15px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--body)/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .22em; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, p, ul { margin: 0; }
h1, h2 { font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--display); line-height: .95; letter-spacing: -.045em; }
h2 { font-size: var(--h2); line-height: 1.1; letter-spacing: -.03em; scroll-margin-top: 24px; }
strong { font-weight: 700; }
.wrap { width: min(100%, 1280px); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.skip { position: fixed; top: 12px; left: 20px; z-index: 5; padding: 12px 16px; background: var(--ink); color: var(--bg); transform: translateY(-180%); }
.skip:focus-visible { transform: none; }

.header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; }
.wordmark { font-size: clamp(24px, 2.5vw, 34px); line-height: 1; font-weight: 800; letter-spacing: -.08em; text-decoration: none; }
.wordmark:hover { color: inherit; }
.accent { color: var(--accent); }
.header nav { display: flex; gap: 8px; }
.header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; font-size: var(--small); font-weight: 700; text-decoration: none; transition: background-color 180ms var(--ease); }
.header nav a:hover { background: var(--surface); color: var(--ink); }
.header nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }

.intro { padding-top: clamp(48px, 8vw, 120px); padding-bottom: clamp(48px, 6vw, 88px); }
.updated { margin-top: 24px; color: var(--note); font-size: var(--small); }
.lead { margin-top: clamp(32px, 4vw, 56px); padding: clamp(24px, 3vw, 40px); background: var(--surface); font-size: var(--lead); line-height: 1.35; font-weight: 600; letter-spacing: -.01em; max-width: 34ch; box-sizing: content-box; overflow-wrap: anywhere; }

.layout { display: grid; gap: 48px; padding-bottom: clamp(88px, 9vw, 140px); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 8px 0; font-size: var(--small); font-weight: 600; color: var(--note); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.toc-title { font-size: var(--small); font-weight: 800; margin-bottom: 8px; }
article { display: grid; gap: clamp(56px, 6vw, 88px); min-width: 0; }
article section { display: grid; gap: 16px; }
article p, article li { max-width: 66ch; overflow-wrap: break-word; }
article ul { padding-left: 1.2em; display: grid; gap: 8px; }
article li::marker { color: var(--accent); }
.path { font-weight: 700; }

.footer { background: var(--accent); color: var(--bg); padding-top: 56px; overflow: hidden; }
.footer a { text-decoration-color: currentColor; }
.footer a:hover { color: var(--bg); text-decoration-thickness: 3px; }
.footer :focus-visible { outline-color: var(--bg); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 700; }
.footer p { margin-top: 16px; font-size: var(--small); max-width: 52ch; }
.footer-wordmark { font-size: min(26vw, 360px); font-weight: 800; letter-spacing: -.08em; line-height: 1.1; white-space: nowrap; margin-top: 64px; margin-left: -.035em; transform: scaleX(.9); transform-origin: bottom left; }

@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(200px, 1fr) 3fr; gap: 64px; }
  .toc { position: sticky; top: 24px; align-self: start; }
}
@media (max-width: 600px) {
  .header { min-height: 80px; }
  .header nav a { padding-inline: 10px; }
  .footer-wordmark { font-size: 34vw; transform: scaleX(.73); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
