/* === MARKET SCOUT — LEGAL PAGES === */
/* Uses the discover.css design system (same CSS variables) */

.legal-page {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── NAVBAR ──────────────────────────────────────────────────── */
.legal-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(11,17,32,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.legal-nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.legal-nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.legal-nav-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #E5E7EB;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.legal-nav-links {
  margin-left: auto;
  display: flex;
  gap: 24px;
  align-items: center;
}
.legal-nav-links a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s, opacity 0.2s;
}
.legal-nav-links a:hover {
  opacity: 0.8;
}
.legal-nav-cta {
  padding: 7px 18px;
  background: var(--accent);
  color: #0B1120;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

/* ── HERO ───────────────────────────────────────────────────── */
.legal-hero {
  padding: 120px 24px 60px;
  text-align: center;
}
.legal-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.legal-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.legal-hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto;
}
.legal-last-updated {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 12px;
}

/* ── CONTENT ────────────────────────────────────────────────── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.legal-section {
  margin-bottom: 48px;
}
.legal-section h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #00D4AA 0%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.legal-section h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
  margin-top: 24px;
}
.legal-section p {
  color: #D1D5DB;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.legal-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}
.legal-section ul li {
  color: #D1D5DB;
  font-size: 0.95rem;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}
.legal-section ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0,212,170,0.35);
  transition: text-decoration-color 0.2s;
}
.legal-section a:hover {
  text-decoration-color: var(--accent);
}
.legal-highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
}
.legal-highlight p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin: 0;
}
.legal-contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 16px;
}
.legal-contact-box p {
  color: #D1D5DB;
  margin: 0;
  font-size: 0.95rem;
}

/* ── BACK LINK ──────────────────────────────────────────────── */
.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 0;
  transition: color 0.2s;
  margin-bottom: 32px;
}
.legal-back-link:hover {
  color: var(--accent);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.legal-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 40px;
}
.legal-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.legal-footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.footer-brand-tagline {
  color: var(--fg-muted);
  font-size: 0.85rem;
  max-width: 260px;
  line-height: 1.5;
}
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.footer-social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy {
  color: var(--fg-muted);
  font-size: 0.8rem;
}
.footer-copy a {
  color: var(--fg-muted);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2);
}
.footer-copy a:hover {
  color: var(--accent);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .legal-nav {
    padding: 0 20px;
  }
  .legal-nav-links {
    gap: 12px;
  }
  .legal-hero {
    padding: 100px 20px 40px;
  }
  .legal-content {
    padding: 0 20px 60px;
  }
  .legal-footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
