:root {
  color-scheme: dark;
  --canvas: #080a0d;
  --panel: #101419;
  --accent: #ff7418;
  --text: #f5f3ef;
  --muted: #a7adb5;
  --steel: #d6dce3;
  --line: rgba(174, 184, 196, 0.2);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--text); font-family: "DM Sans", Arial, sans-serif; font-size: 16px; line-height: 1.7; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #11151a; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.legal-nav { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(8, 10, 13, 0.95); backdrop-filter: blur(18px); }
.legal-nav-inner { width: min(var(--max), calc(100% - 48px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Archivo Black", Arial, sans-serif; font-size: 15px; line-height: 1.05; }
.legal-brand img { width: 40px; height: 36px; object-fit: contain; }
.legal-brand small { display: block; margin-top: 5px; color: var(--muted); font-family: "DM Sans", Arial, sans-serif; font-size: 10px; font-weight: 700; }
.back-link { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; padding: 0 18px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-weight: 800; }
.back-link::before { content: "\2190"; color: var(--accent); font-size: 20px; }
.back-link:hover { border-color: var(--steel); }

.legal-hero { border-bottom: 1px solid var(--line); }
.legal-hero-inner { width: min(var(--max), calc(100% - 48px)); min-height: 420px; margin: 0 auto; display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 80px; align-items: end; padding: 90px 0 72px; }
.legal-kicker { margin: 0 0 16px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
h1 { max-width: 9ch; margin: 0; font-family: "Archivo Black", Arial, sans-serif; font-size: clamp(52px, 7vw, 94px); font-weight: 400; line-height: 0.94; }
.legal-summary { max-width: 54ch; margin: 0; color: var(--steel); font-size: 20px; }
.legal-date { display: block; margin-top: 24px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }

.legal-layout { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 80px; padding: 88px 0 120px; }
.legal-index { position: sticky; top: 112px; align-self: start; display: grid; gap: 12px; }
.legal-index strong { margin-bottom: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.legal-index a { width: fit-content; color: var(--muted); font-size: 13px; }
.legal-index a:hover { color: var(--accent); }
.legal-content { min-width: 0; }
.legal-section { padding: 0 0 56px; margin: 0 0 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 112px; }
.legal-section:last-child { margin-bottom: 0; }
h2 { max-width: 18ch; margin: 0 0 24px; font-family: "Archivo Black", Arial, sans-serif; font-size: clamp(30px, 4vw, 48px); font-weight: 400; line-height: 1; }
h3 { margin: 32px 0 12px; color: var(--steel); font-size: 17px; }
.legal-section p, .legal-section li { max-width: 72ch; color: #bbc2ca; }
.legal-section ul { margin: 18px 0 0; padding-left: 22px; }
.legal-section li + li { margin-top: 10px; }
.legal-callout { padding: 22px 0 22px 24px; border-left: 3px solid var(--accent); color: var(--steel); }
.legal-contact { display: inline-flex; margin-top: 14px; color: var(--text); font-weight: 800; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }

.legal-footer { border-top: 1px solid var(--line); }
.legal-footer-inner { width: min(var(--max), calc(100% - 48px)); min-height: 150px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 12px; }
.legal-footer-links { display: flex; gap: 22px; }
.legal-footer-links a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .legal-nav-inner, .legal-hero-inner, .legal-layout, .legal-footer-inner { width: min(100% - 28px, var(--max)); }
  .legal-brand span { font-size: 12px; }
  .legal-brand small { font-size: 8px; }
  .back-link { width: 44px; padding: 0; justify-content: center; font-size: 0; }
  .legal-hero-inner { min-height: auto; grid-template-columns: 1fr; gap: 34px; align-items: start; padding: 72px 0 56px; }
  h1 { font-size: 52px; }
  .legal-summary { font-size: 17px; }
  .legal-layout { grid-template-columns: 1fr; gap: 52px; padding: 64px 0 88px; }
  .legal-index { position: static; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
  .legal-footer-inner { min-height: auto; flex-direction: column; align-items: flex-start; padding: 42px 0; }
  .legal-footer-links { flex-wrap: wrap; }
}

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