:root {
  --bg: #0f1015;
  --bg-soft: #181922;
  --fg: #f5f5f5;
  --muted: #a0a0b8;
  --soft: #6f6f86;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.15);
  --border: rgba(255, 255, 255, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.legal-header {
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
  background: rgba(15, 16, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.legal-header-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.legal-brand {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--gold);
  text-decoration: none;
  line-height: 1;
}
.legal-back {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}
.legal-back:hover { color: var(--gold); }
.legal-back::before { content: '←'; font-size: 1rem; }

main.legal {
  max-width: 880px;
  margin: 0 auto;
  padding: 80px 32px 120px;
}
.legal-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  background: var(--gold-soft);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
main.legal h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 18px;
  color: #fff;
}
.legal-lead {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 56px;
  max-width: 640px;
}
.legal-meta {
  font-size: 0.82rem;
  color: var(--soft);
  margin-bottom: 56px;
  font-style: italic;
}
main.legal h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
  margin-top: 56px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
main.legal h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 32px;
  margin-bottom: 12px;
}
main.legal p {
  margin-bottom: 18px;
  color: var(--fg);
  opacity: 0.92;
}
main.legal ul, main.legal ol {
  margin-bottom: 18px;
  padding-left: 22px;
  color: var(--fg);
  opacity: 0.92;
}
main.legal li { margin-bottom: 8px; }
main.legal li::marker { color: var(--gold); }
main.legal a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  transition: border-color 0.2s ease;
}
main.legal a:hover { border-bottom-color: var(--gold); }
main.legal strong { color: #fff; }
.legal-info-table {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 32px;
}
.legal-info-table dl { margin: 0; }
.legal-info-table dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 14px;
}
.legal-info-table dt:first-child { margin-top: 0; }
.legal-info-table dd {
  font-size: 0.95rem;
  color: var(--fg);
  margin-top: 4px;
  margin-left: 0;
}
.legal-todo {
  display: inline-block;
  background: rgba(220, 90, 90, 0.12);
  border: 1px dashed rgba(220, 90, 90, 0.4);
  color: #e98a8a;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-style: italic;
}

footer.legal-footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--soft);
}
footer.legal-footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.2s ease;
}
footer.legal-footer a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .legal-header { padding: 18px 20px; }
  .legal-brand { font-size: 1.3rem; }
  main.legal { padding: 50px 20px 80px; }
  main.legal h2 { font-size: 1.25rem; margin-top: 40px; }
}
