:root {
  color-scheme: light;
  --ink: #17201e;
  --muted: #52605c;
  --line: #dce5e2;
  --paper: #ffffff;
  --canvas: #f5f7f6;
  --teal: #0b6b62;
  --deep-teal: #043f3b;
  --midnight: #032d2a;
  --mint: #bff5e9;
  --gold: #f4c95d;
  --warning: #8a3b2f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.7;
}

a { color: var(--teal); }
a:hover { color: var(--deep-teal); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 6px;
  background: white;
  color: var(--deep-teal);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.legal-header {
  background: linear-gradient(160deg, var(--midnight), var(--deep-teal));
  color: white;
  padding: 18px clamp(20px, 5vw, 72px) 58px;
}

.header-row {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 750;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191, 245, 233, .34);
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
}
.brand-mark svg { width: 30px; height: 30px; }

.home-link {
  color: rgba(255,255,255,.84);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 650;
}
.home-link:hover { color: white; }

.hero-copy {
  width: min(800px, 100%);
  margin: 54px auto 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); }
.hero-copy > p:last-child { margin: 16px auto 0; max-width: 650px; color: rgba(255,255,255,.78); }

.legal-shell {
  width: min(1180px, calc(100% - 32px));
  margin: -28px auto 64px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(3,45,42,.06);
}
.toc strong { display: block; margin-bottom: 10px; font-size: .82rem; text-transform: uppercase; color: var(--muted); }
.toc a { display: block; padding: 6px 0; text-decoration: none; font-size: .92rem; }

.legal-document {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(3,45,42,.07);
}

.updated { margin: 0 0 30px; color: var(--muted); font-size: .92rem; }

.summary {
  margin-bottom: 38px;
  padding: 20px 22px;
  border-left: 4px solid var(--teal);
  background: #edf7f4;
}
.summary p { margin: 0; }

section { scroll-margin-top: 24px; }
section + section { margin-top: 42px; padding-top: 38px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 14px; font-size: clamp(1.35rem, 3vw, 1.75rem); color: var(--deep-teal); }
h3 { margin: 26px 0 8px; font-size: 1.06rem; }
p { margin: 0 0 14px; }
ul, ol { margin: 10px 0 18px; padding-left: 1.35rem; }
li + li { margin-top: 8px; }

.data-list { display: grid; gap: 14px; margin-top: 18px; }
.data-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfc; }
.data-item h3 { margin: 0 0 5px; color: var(--deep-teal); }
.data-item p { margin: 0; color: var(--muted); }

.notice {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid #d5e8e3;
  border-radius: 6px;
  background: #f0f8f6;
}
.notice strong { color: var(--deep-teal); }
.notice.warning { border-color: #ead8d2; background: #fff8f6; }
.notice.warning strong { color: var(--warning); }

.action-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--deep-teal);
  color: white;
  text-decoration: none;
  font-weight: 750;
}
.action-link:hover { background: var(--teal); color: white; }

.step-list { counter-reset: steps; list-style: none; padding: 0; }
.step-list li { position: relative; min-height: 46px; padding: 4px 0 16px 52px; }
.step-list li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--deep-teal);
  color: white;
  font-weight: 800;
}

.legal-footer {
  padding: 32px 20px;
  background: #e9efed;
  color: var(--muted);
  text-align: center;
  font-size: .9rem;
}
.legal-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 10px; }
.legal-footer a { font-weight: 700; text-decoration: none; }

@media (max-width: 820px) {
  .legal-header { padding-bottom: 48px; }
  .home-link { display: none; }
  .hero-copy { margin-top: 40px; text-align: left; }
  .legal-shell { grid-template-columns: 1fr; margin-top: -22px; }
  .toc { position: static; }
  .toc nav { columns: 2; column-gap: 20px; }
}

@media (max-width: 520px) {
  .legal-shell { width: min(100% - 20px, 1180px); gap: 14px; }
  .legal-document, .toc { padding: 22px 18px; }
  .toc nav { columns: 1; }
  .hero-copy > p:last-child { font-size: .96rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
