:root {
  color-scheme: light;
  --ink: #101c36;
  --body: #45516a;
  --muted: #69768d;
  --line: #dde3ec;
  --paper: #fffaf6;
  --accent: #2c60a9;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.legal-page { margin: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #347cff; outline-offset: 4px; }
.skip-link { position: absolute; z-index: 10; top: -70px; left: 14px; padding: 12px 16px; border-radius: 8px; background: var(--ink); color: white; }
.skip-link:focus { top: 14px; }
.legal-shell { width: min(100% - 48px, 1120px); margin-inline: auto; }

.legal-header { border-bottom: 1px solid var(--line); }
.legal-header .legal-shell { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 30px; }
.legal-brand { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; text-decoration: none; }
.legal-brand img { display: block; width: auto; max-width: 150px; height: 38px; object-fit: contain; }
.legal-brand img:first-child:not(:last-child) { width: 36px; height: 36px; }
.legal-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 22px; }
.legal-nav a { font-size: .88rem; font-weight: 650; text-decoration: none; }
.legal-nav a[aria-current="page"] { color: var(--accent); }

.legal-main { padding-block: clamp(54px, 8vw, 110px) 110px; }
.legal-hero { max-width: 820px; padding-bottom: 54px; }
.legal-kicker { display: block; margin: 0 0 20px; color: var(--accent); font-size: .73rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.legal-hero h1, .legal-main > h1 { margin: 0; font-size: clamp(3.4rem, 7.5vw, 6.7rem); line-height: .99; font-weight: 760; letter-spacing: -.075em; }
.legal-intro { max-width: 760px; margin: 25px 0 0; color: var(--body); font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.55; }
.legal-meta { margin: 22px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.legal-content { max-width: 820px; }
.legal-section { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 24px; padding: 35px 0 38px; border-top: 1px solid var(--line); }
.legal-section > h2 { margin: 0; font-size: clamp(1.28rem, 2vw, 1.65rem); line-height: 1.25; letter-spacing: -.035em; }
.legal-section > :not(h2) { grid-column: 2; }
.legal-section p, .legal-section li, .legal-content > p, .legal-content > li { margin-top: 0; color: var(--body); font-size: 1rem; line-height: 1.75; }
.legal-section p:last-child, .legal-section ul:last-child, .legal-section ol:last-child { margin-bottom: 0; }
.legal-section h3 { margin: 8px 0 10px; font-size: 1rem; line-height: 1.4; }
.legal-section ul, .legal-section ol { margin: 0; padding-left: 1.3em; }
.legal-section li + li { margin-top: 8px; }
.legal-section a, .legal-content a { color: #1b5fae; }
.legal-section a:hover, .legal-content a:hover { color: #123e75; }
.legal-callout { margin: 25px 0 0; padding: 20px 24px; border-left: 3px solid var(--accent); background: #edf3fa; color: var(--body); line-height: 1.7; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-action { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: white !important; font-size: .9rem; font-weight: 700; text-decoration: none; }
.legal-action:hover { background: #2c4269; }
.legal-footer { border-top: 1px solid var(--line); }
.legal-footer .legal-shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-block: 30px; }
.legal-footer p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 9px 20px; }
.legal-footer nav a { color: var(--body); font-size: .78rem; text-decoration: none; }

@media (max-width: 760px) {
  .legal-header .legal-shell { align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 16px; }
  .legal-nav { justify-content: flex-start; }
  .legal-main { padding-bottom: 76px; }
  .legal-section { display: block; padding-block: 28px 32px; }
  .legal-section > h2 { margin-bottom: 16px; }
}
@media (max-width: 520px) {
  .legal-shell { width: min(100% - 36px, 1120px); }
  .legal-header .legal-shell { min-height: 0; }
  .legal-nav { gap: 8px 16px; }
  .legal-nav a { font-size: .78rem; }
  .legal-hero { padding-bottom: 42px; }
  .legal-hero h1, .legal-main > h1 { font-size: clamp(2.9rem, 14vw, 4.5rem); }
  .legal-section p, .legal-section li { font-size: .94rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
