/* ============================================
   legal.css — Privacy Policy & Terms of Service
   ============================================ */

body {
  background: var(--offwhite);
  color: var(--navy);
}

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5%;
  border-bottom: 1px solid var(--border);
}
.site-header img { height: 42px; }
.logo-text {
  color: var(--gold-lt); font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 1.1rem; letter-spacing: 0.06em;
}
.header-back {
  color: var(--gold-lt); font-family: 'Sora', sans-serif;
  font-weight: 600; font-size: 0.88rem; text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.header-back:hover { color: var(--white); }
.header-back::before { content: '←'; }

/* ── HERO BANNER ── */
.legal-hero {
  background-color: var(--navy);
  background-image: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(200,150,62,0.1) 0%, transparent 70%);
  padding: 56px 5% 52px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.legal-tag {
  display: inline-block;
  font-family: 'Sora', sans-serif; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 3px; margin-bottom: 16px;
}
.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; color: var(--white); margin-bottom: 12px;
}
.legal-hero p {
  color: rgba(255,255,255,0.55); font-size: 0.88rem;
}

/* ── LAYOUT ── */
.legal-layout {
  display: flex; align-items: flex-start; gap: 40px;
  max-width: 1100px; margin: 0 auto;
  padding: 56px 5% 80px;
}

/* ── SIDEBAR TOC ── */
.legal-toc {
  flex: 0 0 220px;
  position: sticky; top: 80px;
  background: var(--white);
  border: 1px solid #e9ecef;
  border-radius: 10px; padding: 20px;
}
.legal-toc h4 {
  font-family: 'Sora', sans-serif; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.legal-toc ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
  counter-reset: toc-counter;
}
.legal-toc ol li { counter-increment: toc-counter; }
.legal-toc ol li a {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: #6b7280; text-decoration: none;
  padding: 6px 8px; border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.legal-toc ol li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: 'Sora', sans-serif; font-size: 0.68rem;
  font-weight: 700; color: var(--gold); flex-shrink: 0;
}
.legal-toc ol li a:hover {
  background: var(--offwhite); color: var(--navy);
}

/* ── CONTENT ── */
.legal-content {
  flex: 1; min-width: 0;
  background: var(--white);
  border: 1px solid #e9ecef;
  border-radius: 12px; padding: 48px 52px;
}

.legal-section {
  padding-top: 8px; margin-bottom: 44px;
  border-bottom: 1px solid #f0f0f0; padding-bottom: 44px;
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.legal-section-num {
  display: inline-block;
  font-family: 'Sora', sans-serif; font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.legal-section h2 {
  font-size: 1.2rem; font-weight: 800; color: var(--navy);
  margin-bottom: 16px; scroll-margin-top: 90px;
}
.legal-section p {
  font-size: 0.92rem; color: #4b5563; line-height: 1.8; margin-bottom: 12px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  margin: 12px 0 12px 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.legal-section ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; color: #4b5563; line-height: 1.65;
}
.legal-section ul li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0; margin-top: 8px;
}
.legal-section a {
  color: var(--orange); text-decoration: none; border-bottom: 1px solid rgba(232,98,10,0.3);
  transition: border-color 0.2s;
}
.legal-section a:hover { border-color: var(--orange); }

/* Highlight box */
.legal-highlight {
  background: rgba(200,150,62,0.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px; margin: 16px 0;
  font-size: 0.88rem; color: #374151; line-height: 1.7;
}

/* ── FOOTER ── */
.site-footer-meta {
  background: #060e1c; color: rgba(255,255,255,0.35);
  text-align: center; padding: 20px 5%; font-size: 0.78rem;
}
.site-footer-meta a { color: rgba(255,255,255,0.45); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .legal-layout { flex-direction: column; gap: 24px; }
  .legal-toc { flex: none; width: 100%; position: static; }
  .legal-toc ol { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .legal-content { padding: 28px 24px; }
}
@media (max-width: 480px) {
  .legal-hero { padding: 40px 4% 36px; }
  .legal-content { padding: 24px 18px; }
}