/* ═══════════════════════════════════════════════════════
   Empower LO — Legal Pages (Terms & Privacy)
   ═══════════════════════════════════════════════════════ */

/* ═══ LEGAL HERO ═══ */
.legal-hero {
  padding: 120px 24px 60px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.legal-hero .container { max-width: 820px; }
.legal-hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--text);
}
.legal-hero .legal-updated {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.legal-hero .legal-entity {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══ TABLE OF CONTENTS ═══ */
.legal-toc {
  padding: 48px 24px 0;
}
.legal-toc .container { max-width: 820px; }
.legal-toc h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
  columns: 2;
  column-gap: 32px;
}
.toc-list li {
  padding: 6px 0;
  break-inside: avoid;
}
.toc-list a {
  font-size: 14px;
  color: var(--purple);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
  display: inline;
}
.toc-list a:hover {
  color: var(--orange);
  text-decoration: underline;
}
.toc-list .toc-number {
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 6px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* ═══ LEGAL BODY ═══ */
.legal-body {
  padding: 48px 24px 100px;
}
.legal-body .container { max-width: 820px; }

.legal-section {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}
.legal-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--purple-bg);
  line-height: 1.3;
}
.legal-section h2 .section-num {
  color: var(--purple);
  margin-right: 8px;
  font-weight: 800;
}
.legal-section h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
}
.legal-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.legal-section ul, .legal-section ol {
  margin: 12px 0 16px 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.legal-section li {
  margin-bottom: 6px;
}
.legal-section a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.legal-section a:hover {
  color: var(--orange);
}
.legal-section strong {
  color: var(--text);
  font-weight: 600;
}

/* Contact block at bottom */
.legal-contact {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 32px;
  margin-top: 16px;
}
.legal-contact p {
  margin-bottom: 6px;
}
.legal-contact p:last-child {
  margin-bottom: 0;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .legal-hero { padding: 100px 24px 40px; }
  .toc-list { columns: 1; }
  .legal-section h2 { font-size: 19px; }
  .legal-contact { padding: 20px 24px; }
}
