:root {
  --ink: #111827;
  --ink-2: #253044;
  --muted: #667085;
  --line: #d9dde5;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --red: #dc2626;
  --red-dark: #a91414;
  --max: 920px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: 8px; z-index: 100; padding: 10px 14px; color: white; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.legal-header { border-bottom: 1px solid var(--line); background: white; }
.legal-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legal-logo { width: clamp(150px, 18vw, 205px); height: auto; }
.back-link { color: var(--red); font-size: .82rem; font-weight: 900; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.back-link:hover { color: var(--red-dark); }

.legal-hero { padding: clamp(58px, 9vw, 100px) 0 clamp(45px, 7vw, 72px); background: linear-gradient(180deg, #fff, #fff7f5); }
.legal-kicker { margin: 0 0 12px; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { margin-top: 0; color: var(--ink); }
h1 { max-width: 760px; margin-bottom: 18px; font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: .98; letter-spacing: -.04em; text-transform: uppercase; }
.updated { margin: 0; color: var(--muted); font-size: .95rem; font-weight: 700; }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 52px; padding: clamp(58px, 8vw, 92px) 0 100px; }
.legal-nav { position: sticky; top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.legal-nav strong { display: block; margin-bottom: 12px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.legal-nav summary { display: none; }
.legal-nav details > div { display: block; }
.legal-nav a { display: block; padding: 7px 0; color: var(--muted); font-size: .78rem; line-height: 1.35; text-decoration: none; }
.legal-nav a:hover { color: var(--red); }

.legal-copy { min-width: 0; }
.legal-intro { margin-bottom: 46px; padding: 24px; border-left: 5px solid var(--red); border-radius: 0 12px 12px 0; background: var(--soft); }
.legal-section { padding: 0 0 34px; margin-bottom: 38px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 { margin-bottom: 15px; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.18; }
.legal-section p { margin: 0 0 14px; color: var(--ink-2); }
.legal-section ul { margin: 12px 0 18px; padding-left: 22px; color: var(--ink-2); }
.legal-section li { margin-bottom: 7px; }
.contact-card { padding: 24px; border: 1px solid #f0c4c1; border-radius: 14px; background: #fff7f5; }
.contact-card p { margin: 0; }
.contact-card a { color: var(--red-dark); font-weight: 800; }

.legal-footer { padding: 44px 0; border-top: 1px solid var(--line); background: var(--ink); color: white; }
.legal-footer__inner { display: grid; gap: 18px; }
.legal-footer img { width: 170px; height: auto; filter: brightness(0) invert(1); }
.legal-footer p, .legal-footer small { margin: 0; color: #cbd5e1; font-size: .78rem; }
.legal-footer a { color: white; font-weight: 800; text-underline-offset: 4px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .legal-header__inner { min-height: 66px; }
  .back-link { font-size: .72rem; }
  .legal-layout { grid-template-columns: 1fr; gap: 30px; }
  .legal-nav { position: static; }
  .legal-nav details summary { display: list-item; cursor: pointer; color: var(--ink); font-size: .82rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
  .legal-nav details:not([open]) > div { display: none; }
  .legal-nav details[open] > div { display: block; }
  .legal-nav details div { padding-top: 12px; columns: 2; column-gap: 24px; }
  .legal-nav a { break-inside: avoid; }
  .legal-intro { padding: 20px; }
}

@media (max-width: 430px) {
  .legal-nav details div { columns: 1; }
  h1 { font-size: clamp(2.65rem, 15vw, 4rem); }
}

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