:root {
  --ink: #102b50;
  --ink-soft: #294466;
  --muted: #6e7e96;
  --canvas: #f1f4fa;
  --paper: #fff;
  --cobalt: #1457c8;
  --coral: #ff7658;
  --butter: #ffc95d;
  --line: #d7e0ed;
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "DM Sans", "Segoe UI", sans-serif;
  --mono: "Space Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid rgba(20,87,200,.42); outline-offset: 4px; }
.legal-shell { min-height: 100vh; padding: 0 14px 28px; }
.legal-topbar { width: min(100%, 920px); display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 auto; padding: 20px 2px 18px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 35px; height: 35px; position: relative; flex: 0 0 auto; border-radius: 11px; background: var(--ink); transform: rotate(-5deg); box-shadow: 3px 3px 0 var(--coral); }
.brand-mark i { position: absolute; border-radius: 4px; background: var(--butter); }
.brand-mark i:nth-child(1) { width: 14px; height: 5px; top: 9px; left: 7px; }
.brand-mark i:nth-child(2) { width: 20px; height: 5px; top: 16px; left: 7px; }
.brand-mark i:nth-child(3) { width: 10px; height: 5px; top: 23px; left: 7px; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--display); font-size: 17px; line-height: 1; letter-spacing: .02em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.back-link { padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-soft); background: rgba(255,255,255,.66); font-size: 9px; font-weight: 700; text-decoration: none; }
.legal-layout { width: min(100%, 920px); display: grid; gap: 14px; margin: 0 auto; }
.legal-hero { position: relative; overflow: hidden; padding: 30px 23px 27px; border: 1px solid var(--line); border-radius: 27px; background: var(--ink); box-shadow: 0 20px 55px rgba(27,55,91,.14); }
.legal-hero::after { content: ""; width: 170px; height: 170px; position: absolute; right: -61px; bottom: -72px; border: 28px solid rgba(255,201,93,.95); border-radius: 50%; }
.legal-kicker { color: #aab8ca; font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.legal-hero h1 { max-width: 620px; margin: 10px 0 12px; color: #fff; font-family: var(--display); font-size: clamp(38px, 10vw, 70px); line-height: .9; letter-spacing: -.055em; }
.legal-hero h1 em { color: var(--butter); font-style: normal; }
.legal-hero p { max-width: 570px; position: relative; z-index: 1; margin: 0; color: #b7c3d2; font-size: 12px; line-height: 1.6; }
.legal-date { display: inline-block; margin-top: 20px; padding: 7px 9px; border: 1px dashed rgba(255,255,255,.3); border-radius: 8px; color: #fff; font-family: var(--mono); font-size: 8px; }
.legal-nav { display: flex; gap: 7px; padding: 3px 1px 7px; overflow-x: auto; scrollbar-width: none; }
.legal-nav a { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-soft); background: rgba(255,255,255,.72); font-size: 8px; font-weight: 700; text-decoration: none; }
.legal-paper { position: relative; padding: 8px 18px 23px 31px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 16px 42px rgba(27,55,91,.08); }
.legal-paper::before { content: ""; width: 1px; position: absolute; top: 25px; bottom: 25px; left: 18px; border-left: 1px dashed #cbd5e3; }
.legal-section { position: relative; padding: 23px 0 5px; border-bottom: 1px solid #e8edf4; }
.legal-section:last-child { border-bottom: 0; }
.legal-section::before { content: attr(data-number); width: 22px; height: 22px; position: absolute; top: 23px; left: -24px; display: grid; place-items: center; border: 3px solid var(--paper); border-radius: 50%; color: #fff; background: var(--cobalt); font-family: var(--mono); font-size: 7px; font-weight: 700; }
.legal-section h2 { margin: 0 0 10px; font-family: var(--display); font-size: 21px; line-height: 1.05; letter-spacing: -.03em; }
.legal-section h3 { margin: 16px 0 7px; font-size: 11px; }
.legal-section p, .legal-section li { color: var(--ink-soft); font-size: 11px; line-height: 1.68; }
.legal-section p { margin: 0 0 10px; }
.legal-section ul { margin: 8px 0 12px; padding-left: 18px; }
.legal-section li + li { margin-top: 6px; }
.legal-section strong { color: var(--ink); }
.info-note { margin: 13px 0 3px; padding: 13px 14px; border-left: 4px solid var(--coral); border-radius: 4px 12px 12px 4px; background: #fff0eb; }
.info-note p { margin: 0; color: #814632; }
.legal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 3px 3px; color: var(--muted); font-size: 8px; }
.legal-footer nav { display: flex; gap: 14px; }
.legal-footer a { color: var(--ink-soft); font-weight: 700; text-underline-offset: 3px; }

@media (min-width: 760px) {
  .legal-shell { padding-right: 24px; padding-left: 24px; }
  .legal-topbar { padding-top: 28px; padding-bottom: 23px; }
  .legal-layout { grid-template-columns: 280px 1fr; align-items: start; }
  .legal-hero { position: sticky; top: 22px; min-height: 500px; display: flex; flex-direction: column; justify-content: center; padding: 34px 27px; }
  .legal-hero h1 { font-size: 48px; }
  .legal-nav { grid-column: 2; grid-row: 1; margin-bottom: -14px; padding: 3px 0 13px; }
  .legal-paper { grid-column: 2; grid-row: 1; margin-top: 52px; padding: 12px 34px 30px 47px; }
  .legal-paper::before { left: 28px; }
  .legal-section::before { left: -31px; }
  .legal-section h2 { font-size: 25px; }
  .legal-section p, .legal-section li { font-size: 12px; }
  .legal-footer { grid-column: 1 / -1; }
}

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