:root {
  color-scheme: dark;
  --bg: #090b12;
  --panel: rgba(17, 21, 34, 0.82);
  --panel-strong: #121728;
  --text: #f4f6fb;
  --muted: #a8afc1;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #8b7cff;
  --accent-soft: rgba(139, 124, 255, 0.14);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 4%, rgba(109, 94, 252, 0.16), transparent 32rem),
    radial-gradient(circle at 92% 18%, rgba(60, 201, 183, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 18, 0.82);
  backdrop-filter: blur(18px);
}

.site-header .shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: linear-gradient(145deg, #a396ff, #6250e8);
  box-shadow: 0 8px 24px rgba(98, 80, 232, 0.28);
  font-size: 14px;
}

.nav { display: flex; gap: 8px; }

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover, .nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
}

.hero {
  padding: 84px 0 50px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: #b8afff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.updated {
  display: inline-flex;
  margin-top: 26px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 13px;
}

.layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 64px;
  padding: 54px 0 100px;
}

.toc {
  position: sticky;
  top: 105px;
  align-self: start;
}

.toc p {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.toc a:hover { color: #b8afff; }

.legal { min-width: 0; }

.notice {
  margin: 0 0 34px;
  padding: 18px 20px;
  border: 1px solid rgba(139, 124, 255, 0.28);
  border-radius: 14px;
  background: var(--accent-soft);
  color: #d8d4ff;
  font-size: 14px;
}

.legal section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.legal section:first-of-type { padding-top: 0; }

.legal h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.legal h3 { margin: 24px 0 8px; font-size: 18px; }
.legal p { margin: 0 0 14px; color: #c8ccda; }
.legal ul { margin: 12px 0 18px; padding-left: 22px; color: #c8ccda; }
.legal li + li { margin-top: 8px; }
.legal strong { color: var(--text); }

.contact-card {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.contact-card p:last-child { margin-bottom: 0; }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer .shell {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

footer a { color: #d8d4ff; text-decoration: none; }

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--max-width)); }
  .site-header .shell { min-height: 64px; }
  .brand span:last-child { display: none; }
  .nav a { padding: 7px 9px; }
  .hero { padding: 56px 0 38px; }
  .layout { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .toc a { display: inline-block; margin-right: 14px; }
  footer .shell { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
}

@media print {
  :root { color-scheme: light; }
  body { background: white; color: #111; font-size: 11pt; }
  .site-header, .toc, footer { display: none; }
  .shell { width: 100%; }
  .hero { padding: 0 0 24px; }
  h1 { font-size: 34pt; }
  .lede, .legal p, .legal ul { color: #333; }
  .layout { display: block; padding: 24px 0; }
  .legal section { break-inside: avoid; }
}
