/* ═══════════════════════════════════════════
   LEGAL PAGES — privacy.html, terms.html
   ═══════════════════════════════════════════ */

/* ─── Hero ─── */
.legal-hero {
  padding: calc(var(--nav-h) + var(--sp-12)) 0 var(--sp-12);
  background: var(--dark-bg-deep);
  text-align: center;
}

.legal-hero__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin-bottom: var(--sp-4);
}

.legal-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}

.legal-hero__meta {
  font-size: var(--text-sm);
  color: var(--dark-muted);
}

/* ─── Body ─── */
.legal-body {
  background: var(--light-bg);
  padding: var(--sp-16) 0 var(--sp-20);
}

.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 220px 1fr;
    max-width: 1060px;
    align-items: start;
  }
}

/* ─── TOC sidebar ─── */
.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-6));
}

.legal-toc__title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.legal-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.legal-toc__list a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  padding: var(--sp-2) var(--sp-3);
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: color var(--ease-fast), border-color var(--ease-fast), background var(--ease-fast);
  line-height: 1.4;
}

.legal-toc__list a:hover {
  color: var(--gold-2);
  border-left-color: var(--gold-2);
  background: rgba(200, 146, 42, 0.06);
}

@media (max-width: 1023px) {
  .legal-toc { display: none; }
}

/* ─── Content ─── */
.legal-content {
  color: var(--text-body);
}

.legal-section {
  margin-bottom: var(--sp-12);
  scroll-margin-top: calc(var(--nav-h) + var(--sp-6));
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.legal-section h2 .section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--gold-grad);
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #0C2B1E;
  flex-shrink: 0;
}

.legal-section p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: var(--sp-4);
}

.legal-section ul,
.legal-section ol {
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.legal-section li {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-body);
}

.legal-section ul li::marker {
  color: var(--gold-2);
}

.legal-section strong {
  color: var(--text-heading);
  font-weight: 600;
}

.legal-section a {
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Contact box ─── */
.legal-contact-box {
  margin-top: var(--sp-6);
  padding: var(--sp-6);
  background: rgba(200, 146, 42, 0.06);
  border: 1px solid rgba(200, 146, 42, 0.2);
  border-radius: var(--r-lg);
}

.legal-contact-box p {
  margin-bottom: var(--sp-2) !important;
}

.legal-contact-box p:last-child {
  margin-bottom: 0 !important;
}

/* ─── Back link ─── */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-2);
  text-decoration: none;
  margin-bottom: var(--sp-10);
  transition: gap var(--ease-fast);
}

.legal-back:hover { gap: var(--sp-3); }
