:root {
  --bg: #0d0e18;
  --bg-elevated: #15172a;
  --cream: #f5f1e8;
  --cream-muted: #c8c4b9;
  --cream-dim: #8a8678;
  --gold: #e8a82e;
  --gold-soft: #c79028;
  --border: #2a2c45;
  --border-strong: #3a3d5e;
  --measure: 64ch;
  --measure-narrow: 56ch;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(232, 168, 46, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

a:hover {
  color: var(--gold-soft);
  text-decoration-color: var(--gold);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.wordmark {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--cream);
}

.wordmark-cream { color: var(--cream); }
.wordmark-gold  { color: var(--gold); }

.back-link {
  font-size: 14px;
  color: var(--cream-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--gold);
}

.legal-main {
  flex: 1;
  padding: 80px 40px 120px;
  display: flex;
  justify-content: center;
}

.legal-article {
  width: 100%;
  max-width: var(--measure);
}

.kicker {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.legal-article h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--cream);
}

.effective-date {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--cream-dim);
  margin-bottom: 48px;
}

.lede {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.6;
  color: var(--cream-muted);
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  margin-bottom: 56px;
  max-width: var(--measure-narrow);
}

.lede strong {
  font-style: normal;
  font-weight: 500;
  color: var(--cream);
}

.lede a {
  font-style: normal;
}

.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 32px;
  margin-bottom: 64px;
}

.toc-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 16px;
}

.toc ol {
  list-style: decimal;
  list-style-position: inside;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  font-size: 14px;
  line-height: 2;
  color: var(--cream-muted);
  break-inside: avoid;
}

.toc li::marker {
  color: var(--cream-dim);
}

.toc a {
  text-decoration: none;
  color: var(--cream-muted);
  transition: color 0.15s ease;
}

.toc a:hover {
  color: var(--gold);
}

.legal-article section {
  margin-bottom: 56px;
  scroll-margin-top: 24px;
}

.legal-article h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--cream);
  position: relative;
}

.legal-article h2::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.legal-article section:target h2::before,
.legal-article h2:hover::before {
  opacity: 1;
}

.legal-article p {
  margin-bottom: 20px;
  color: var(--cream-muted);
}

.legal-article p strong {
  color: var(--cream);
  font-weight: 600;
}

.legal-article ul {
  list-style: none;
  margin-bottom: 24px;
  padding-left: 0;
}

.legal-article ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--cream-muted);
}

.legal-article ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 13px;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.legal-article ul li strong {
  color: var(--cream);
  font-weight: 600;
}

.contact-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  padding: 24px 28px;
  border-radius: 4px;
  color: var(--cream);
  line-height: 1.9;
}

.legal-footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  background: var(--bg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-wordmark {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  color: var(--cream-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-meta {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--cream-dim);
}

@media (max-width: 720px) {
  .legal-header {
    padding: 20px 24px;
  }
  .legal-main {
    padding: 48px 24px 80px;
  }
  .toc {
    padding: 20px 22px;
  }
  .toc ol {
    columns: 1;
  }
  .legal-article h2::before {
    display: none;
  }
  .legal-footer {
    padding: 32px 24px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .lede {
    padding-left: 16px;
    font-size: 17px;
  }
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

@media print {
  body {
    background: white;
    color: black;
  }
  .legal-header, .legal-footer, .toc, .back-link {
    display: none;
  }
  .legal-main {
    padding: 0;
  }
  a {
    color: black;
    text-decoration: underline;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.lang-switcher a {
  color: var(--cream-muted);
  text-decoration: none;
  padding: 2px 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-switcher a:hover,
.lang-switcher a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
  outline: none;
}

.lang-switcher .lang-current {
  color: var(--gold);
}

.lang-switcher .lang-sep {
  color: var(--cream-dim);
}

@media (max-width: 720px) {
  .header-right {
    gap: 16px;
  }
  .lang-switcher {
    font-size: 12px;
  }
}
