:root {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #14223b;
  background: #f5f7fb;
  color-scheme: light;
  line-height: 1.68;
  --page: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #edf3fb;
  --text: #14223b;
  --muted: #5b6c84;
  --line: #dce4ef;
  --primary: #2459cf;
  --accent: #0c8876;
  --focus: #76a2ff;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  background: linear-gradient(180deg, #f8fafd, var(--page));
  color: var(--text);
}

.legal-shell {
  width: min(920px, 100%);
  margin: auto;
  padding: 28px clamp(18px, 4vw, 44px) 64px;
}

.legal-shell header {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(52px, 8vw, 84px);
}

.legal-shell a { color: var(--primary); text-underline-offset: 4px; }
.legal-shell a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  color: var(--text) !important;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.025em;
  text-decoration: none;
}

.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 8px 22px rgba(36, 89, 207, .16); }
.header-link { display: inline-flex; min-height: 48px; align-items: center; font-weight: 750; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.lead {
  max-width: 780px;
  margin: 22px 0 clamp(38px, 6vw, 58px);
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.65;
}

section {
  display: grid;
  grid-template-columns: minmax(170px, .34fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  margin: 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

h2 { margin: 0; font-size: 18px; line-height: 1.35; letter-spacing: -.015em; }
section p, section ol { margin: 0; color: var(--muted); }
section a { display: inline-flex; min-height: 44px; align-items: center; }
section ol { padding-left: 22px; }
li + li { margin-top: 8px; }

.callout {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #c9e6de;
  border-radius: 18px;
  background: #edf9f5;
}

.callout h2 { color: #116b5d; }
.updated { margin-top: 34px; color: var(--muted); font-size: 13px; text-align: center; }

@keyframes legal-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.eyebrow, h1, .lead, section { animation: legal-enter .45s cubic-bezier(.2, .8, .2, 1) both; }
section:nth-of-type(2) { animation-delay: .03s; }
section:nth-of-type(3) { animation-delay: .06s; }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #08111f;
    --surface: #111d30;
    --surface-soft: #19263a;
    --text: #f2f6ff;
    --muted: #a9b6ca;
    --line: #2a3a52;
    --primary: #8aabff;
    --accent: #64d5c3;
    --focus: #a5bdff;
  }
  body { background: linear-gradient(180deg, #0b1424, var(--page)); }
  .callout { border-color: #29584f; background: #102d29; }
  .callout h2 { color: #78d8c8; }
}

@media (max-width: 620px) {
  .legal-shell { padding: 20px 16px 44px; }
  .legal-shell header { align-items: flex-start; margin-bottom: 42px; }
  .header-link { max-width: 130px; justify-content: flex-end; text-align: right; }
  h1 { font-size: clamp(38px, 12vw, 50px); }
  .lead { margin-bottom: 34px; }
  section { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .callout { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
