:root {
  color-scheme: dark;
  --bg: #08090d;
  --surface: #12141a;
  --ink: #f8f9fc;
  --muted: #a6abb8;
  --line: #292d38;
  --blue: #65b7ff;
  --green: #72dc9a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #10121a 0%, var(--bg) 50%);
  overflow-x: hidden;
}
a { color: inherit; }
.site-shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 850; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.header-nav { display: flex; gap: 18px; color: var(--muted); font-size: 13px; font-weight: 700; }
.header-nav a { text-decoration: none; }
.header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--ink); }

.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; padding: 64px 0 80px; }
.toc { position: sticky; top: 24px; }
.toc-title { margin: 0 0 13px; color: #d9dce4; font-size: 12px; font-weight: 820; text-transform: uppercase; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.toc a { display: block; padding: 7px 0; color: #858b99; text-decoration: none; font-size: 13px; line-height: 1.35; }
.toc a:hover { color: var(--blue); }

.document { width: 100%; min-width: 0; max-width: 760px; }
.document-header { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 12px; font-weight: 820; text-transform: uppercase; }
h1 { margin: 0; font-size: 52px; line-height: 1; letter-spacing: 0; }
.summary { margin: 20px 0 0; max-width: 680px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.updated { margin: 17px 0 0; color: #777d8b; font-size: 12px; }

.document section { padding-top: 38px; scroll-margin-top: 24px; }
h2 { margin: 0 0 14px; font-size: 23px; line-height: 1.2; letter-spacing: 0; }
h3 { margin: 24px 0 8px; font-size: 16px; line-height: 1.3; }
p, li { color: #c4c8d2; font-size: 15px; line-height: 1.72; overflow-wrap: anywhere; }
p { margin: 0 0 13px; }
ul { margin: 12px 0 16px; padding-left: 21px; }
li + li { margin-top: 8px; }
.document a { color: var(--blue); text-underline-offset: 3px; }
.contact-line { padding: 16px 18px; border-left: 3px solid var(--green); background: var(--surface); }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  color: #777d8b;
  font-size: 12px;
}
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 780px) {
  .site-shell { width: min(680px, calc(100% - 28px)); }
  .legal-layout { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 42px; }
  .toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  h1 { font-size: 42px; }
  .document, .document-header, .summary { width: 100%; min-width: 0; }
}

@media (max-width: 520px) {
  .header-nav a:first-child { display: none; }
  .toc ol { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
  .summary { font-size: 16px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
