:root {
  color-scheme: dark;
  font-family: "Be Vietnam Pro", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --legal-bg: #090b13;
  --legal-surface: #131826;
  --legal-text: #edf0f8;
  --legal-muted: #b1bcd2;
  --legal-border: rgba(187, 203, 231, .18);
  --legal-accent: #a7b5ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body.legal-page { margin: 0; min-height: 100vh; color: var(--legal-text); background: radial-gradient(ellipse at 85% 2%, rgba(105, 99, 214, .13), transparent 40%), var(--legal-bg); line-height: 1.75; }
.legal-page a { color: var(--legal-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-page a:hover { color: #e4e8ff; }
.legal-page a:focus-visible { outline: 2px solid #bbc5ff; outline-offset: 4px; border-radius: 4px; }
.legal-skip { position: absolute; left: -9999px; top: 8px; }
.legal-skip:focus { left: 12px; z-index: 100; padding: 8px 12px; background: #fff; color: #111; }
.legal-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--legal-border); background: rgba(9, 11, 19, .94); backdrop-filter: blur(18px); }
.legal-header-inner { width: min(1160px, calc(100% - 44px)); margin: auto; min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.legal-brand { font-size: 17px; font-weight: 800; letter-spacing: -.035em; color: #fff!important; text-decoration: none; }
.legal-header-links, .legal-footer nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.legal-header-links a { font-size: 14px; font-weight: 650; text-decoration: none; color: var(--legal-muted); }
.legal-header-links a[aria-current="page"] { color: #fff; }
.legal-main { width: min(1160px, calc(100% - 44px)); margin: auto; padding: 64px 0 92px; }
.legal-heading { max-width: 900px; margin-bottom: 48px; }
.legal-eyebrow { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; font-weight: 750; letter-spacing: .14em; color: var(--legal-accent); }
.legal-heading h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.055em; line-height: 1.12; color: #fff; }
.legal-lead { margin: 18px 0; max-width: 760px; font-size: clamp(16px, 2vw, 19px); color: var(--legal-muted); }
.legal-draft { margin: 24px 0 0; padding: 13px 16px; border: 1px solid rgba(251, 191, 36, .34); border-radius: 12px; background: rgba(251, 191, 36, .08); color: #f5e1b2; font-size: 13px; }
.legal-grid { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 60px; align-items: start; }
.legal-sidebar { position: sticky; top: 104px; display: grid; gap: 8px; padding: 18px 14px; border: 1px solid var(--legal-border); border-radius: 18px; background: rgba(255, 255, 255, .035); }
.legal-sidebar strong { padding: 6px 10px 8px; font-size: 13px; color: #fff; }
.legal-sidebar a { padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 550; line-height: 1.45; color: var(--legal-muted); text-decoration: none; }
.legal-sidebar a:hover, .legal-sidebar a:focus-visible { background: rgba(167, 181, 255, .10); color: #fff; }
.legal-content { min-width: 0; }
.legal-content section { padding: 30px 0 36px; border-bottom: 1px solid var(--legal-border); scroll-margin-top: 96px; }
.legal-content section:first-child { padding-top: 0; }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { margin: 0 0 16px; font-size: clamp(20px, 2.5vw, 25px); line-height: 1.4; letter-spacing: -.025em; color: #f8faff; }
.legal-content p { margin: 0 0 14px; font-size: 15px; color: #d0d8e6; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content strong { color: #edf1fd; }
.legal-content code { padding: 2px 5px; border: 1px solid var(--legal-border); border-radius: 4px; background: #1d2535; font-size: .9em; overflow-wrap: anywhere; }
.legal-pending { padding: 12px 15px; border-left: 3px solid #c6ab63; border-radius: 4px; background: rgba(198, 171, 99, .08); }
.legal-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; padding: 26px max(22px, calc((100vw - 1160px) / 2)); border-top: 1px solid var(--legal-border); color: var(--legal-muted); font-size: 13px; }
.legal-footer a { color: var(--legal-muted); text-decoration: none; }
@media (max-width: 820px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .legal-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 5px; }
  .legal-sidebar strong { flex: 1 0 100%; }
  .legal-content section { scroll-margin-top: 85px; }
}
@media (max-width: 560px) {
  .legal-header-inner { min-height: 66px; flex-wrap: wrap; align-content: center; gap: 0 12px; }
  .legal-header-links { gap: 14px; font-size: 12px; }
  .legal-header-links a { font-size: 12px; }
  .legal-main { padding-top: 36px; padding-bottom: 56px; }
  .legal-heading { margin-bottom: 24px; }
  .legal-footer nav { gap: 12px; }
  .legal-content p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
