/* ══════════════════════════════════════════════════════════════
   Finhanced Inc. — Legal Page Styles
   ══════════════════════════════════════════════════════════════ */

/* ── HEADER OVERRIDE (non-fixed, static) ── */
.site-header {
  position: static;
  background: var(--navy);
  padding: 0;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
}
.back-link {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s;
}
.back-link:hover { color: var(--gold); }

/* ── PAGE HERO ── */
.page-hero {
  background: var(--navy);
  padding: 60px 24px 48px;
  border-bottom: 3px solid var(--gold);
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  max-width: 640px;
}
.page-hero .updated {
  margin-top: 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ── LAYOUT ── */
.legal-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 100px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
}

/* ── SIDEBAR NAV ── */
.legal-nav {
  position: sticky;
  top: 32px;
  align-self: start;
}
.legal-nav h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}
.legal-nav ul {
  list-style: none;
}
.legal-nav li {
  margin-bottom: 6px;
}
.legal-nav a {
  display: block;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--gray-600);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.3s;
  border-radius: 0 4px 4px 0;
}
.legal-nav a:hover,
.legal-nav a.active {
  color: var(--text-dark);
  border-left-color: var(--gold);
  background: var(--gold-dim);
}

/* ── CONTENT ── */
.legal-content section {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--gray-200);
}
.legal-content section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  scroll-margin-top: 32px;
}
.legal-content .section-sub {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}
.legal-content strong {
  color: var(--text-dark);
}
.highlight-box {
  background: var(--gold-dim);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}
.highlight-box p {
  margin-bottom: 0;
  color: var(--text-dark);
  font-weight: 500;
}

/* ── FOOTER OVERRIDE (simple) ── */
.site-footer {
  padding: 32px 24px;
  text-align: center;
}
.site-footer p {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
}
.site-footer a {
  color: var(--gold);
  text-decoration: none;
}

/* ── LIGHT MODE ── */
/* Legal header + hero keep dark bg */
[data-theme="light"] .legal-header { background: #1a1a1a; }
[data-theme="light"] .page-hero { background: #1a1a1a; }
[data-theme="light"] .legal-content h2 { color: var(--text-dark); }
[data-theme="light"] .legal-content p,
[data-theme="light"] .legal-content li { color: var(--text-body); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .legal-nav {
    position: static;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
  }
}
