/* Shared styling for /legal/* and /docs.html + /changelog.html.
   Kept in one file so every doc page inherits the same look via
   <link rel="stylesheet" href="/legal/_common.css">. */

:root {
  --fg: #0a1628;
  --fg-2: #1e293b;
  --muted: #475569;
  --muted-2: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --accent: #0ea5e9;
  --teal: #0d9488;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--bg-2);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Top nav — trimmed version of the landing page's */
nav.topnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
nav.topnav .inner {
  max-width: 1080px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px; color: var(--fg);
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  position: relative; overflow: hidden;
}
.brand-mark::before {
  content: ''; position: absolute; inset: 4px;
  border: 2px solid white; border-radius: 50%;
  border-top-color: transparent; border-right-color: transparent;
}
.navlinks { display: flex; gap: 28px; }
.navlinks a { font-size: 14px; color: var(--muted); font-weight: 500; }
.navlinks a:hover { color: var(--fg); text-decoration: none; }

/* Article layout */
main.doc {
  max-width: 780px;
  margin: 40px auto 80px;
  padding: 0 32px;
}
main.doc h1 {
  font-size: 36px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 12px;
}
main.doc .meta {
  color: var(--muted-2); font-size: 13px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
main.doc h2 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
  margin-top: 40px; margin-bottom: 12px;
}
main.doc h3 {
  font-size: 16px; font-weight: 600;
  margin-top: 24px; margin-bottom: 8px;
}
main.doc p { margin-bottom: 14px; color: var(--fg-2); }
main.doc ul, main.doc ol { margin: 0 0 14px 24px; }
main.doc li { margin-bottom: 6px; color: var(--fg-2); }
main.doc strong { color: var(--fg); font-weight: 600; }

main.doc .callout {
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 4px;
  margin: 16px 0;
  font-size: 14px;
}
main.doc hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
main.doc .toc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 16px 24px;
  border-radius: 8px;
  margin-bottom: 32px;
  font-size: 14px;
}
main.doc .toc h4 {
  font-size: 12px; font-weight: 600;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
main.doc .toc ol { margin: 0 0 0 20px; column-count: 2; column-gap: 32px; }
main.doc .toc li { margin-bottom: 2px; }
main.doc .toc a { color: var(--fg-2); }

footer.doc-foot {
  border-top: 1px solid var(--line);
  padding: 32px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
}
footer.doc-foot a { color: var(--muted); }

@media (max-width: 720px) {
  main.doc { padding: 0 20px; }
  main.doc h1 { font-size: 28px; }
  main.doc .toc ol { column-count: 1; }
  .navlinks { display: none; }
}
