:root {
  color-scheme: light;
  --accent: #4e70d9;
  --accent-soft: #edf2ff;
  --text: #242936;
  --muted: #737b89;
  --line: #e8ebf0;
  --background: #f6f7fa;
  --panel: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --accent: #99b2ff;
    --accent-soft: #26334e;
    --text: #edf0f6;
    --muted: #a0a8b7;
    --line: #303640;
    --background: #20252f;
    --panel: #171a21;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--background); }
a { color: var(--accent); text-underline-offset: 3px; }
.legal-shell { width: min(100%, 760px); min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 20px max(48px, env(safe-area-inset-bottom)); background: var(--panel); }
.legal-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.legal-back { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.legal-back::before { content: "‹"; color: var(--accent); font-size: 25px; font-weight: 400; line-height: 1; }
.legal-language { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.legal-kicker { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 620px; margin: 0; font-size: clamp(32px, 7vw, 46px); line-height: 1.08; letter-spacing: -.04em; }
.legal-updated { margin: 16px 0 34px; color: var(--muted); font-size: 13px; }
.legal-summary { margin: 0 0 38px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--accent-soft); font-size: 15px; line-height: 1.65; }
.legal-section { padding: 26px 0; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 13px; font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
.legal-section h3 { margin: 22px 0 9px; font-size: 16px; line-height: 1.4; }
.legal-section p, .legal-section li { font-size: 15px; line-height: 1.72; }
.legal-section p { margin: 11px 0 0; }
.legal-section ul { margin: 12px 0 0; padding-left: 22px; }
.legal-section li + li { margin-top: 8px; }
.legal-audio { display: block; width: 100%; max-width: 480px; height: 42px; margin-top: 16px; }
.legal-note { color: var(--muted); }
.legal-contact { display: inline-flex; align-items: center; min-height: 44px; margin-top: 13px; padding: 11px 15px; border-radius: 13px; color: #fff; background: var(--accent); font-size: 14px; font-weight: 650; text-decoration: none; }
.legal-footer { padding-top: 28px; color: var(--muted); font-size: 12px; text-align: center; }

@media (min-width: 761px) {
  .legal-shell { padding: 36px 54px 64px; border-inline: 1px solid var(--line); }
}

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

@media print {
  body, .legal-shell { background: #fff; color: #111; }
  .legal-shell { width: 100%; max-width: none; padding: 0; }
  .legal-nav { display: none; }
  a { color: inherit; }
}
