:root {
  color-scheme: light;
  --navy: #0d1520;
  --navy-soft: #192535;
  --gold: #ccaa70;
  --gold-light: #e8d8b9;
  --paper: #f4f5f6;
  --white: #fff;
  --ink: #17212c;
  --muted: #667383;
  --line: #e1e5e9;
  --link: #785c2e;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.legal-header { background: var(--navy); color: var(--white); border-bottom: 3px solid var(--gold); }
.legal-header-inner { width: min(1120px, calc(100% - 40px)); margin: auto; min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-brand { display: inline-flex; align-items: center; color: var(--white); text-decoration: none; line-height: 1.1; }
.legal-brand-logo { display: block; width: 228px; height: auto; }
.legal-slogan { color: #d7dce2; font-size: 13px; letter-spacing: .03em; }

.legal-nav { background: var(--white); border-bottom: 1px solid var(--line); }
.legal-nav-inner { width: min(1120px, calc(100% - 40px)); min-height: 54px; margin: auto; display: flex; align-items: center; gap: 8px; overflow-x: auto; }
.legal-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; border-bottom: 2px solid transparent; }
.legal-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }

.legal-main { width: min(900px, calc(100% - 40px)); margin: 44px auto 72px; }
.legal-eyebrow { margin: 0 0 9px; color: #806944; font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.legal-title { margin: 0; color: var(--navy); font-size: clamp(32px, 5vw, 46px); line-height: 1.12; letter-spacing: -.04em; }
.legal-intro { max-width: 720px; margin: 17px 0 0; color: var(--muted); font-size: 17px; }
.legal-updated { margin: 18px 0 25px; color: var(--muted); font-size: 12px; }
.legal-notice { margin: 0 0 28px; padding: 16px 18px; border: 1px solid #e2d4b7; border-left: 4px solid var(--gold); border-radius: 10px; background: #fbf8f1; color: #4c463c; font-size: 14px; }
.legal-content { padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 18px 50px #0d152008; }
.legal-content section + section { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 12px; color: var(--navy); font-size: 20px; line-height: 1.3; }
.legal-content h3 { margin: 18px 0 8px; color: var(--navy-soft); font-size: 15px; }
.legal-content p { margin: 10px 0; }
.legal-content ul, .legal-content ol { margin: 10px 0; padding-left: 22px; }
.legal-content li + li { margin-top: 7px; }
.legal-content strong { color: var(--navy); }
.legal-contact-card { margin-top: 16px; padding: 18px; border-radius: 12px; background: var(--navy); color: var(--white); }
.legal-contact-card strong { color: var(--gold-light); }
.legal-contact-card p { margin: 4px 0; }
.legal-contact-card a { color: var(--gold-light); }
.legal-action-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 12px; padding: 0 17px; border-radius: 9px; background: var(--gold); color: var(--navy); font-size: 14px; font-weight: 800; text-decoration: none; }
.legal-action-link:hover { background: var(--gold-light); color: var(--navy); }
.legal-footnote { color: var(--muted); font-size: 13px; }

.legal-footer { padding: 28px 20px 34px; background: var(--navy); color: #d7dce2; }
.legal-footer-inner { width: min(1120px, 100%); margin: auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.legal-footer p { margin: 4px 0; font-size: 13px; }
.legal-footer strong { color: var(--white); }
.legal-footer a { color: var(--gold-light); }
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13px; }
.legal-footer-links a { color: #d7dce2; }

@media (max-width: 640px) {
  .legal-header-inner { width: calc(100% - 32px); min-height: 90px; }
  .legal-brand-logo { width: 190px; }
  .legal-slogan { max-width: 120px; text-align: right; font-size: 11px; }
  .legal-nav-inner { width: calc(100% - 20px); }
  .legal-nav a { padding: 0 11px; font-size: 12px; }
  .legal-main { width: calc(100% - 28px); margin: 28px auto 42px; }
  .legal-intro { font-size: 15px; }
  .legal-content { padding: 21px 18px; border-radius: 14px; }
  .legal-footer-inner { flex-direction: column; gap: 14px; }
}

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