@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --red: #e3232d;
  --red-dark: #ba141d;
  --ink: #111214;
  --muted: #666b72;
  --paper: #f5f5f3;
  --line: #d8dadd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -70px; padding: 12px 16px; background: white; color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: top .2s ease; }
.skip-link:focus { top: 16px; }

.legal-header {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 88px;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #0e1012;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 12px 34px rgba(0,0,0,.16);
}
.legal-brand { width: 149px; height: 130px; align-self: flex-start; display: grid; place-items: center; background: white; border-bottom: 3px solid var(--red); box-shadow: 0 14px 28px rgba(0,0,0,.16); }
.legal-brand img { width: 108px; height: 120px; object-fit: contain; }
.back-link { display: inline-flex; align-items: center; gap: 11px; color: rgba(255,255,255,.68); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: color .2s ease; }
.back-link::before { content: "←"; color: var(--red); font-size: 18px; }
.back-link:hover, .back-link:focus-visible { color: white; outline: none; }

.legal-main { min-height: calc(100vh - 88px); }
.legal-hero { padding: 112px clamp(24px, 10vw, 170px) 86px; background: #15171a; color: white; }
.legal-kicker { margin: 0 0 24px; color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.legal-hero h1 { max-width: 950px; margin: 0; font-size: clamp(48px, 6.2vw, 90px); line-height: .92; letter-spacing: -.055em; }
.legal-hero p:last-child { max-width: 720px; margin: 30px 0 0; color: rgba(255,255,255,.62); font-size: 16px; line-height: 1.7; }

.draft-notice { padding: 20px clamp(24px, 10vw, 170px); display: flex; align-items: center; gap: 14px; background: #fff2f2; border-bottom: 1px solid #efc7ca; color: #781219; font-size: 14px; line-height: 1.5; }
.draft-notice strong { flex: 0 0 auto; padding: 6px 9px; background: var(--red); color: white; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.legal-content { width: min(100% - 48px, 1080px); margin: 0 auto; padding: 92px 0 120px; }
.legal-content section { padding: 0 0 42px; margin: 0 0 42px; border-bottom: 1px solid var(--line); }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { margin: 0 0 22px; font-size: clamp(27px, 3vw, 40px); line-height: 1.1; letter-spacing: -.035em; }
.legal-content h3 { margin: 30px 0 12px; font-size: 19px; line-height: 1.25; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 16px; line-height: 1.75; }
.legal-content p { margin: 0 0 16px; }
.legal-content ul { margin: 16px 0 0; padding-left: 22px; }
.legal-content strong { color: var(--ink); }
.legal-content a { color: var(--red); text-underline-offset: 3px; }
.legal-placeholder { display: inline-block; padding: 2px 7px; background: #fff0f1; border-bottom: 2px solid var(--red); color: #9c1820; font-weight: 750; }
.legal-meta { color: #888c91 !important; font-size: 13px !important; }

.legal-footer { padding: 38px clamp(24px, 5vw, 80px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 34px; background: #0b0c0e; color: rgba(255,255,255,.52); font-size: 12px; }
.legal-footer-brand { display: grid; width: 59px; min-height: 59px; place-items: center; background: transparent; }
.legal-footer-brand img { display: block; width: 59px; height: 59px; object-fit: contain; object-position: center; }
.legal-footer nav { display: flex; gap: 24px; }
.legal-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.legal-footer a:hover, .legal-footer a:focus-visible { color: white; }

@media (max-width: 720px) {
  .legal-header { min-height: 72px; padding: 0 14px; }
  .legal-brand { width: 91px; height: 95px; border-bottom-width: 2px; }
  .legal-brand img { width: 70px; height: 86px; }
  .back-link { max-width: 180px; justify-content: flex-end; font-size: 10px; line-height: 1.4; text-align: right; }
  .legal-hero { padding: 84px 18px 52px; }
  .legal-kicker { margin-bottom: 17px; font-size: 11px; }
  .legal-hero h1 { font-size: 42px; line-height: .98; }
  .legal-hero p:last-child { margin-top: 22px; font-size: 15px; }
  .draft-notice { padding: 16px 18px; align-items: flex-start; flex-direction: column; }
  .legal-content { width: calc(100% - 36px); padding: 56px 0 76px; }
  .legal-content section { padding-bottom: 32px; margin-bottom: 32px; }
  .legal-content h2 { margin-bottom: 17px; font-size: 28px; }
  .legal-content h3 { font-size: 18px; }
  .legal-content p, .legal-content li { font-size: 15px; line-height: 1.68; }
  .legal-footer { padding: 30px 18px; grid-template-columns: 1fr; align-items: flex-start; }
  .legal-footer-brand { width: 49px; min-height: 49px; }
  .legal-footer-brand img { width: 49px; height: 49px; }
  .legal-footer nav { flex-wrap: wrap; gap: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}
