/* ══════════════════════════════════════════════
   FB VIDEO DOWNLOADER - LEGAL PAGES CSS
   Light theme to match pricing page
══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f5f6f8;
  color: #0d1117;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  z-index: 999;
}

/* ════════════════════════════════
   NAVBAR (same as pricing)
════════════════════════════════ */
.legal-nav {
  position: sticky;
  top: 2px;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}

.legal-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 48px;
}

.nav-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.15s;
}

.nav-back-btn:hover {
  background: #f5f6f8;
  color: #0d1117;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.nav-logo span {
  font-size: 14px;
  font-weight: 700;
  color: #0d1117;
  letter-spacing: -0.02em;
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
}

.nav-link:hover {
  background: #f5f6f8;
  color: #2563eb;
}

/* ── Layout ── */
.legal-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-page {
  flex: 1;
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 48px 80px;
  width: 100%;
}

/* ── Header ── */
.legal-page h1 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: #0d1117;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal-updated {
  display: inline-block;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  margin-bottom: 36px;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── Section headings ── */
.legal-page h2 {
  font-size: 15px;
  font-weight: 700;
  color: #0d1117;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
  letter-spacing: -0.01em;
}

/* ── Body text ── */
.legal-page p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ── Lists ── */
.legal-page ul {
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-page ul li {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
}

.legal-page ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2563eb;
  opacity: 0.5;
}

/* ── Contact link ── */
.legal-page a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}
.legal-page a:hover { text-decoration: underline; }

/* ── Footer links ── */
.legal-links {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-links a {
  color: #9ca3af !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  transition: color 0.15s;
}
.legal-links a:hover { color: #2563eb !important; }

/* ── Simple page footer ── */
.legal-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 16px 48px;
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
}

/* ── Fade in ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.legal-page { animation: fadeUp 0.4s ease-out; }

@media (max-width: 640px) {
  .legal-page { padding: 28px 16px 60px; }
  .legal-footer { padding: 16px; }
  .legal-nav-inner { padding: 0 16px; }
}
