:root {
  --ink: #1c1630;
  --muted: #6d6679;
  --paper: #faf9fc;
  --white: #fff;
  --line: #e5e0ec;
  --coral: #7047eb;
  --coral-dark: #5730c7;
  --purple: #7447e8;
  --display: 'Sora', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --wrap: min(1120px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.legal-header { border-bottom: 1px solid var(--line); background: rgba(250, 249, 252, .94); }
.legal-nav {
  width: var(--wrap);
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: block; flex: 0 0 auto; object-fit: contain; }
.back-link { color: var(--muted); font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.legal-hero { padding: 78px 0 62px; border-bottom: 1px solid var(--line); background: var(--white); }
.hero-inner { width: var(--wrap); margin: auto; }
.eyebrow { margin: 0 0 14px; color: var(--coral-dark); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.15; letter-spacing: 0; }
h1 { max-width: 850px; font-size: clamp(2.7rem, 7vw, 5.4rem); }
.summary { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: 1.15rem; }
.effective { margin: 24px 0 0; font-size: .9rem; font-weight: 600; }
.legal-layout { width: var(--wrap); margin: auto; padding: 64px 0 96px; display: grid; grid-template-columns: 240px minmax(0, 740px); gap: clamp(48px, 8vw, 100px); align-items: start; }
.toc { position: sticky; top: 28px; display: grid; gap: 4px; }
.toc strong { margin-bottom: 10px; font-family: var(--display); font-size: .92rem; }
.toc a { padding: 7px 0; color: var(--muted); font-size: .88rem; text-decoration: none; }
.toc a:hover { color: var(--coral-dark); }
.legal-copy { min-width: 0; }
.notice { margin: 0 0 42px; padding: 22px 24px; border-left: 4px solid var(--purple); background: #f2edff; }
.notice strong { display: block; margin-bottom: 4px; font-family: var(--display); }
.legal-section { padding: 0 0 42px; scroll-margin-top: 24px; }
.legal-section + .legal-section { padding-top: 42px; border-top: 1px solid var(--line); }
.legal-section h2 { margin-bottom: 18px; font-size: clamp(1.45rem, 3vw, 2rem); }
.legal-section h3 { margin: 28px 0 10px; font-size: 1.05rem; }
.legal-section p { margin: 0 0 16px; }
.legal-section ul { margin: 0 0 18px; padding-left: 22px; }
.legal-section li { margin-bottom: 9px; }
.legal-section a { color: var(--coral-dark); font-weight: 600; }
.legal-footer { border-top: 1px solid var(--line); background: #171020; color: #b9b1c2; }
.footer-inner { width: var(--wrap); margin: auto; padding: 42px 0; display: flex; justify-content: space-between; gap: 28px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--white); }

@media (max-width: 760px) {
  :root { --wrap: min(100% - 30px, 1120px); }
  .legal-nav { min-height: 64px; }
  .legal-hero { padding: 56px 0 46px; }
  .legal-layout { grid-template-columns: 1fr; padding: 42px 0 72px; }
  .toc { position: static; padding-bottom: 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .toc strong { grid-column: 1 / -1; }
  .footer-inner { flex-direction: column; }
}

@media print {
  .toc, .back-link, .legal-footer { display: none; }
  .legal-layout { display: block; width: 100%; padding: 30px; }
  .legal-hero { padding: 30px; }
  .hero-inner { width: 100%; }
}
