:root {
  --paper: #fff8ec;
  --white: #fffdf8;
  --ink: #122448;
  --muted: #5f6b82;
  --coral: #d9473d;
  --yellow: #f7c84a;
  --line: rgba(18, 36, 72, 0.14);
  --shadow: 0 24px 70px -42px rgba(18, 36, 72, 0.45);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 4%, rgba(247, 200, 74, 0.2), transparent 25rem),
    radial-gradient(circle at 92% 28%, rgba(191, 230, 208, 0.3), transparent 28rem),
    var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
}
a { color: inherit; text-underline-offset: 3px; }
p, li { color: var(--muted); line-height: 1.75; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.legal-header,
.legal-main,
.legal-footer { width: min(calc(100% - 40px), 880px); margin-inline: auto; }
.legal-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.legal-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.legal-brand img { width: 44px; height: 44px; object-fit: contain; }
.legal-brand span { display: grid; gap: 2px; }
.legal-brand strong { font-size: 18px; line-height: 1; letter-spacing: 0.15em; }
.legal-brand small { color: var(--muted); font-size: 11px; font-weight: 700; }
.legal-header nav { display: flex; gap: 18px; font-size: 13px; font-weight: 800; }

.legal-main { padding-block: clamp(50px, 8vw, 86px); }
.legal-hero { margin-bottom: 52px; }
.eyebrow { margin-bottom: 14px; color: var(--coral); font-size: 12px; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.legal-hero h1 { max-width: 760px; margin-bottom: 22px; font-family: Georgia, serif; font-size: clamp(48px, 8vw, 76px); font-weight: 500; line-height: 1; letter-spacing: -0.045em; }
.legal-hero .lead { max-width: 720px; font-size: 19px; }
.updated { margin-bottom: 0; font-size: 12px; font-weight: 750; }

.legal-card,
.legal-section {
  margin-bottom: 20px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.legal-card { border-top: 5px solid var(--yellow); }
.legal-section h2 { margin-bottom: 14px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.025em; }
.legal-section h3 { margin: 24px 0 6px; font-size: 18px; }
.legal-section p:last-child,
.legal-section ul:last-child,
.legal-card p:last-child { margin-bottom: 0; }
.legal-section li + li { margin-top: 8px; }
.legal-section a,
.legal-card a { color: var(--coral); font-weight: 800; }
.callout { border-left: 5px solid #55ad8a; }
.steps { counter-reset: steps; list-style: none; padding: 0; }
.steps li { position: relative; min-height: 46px; padding-left: 56px; }
.steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 1px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 50%;
  font-weight: 850;
}
.legal-footer { padding-block: 28px 44px; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.legal-footer p { margin: 0; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 620px) {
  .legal-header, .legal-main, .legal-footer { width: min(calc(100% - 28px), 880px); }
  .legal-brand small { display: none; }
  .legal-header nav { gap: 12px; font-size: 12px; }
  .legal-main { padding-block: 42px; }
  .legal-hero h1 { font-size: 46px; }
  .legal-hero .lead { font-size: 17px; }
  .legal-footer { display: grid; }
}

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