:root {
  color-scheme: dark;
  --bg: #080F1A;
  --bg-soft: #131F33;
  --surface: #17263b;
  --text: rgba(255,255,255,.9);
  --muted: rgba(218,210,255,.76);
  --line: rgba(184,164,255,.16);
  --purple: #B8A4FF;
  --purple-2: #6B4FC8;
  --mint: #4ADE80;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.7; }
a { color: inherit; }
:focus-visible { outline: 3px solid #D4C8FF; outline-offset: 4px; border-radius: 6px; }
.demo-bar { min-height: 35px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 18px; color: var(--purple); background: var(--bg-soft); border-bottom: 1px solid rgba(184,164,255,.2); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.demo-bar::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px var(--mint); }
.nav { position: sticky; top: 0; z-index: 10; background: rgba(10,22,40,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav-inner, .footer-inner { width: min(1040px, calc(100% - 40px)); margin-inline: auto; }
.nav-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 21px; font-weight: 850; letter-spacing: -.04em; text-decoration: none; }
.brand img { width: 35px; height: 35px; object-fit: contain; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 11px; color: #d6dbea; font-size: 13px; font-weight: 750; text-decoration: none; }
.nav-actions .primary { border-color: transparent; color: #fff; background: var(--purple-2); }
main { padding: 70px 0 92px; }
.legal-wrap { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 15px; color: #cbbbf4; font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.tag::before { content: ""; width: 24px; height: 1px; background: var(--purple); }
h1 { max-width: 720px; margin: 0 0 13px; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.045em; }
.lead { max-width: 700px; margin: 0; color: var(--muted); font-size: 17px; }
.meta { margin: 18px 0 0; color: #a1acbe; font-size: 12px; }
.draft-note { margin: 28px 0 0; padding: 15px 18px; border: 1px solid rgba(251,191,36,.25); border-radius: 13px; color: #e8d7a6; background: rgba(251,191,36,.07); font-size: 12px; }
.legal-body { margin-top: 48px; }
.legal-body section { padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 92px; }
.legal-body section:last-child { border-bottom: 0; }
h2 { margin: 0 0 12px; color: #fff; font-size: 21px; letter-spacing: -.02em; }
p { margin: 0 0 14px; color: #b2bccd; font-size: 14px; }
ul { margin: 0 0 15px; padding-left: 22px; color: #b2bccd; font-size: 14px; }
li { margin-bottom: 8px; }
strong { color: #e8ebf3; }
.legal-body a { color: var(--purple); }
.legal-index { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--bg-soft); }
.legal-index a { padding: 8px 10px; border-radius: 8px; color: #cfd5e2; font-size: 12px; font-weight: 700; text-decoration: none; }
.legal-index a:hover { color: #fff; background: rgba(184,164,255,.08); }
footer { padding: 30px 0; border-top: 1px solid var(--line); background: #070a12; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #9aa4b6; font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: #fff; }
@media (max-width: 640px) {
  .demo-bar { font-size: 9px; }
  .nav-inner { min-height: 64px; }
  .brand { font-size: 18px; }
  .brand img { width: 31px; height: 31px; }
  .nav-actions a:not(.primary) { display: none; }
  .nav-actions a { padding-inline: 12px; font-size: 11px; }
  main { padding: 52px 0 70px; }
  .legal-index { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root { color-scheme: light; }
  body { color: #111827; background: #fff; }
  .demo-bar, .nav, footer, .legal-index { display: none; }
  main { padding: 0; }
  .legal-wrap { width: 100%; }
  h1, h2, strong { color: #111827; }
  .lead, .meta, p, ul { color: #374151; }
  .draft-note { color: #713f12; background: #fffbeb; border-color: #f59e0b; }
  .legal-body section { break-inside: avoid; border-color: #d1d5db; }
  a { color: #111827; text-decoration: underline; }
}
