:root {
  --navy: #08122b;
  --blue: #185ce8;
  --blue-dark: #123fb9;
  --soft-blue: #edf5ff;
  --ice: #f7faff;
  --muted: #63708a;
  --line: rgba(9,25,67,.12);
  --white: #fff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand img { width: 176px; }

.legal-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.legal-header nav a:hover { color: var(--blue-dark); }

.hero {
  padding: clamp(72px, 10vw, 124px) clamp(18px, 5vw, 64px) clamp(48px, 7vw, 84px);
  background:
    radial-gradient(circle at 85% 8%, rgba(47,125,255,.16), transparent 28rem),
    linear-gradient(180deg, var(--soft-blue), var(--white));
}

.hero > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  max-width: 920px;
  margin-top: 0;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .95;
  letter-spacing: -0.04em;
}

.hero p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  margin-left: calc((100% - min(100%, var(--max))) / 2);
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.legal-shell {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
  padding: clamp(48px, 8vw, 88px) clamp(18px, 5vw, 64px);
}

.document-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 60px rgba(14, 45, 113, .07);
}

.document-nav p {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.document-nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.document-nav a:hover,
.document-nav a.is-active {
  color: var(--blue-dark);
  background: var(--soft-blue);
}

.documents {
  display: grid;
  gap: 22px;
}

.legal-card {
  scroll-margin-top: 110px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 60px rgba(14, 45, 113, .06);
}

.doc-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.doc-meta span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--soft-blue);
  font-size: 12px;
  font-weight: 800;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.035em;
}

h3 {
  margin: 30px 0 8px;
  font-size: 18px;
}

.legal-card p {
  color: #44516a;
  margin-bottom: 0;
}

.legal-card p + p {
  margin-top: 16px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: #b9c7e8;
  background: #071a42;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 820px) {
  .legal-header nav {
    display: none;
  }

  .legal-shell {
    grid-template-columns: 1fr;
  }

  .document-nav {
    position: static;
  }
}

@media (max-width: 560px) {
  .brand img { width: 148px; }

  .hero p:last-child {
    margin-left: auto;
  }

  footer {
    flex-direction: column;
  }
}
