:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #f7efd9; background: #0b2125; line-height: 1.6; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background: radial-gradient(ellipse at 80% 0%, #315c53 0%, #0b2125 55%); }
a { color: #f0d295; text-underline-offset: 4px; }
a:hover { color: #fff2cf; }
a:focus-visible, button:focus-visible { outline: 3px solid #ffdc83; outline-offset: 5px; }
.legal-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; height: 86px; padding: 12px 32px; border-bottom: 1px solid #b0c9b330; background: #0b2125f2; backdrop-filter: blur(12px); }
.legal-header .brand { flex: 0 0 auto; }
.legal-header .brand-wordmark { width: 250px; height: 60px; line-height: 0; }
.legal-header nav { display: flex; align-items: center; gap: 20px; margin-left: auto; order: 2; }
.legal-header .legal-mobile-link, #legal-menu-toggle, #legal-menu-backdrop { display: none; }
.legal-header .legal-icon-button { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 5px; border: 0; border-radius: 11px; background: transparent; color: #fff0d2; cursor: pointer; }
.legal-header #legal-account { order: 3; }
.legal-header .legal-icon-button > svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.legal-header #legal-account.has-avatar > svg { width: 38px; height: 38px; stroke: none; }
main, footer { max-width: 940px; margin-inline: auto; }
main { padding: 44px 24px 60px; }
h1, h2 { font-family: Georgia, serif; line-height: 1.15; }
h1 { margin: 0 0 16px; font-size: clamp(38px, 8vw, 64px); }
.intro { max-width: 720px; color: #cbdacf; font-size: 17px; }
section { scroll-margin-top: 110px; margin-top: 50px; padding: 36px; border: 1px solid #b0c9b340; border-radius: 20px; background: #153530d9; }
.eyebrow { margin: 0 0 8px; color: #c3d4ba; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
h2 { margin: 0 0 32px; font-size: clamp(30px, 5vw, 43px); }
h3 { margin: 28px 0 7px; color: #f3daaa; font-size: 17px; }
p { margin: 0 0 14px; }
section p { max-width: 72ch; color: #e1e8dc; }
strong { color: #f8d796; }
footer { display: flex; align-items: center; min-height: 72px; padding: 22px 24px; border-top: 1px solid #b0c9b330; color: #a8bcb3; font-size: 13px; }

@media (max-width: 760px) {
  body.legal-menu-open { overflow: hidden; }
  .legal-header { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; height: 64px; padding: 8px 12px; }
  .legal-header .brand { grid-column: 2; grid-row: 1; width: min(188px, 100%); min-width: 0; justify-self: center; }
  .legal-header .brand-wordmark { width: 100%; height: auto; aspect-ratio: 80 / 19; }
  .legal-header #legal-menu-toggle { display: grid; grid-column: 1; grid-row: 1; }
  .legal-header #legal-account { grid-column: 3; grid-row: 1; overflow: hidden; }
  .legal-header.menu-open #legal-menu-toggle { position: fixed; top: 10px; left: 12px; z-index: 23; }
  .menu-icon { position: relative; display: block; width: 29px; height: 26px; }
  .menu-icon i { position: absolute; left: 1px; width: 27px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .menu-icon i:nth-child(1) { top: 5px; }
  .menu-icon i:nth-child(2) { top: 12px; }
  .menu-icon i:nth-child(3) { top: 19px; }
  .legal-header.menu-open .menu-icon i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .legal-header.menu-open .menu-icon i:nth-child(2) { opacity: 0; }
  .legal-header.menu-open .menu-icon i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .legal-header #legal-menu-backdrop { display: block; position: fixed; inset: 0; z-index: 21; width: 100%; height: 100dvh; background: #061915aa; opacity: 0; visibility: hidden; pointer-events: none; }
  .legal-header.menu-open #legal-menu-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
  .legal-header #legal-nav { position: fixed; top: 0; bottom: 0; left: 0; z-index: 22; width: min(320px, 86vw); height: 100dvh; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 5px; overflow-y: auto; padding: max(78px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom)); border-right: 1px solid #d6bd8060; background: #102b29; box-shadow: 12px 0 40px #0008; transform: translateX(-105%); visibility: hidden; pointer-events: none; transition: transform .2s ease; }
  .legal-header.menu-open #legal-nav { transform: none; visibility: visible; pointer-events: auto; }
  .legal-header #legal-nav a, .legal-header #legal-nav .legal-mobile-link { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid transparent; border-radius: 10px; color: #f5ead2; font: 700 15px/1.2 system-ui, sans-serif; text-align: left; text-decoration: none; white-space: nowrap; }
  .legal-header #legal-nav a:hover { background: #2a4940; }
  .legal-header #legal-nav a:focus-visible { outline-offset: -3px; }
  .legal-header #legal-nav a[href="#terms"] { margin-top: auto; border-top: 1px solid #a5b7a93b; border-radius: 0; }
  main { padding-top: 32px; }
  section { scroll-margin-top: 88px; margin-top: 32px; padding: 22px; }
  footer { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) { .legal-header #legal-nav, .menu-icon i { transition: none; } }
