:root {
  color-scheme: light;
  --ink: #16181c;
  --muted: #636b76;
  --line: #e4e7eb;
  --paper: #ffffff;
  --wash: #f6f7f8;
  --blue: #1669e8;
  --blue-soft: #eaf3ff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }

a:hover { text-decoration-thickness: 2px; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(228, 231, 235, .9);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
}

.nav,
.legal-shell,
.footer-inner {
  width: min(100% - 40px, 1060px);
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; }

.nav-links { display: flex; align-items: center; gap: 24px; }

.nav-links a {
  color: #3f4650;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a[aria-current="page"] { color: var(--blue); }

.app-link {
  padding: 9px 16px;
  border-radius: 12px;
  background: #111318;
  color: #fff !important;
}

.legal-shell { padding: 82px 0 96px; }

.hero {
  max-width: 760px;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 7px 12px;
  border: 1px solid #d8e8fd;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #145bb8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.55;
}

.updated {
  margin-top: 22px;
  color: #7a828d;
  font-size: 13px;
  font-weight: 650;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 104px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .75);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover { color: var(--blue); }

.document {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 20px 50px rgba(24, 39, 58, .06);
}

.document section { scroll-margin-top: 112px; }

.document section + section {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 14px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

p { margin: 0 0 14px; }

p:last-child { margin-bottom: 0; }

ul { margin: 12px 0 0; padding-left: 22px; }

li + li { margin-top: 8px; }

.callout {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid #cfe3ff;
  border-radius: 16px;
  background: #f4f9ff;
}

.callout strong { display: block; margin-bottom: 5px; }

.contact-card {
  padding: 22px;
  border-radius: 16px;
  background: #111318;
  color: #fff;
}

.contact-card a { color: #87baff; }

.site-footer { background: #101216; color: #c8cdd5; }

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

.footer-inner p { margin: 0; font-size: 13px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

.footer-links a { color: #eef1f5; font-size: 13px; }

@media (max-width: 760px) {
  .nav { min-height: 66px; }
  .nav-links a:not(.app-link) { display: none; }
  .legal-shell { padding-top: 54px; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .document { border-radius: 20px; }
  .footer-inner { padding: 32px 0; align-items: flex-start; flex-direction: column; }
}
