@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-italic-latin.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #111216;
  --panel: #1e1f24;
  --paper: #f2eee8;
  --coral: #fa9488;
  --mint: #9fd2c4;
  --muted: #a9a6b0;
  --line: rgba(242, 238, 232, .14);
  --display: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
:where(a, button):focus-visible { outline: 3px solid var(--mint); outline-offset: 5px; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 12px 16px; color: var(--ink); background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.legal-nav { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 16px clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); background: rgba(17, 18, 22, .92); backdrop-filter: blur(18px); }
.legal-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; text-decoration: none; }
.legal-brand img { width: 36px; height: 36px; border-radius: 10px; }
.legal-nav nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.legal-nav nav a, .legal-nav nav button { padding: 0; border: 0; color: #aaa7af; background: none; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; cursor: pointer; }
.legal-nav nav a[aria-current="page"] { color: var(--coral); }
.back-link { padding: 11px 15px !important; border: 1px solid rgba(250,148,136,.4) !important; border-radius: 999px; color: var(--paper) !important; }

.legal-hero { padding: clamp(85px, 11vw, 170px) clamp(24px, 7vw, 120px) clamp(70px, 9vw, 130px); border-bottom: 1px solid var(--line); }
.legal-hero-inner { max-width: 1510px; margin: auto; }
.kicker, .updated, .toc-label { color: var(--coral); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 700; }
.legal-hero h1 { margin: 18px 0 25px; font-family: var(--display); font-size: clamp(72px, 11vw, 170px); font-weight: 400; line-height: .82; letter-spacing: -.04em; }
.legal-hero .intro { max-width: 800px; margin: 0; color: #aaa7b0; font-family: var(--display); font-size: clamp(24px, 2.5vw, 39px); line-height: 1.2; }
.legal-hero .updated { margin-top: 38px; color: #74717a; }

.legal-layout { display: grid; grid-template-columns: minmax(220px, .38fr) minmax(0, 1fr); gap: clamp(50px, 9vw, 150px); max-width: 1510px; margin: auto; padding: clamp(65px, 8vw, 120px) clamp(24px, 7vw, 120px); }
.toc { align-self: start; position: sticky; top: 105px; }
.toc-label { margin: 0 0 20px; }
.toc a { display: block; padding: 10px 0; color: #85828b; text-decoration: none; font-size: 12px; line-height: 1.35; }
.toc a:hover { color: var(--paper); }
.legal-copy { min-width: 0; }
.legal-copy section { scroll-margin-top: 110px; padding: 0 0 clamp(54px, 6vw, 85px); }
.legal-copy section + section { padding-top: clamp(54px, 6vw, 85px); border-top: 1px solid var(--line); }
.legal-copy h2 { margin: 0 0 24px; font-family: var(--display); font-size: clamp(34px, 4vw, 58px); font-weight: 400; line-height: 1; }
.legal-copy p, .legal-copy li { max-width: 900px; color: #aaa7b0; font-size: 15px; line-height: 1.78; }
.legal-copy p { margin: 0 0 18px; }
.legal-copy p:last-child { margin-bottom: 0; }
.legal-copy a { color: var(--paper); text-decoration-color: rgba(250,148,136,.55); text-underline-offset: 4px; }
.legal-copy a:hover { color: var(--coral); }
.contact-block { margin-top: 15px; padding: clamp(34px, 5vw, 58px) !important; border: 1px solid rgba(250,148,136,.25) !important; border-radius: 22px; background: rgba(250,148,136,.06); }
.contact-block + section { border-top: 0 !important; }
.legal-copy .support-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 52px); align-items: center; padding: clamp(32px, 4vw, 52px); border: 1px solid rgba(250,148,136,.25); border-radius: 22px; background: rgba(250,148,136,.06); }
.support-card h2 { margin-bottom: 15px; }
.support-card p { margin: 0; }
.button { display: inline-flex; justify-content: center; padding: 16px 20px; border-radius: 999px; color: var(--ink) !important; background: var(--coral); text-decoration: none !important; font-size: 12px; font-weight: 700; white-space: nowrap; }

.legal-footer { display: grid; grid-template-columns: .8fr 1fr; gap: 35px; padding: 40px clamp(24px, 5vw, 80px); border-top: 1px solid var(--line); color: #85828b; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--paper); }
.footer-brand img { width: 32px; height: 32px; border-radius: 9px; }
.legal-footer nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 16px 28px; }
.legal-footer nav a, .legal-footer nav button { padding: 0; border: 0; color: #aaa7af; background: none; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; cursor: pointer; }
.legal-footer > p { grid-column: 1 / -1; margin: 15px 0 0; font-size: 10px; }

.consent-banner { position: fixed; z-index: 999; right: 18px; bottom: 18px; left: 18px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 26px; border: 1px solid rgba(255,255,255,.15); border-radius: 19px; color: var(--paper); background: rgba(31,32,37,.96); box-shadow: 0 25px 70px rgba(0,0,0,.35); backdrop-filter: blur(18px); }
.consent-banner[hidden] { display: none; }
.consent-label { margin: 0 0 6px; color: var(--coral); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.consent-banner h2 { margin: 0 0 5px; font-family: var(--display); font-size: 25px; font-weight: 400; }
.consent-banner p:last-child { margin: 0; color: #aaa7af; font-size: 12px; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions button { min-width: 125px; padding: 13px 17px; border-radius: 999px; cursor: pointer; font-size: 12px; }
.consent-secondary { border: 1px solid #56545c; color: var(--paper); background: transparent; }
.consent-primary { border: 1px solid var(--coral); color: var(--ink); background: var(--coral); }

@media (max-width: 820px) {
  .legal-nav { align-items: flex-start; }
  .legal-nav nav a:not(.back-link), .legal-nav nav button { display: none; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 18px; padding-bottom: 35px; border-bottom: 1px solid var(--line); }
  .toc-label { grid-column: 1 / -1; }
  .legal-footer { grid-template-columns: 1fr; }
  .legal-footer nav { justify-content: flex-start; }
  .legal-copy .support-card { grid-template-columns: 1fr; gap: 24px; }
  .button { justify-self: start; }
}

@media (max-width: 520px) {
  .legal-nav { padding: 13px 15px; }
  .legal-brand { font-size: 20px; }
  .back-link { padding: 10px 12px !important; }
  .legal-hero { padding: 80px 20px 65px; }
  .legal-hero h1 { font-size: 78px; }
  .legal-layout { padding: 55px 20px 80px; }
  .toc { grid-template-columns: 1fr; }
  .toc-label { grid-column: auto; }
  .legal-copy .support-card { padding: 28px; }
  .contact-block { margin-inline: -4px; padding: 28px !important; }
  .legal-footer { padding: 34px 20px; }
  .consent-banner { right: 10px; bottom: 10px; left: 10px; align-items: stretch; flex-direction: column; padding: 20px; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-actions button { min-width: 0; }
}

@media print {
  .legal-nav, .toc, .legal-footer, .consent-banner { display: none !important; }
  body { color: #111; background: #fff; }
  .legal-hero { padding: 25px 0; border-color: #ccc; }
  .legal-hero h1 { font-size: 60px; }
  .legal-layout { display: block; max-width: none; padding: 25px 0; }
  .legal-copy p, .legal-copy li { color: #333; }
  .legal-copy a { color: #111; }
  .legal-copy section { break-inside: avoid; }
}

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