/* ═══════════════════════════════════════════════════════════════
   EPR eCom – Marketing Landing Page Stylesheet
   Colors derived from logo: Navy #1B3A5C, Green #3CB54A
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --navy-900: #0F1F33;
  --navy-800: #162D4A;
  --navy-700: #1B3A5C;
  --navy-600: #234B76;
  --navy-500: #2D5F93;
  --navy-100: #D4E3F5;
  --navy-50:  #EAF1FA;

  --green-600: #2FA840;
  --green-500: #3CB54A;
  --green-400: #5AC968;
  --green-300: #7DD98A;
  --green-200: #A8E8B0;
  --green-100: #D4F4D9;
  --green-50:  #EEFBF0;

  /* Neutrals */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Danger */
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-50:  #fef2f2;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base:  1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.25rem;
  --font-size-2xl:  1.5rem;
  --font-size-3xl:  1.875rem;
  --font-size-4xl:  2.25rem;
  --font-size-5xl:  3rem;
  --font-size-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-glow-green: 0 0 40px rgba(60, 181, 74, 0.25);
  --shadow-glow-navy:  0 0 40px rgba(27, 58, 92, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 250ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);
}

/* ── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--slate-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* ── UTILITY: CONTAINER ────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%      { transform: scale(1.05); opacity: 0.6; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.animate-fade-up {
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out) forwards;
}

.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.45s; }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-100);
  padding: var(--space-3) 0;
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.nav-logo-text {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--navy-700);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--slate-600);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-500);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--green-600);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta-btn {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 700;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 12px rgba(60, 181, 74, 0.3);
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(60, 181, 74, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-700);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-20);
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--slate-50) 100%);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse-soft 8s ease-in-out infinite;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(60, 181, 74, 0.08);
  top: -150px;
  right: -100px;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(27, 58, 92, 0.06);
  bottom: -100px;
  left: -100px;
  animation-delay: 3s;
}

.hero-shape-3 {
  width: 250px;
  height: 250px;
  background: rgba(60, 181, 74, 0.06);
  top: 50%;
  left: 50%;
  animation-delay: 5s;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 820px;
}

.hero-headline {
  font-size: var(--font-size-5xl);
  font-weight: 900;
  color: var(--navy-900);
  margin-bottom: var(--space-6);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-subheadline {
  font-size: var(--font-size-lg);
  color: var(--slate-600);
  max-width: 640px;
  margin: 0 auto var(--space-10);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-family);
  font-weight: 700;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-align: center;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  box-shadow: 0 4px 24px rgba(60, 181, 74, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(60, 181, 74, 0.4);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--white);
  color: var(--slate-400);
  border: 2px solid var(--slate-200);
}

.btn-disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--green-600);
  border: 2px solid var(--green-500);
}

.btn-outline:hover {
  background: var(--green-50);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-base);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
}

.badge-soon {
  display: inline-block;
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: var(--space-2);
}

/* ══════════════════════════════════════════════════════════════
   SECTION HEADERS (shared)
   ══════════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-600);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--slate-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   LIABILITY SECTION
   ══════════════════════════════════════════════════════════════ */
.liability {
  padding: var(--space-24) 0;
  background: var(--slate-50);
  position: relative;
}

.liability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.liability-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.liability-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.liability-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red-500), var(--red-600));
}

.liability-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.country-flag svg {
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.country-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--navy-800);
}

.liability-card-body {
  font-size: var(--font-size-sm);
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.liability-card-penalty {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--slate-100);
}

.penalty-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
}

.penalty-amount {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--red-600);
}

/* ══════════════════════════════════════════════════════════════
   FEATURES SECTION
   ══════════════════════════════════════════════════════════════ */
.features {
  padding: var(--space-24) 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
}

.feature-card {
  text-align: center;
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: var(--slate-50);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: var(--green-600);
  transition: transform var(--transition-base);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08);
}

.feature-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: var(--space-3);
}

.feature-desc {
  font-size: var(--font-size-sm);
  color: var(--slate-600);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   PRICING SECTION
   ══════════════════════════════════════════════════════════════ */
.pricing {
  padding: var(--space-24) 0;
  background: var(--slate-50);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 800px;
  margin: 0 auto;
}

.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1060px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Pin CTA to the bottom of the card */
.pricing-cta {
  margin-top: auto;
}

.pricing-card-featured {
  background: var(--navy-900);
  border: 3px solid var(--green-500);
  position: relative;
  box-shadow: var(--shadow-glow-green);
}

.pricing-card-featured:hover {
  box-shadow: 0 0 60px rgba(60, 181, 74, 0.35), var(--shadow-xl);
}

.pricing-badge {
  position: absolute;
  top: 0;
  right: var(--space-8);
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  font-size: var(--font-size-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
}

.pricing-card-header {
  margin-bottom: var(--space-8);
}

.plan-name {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-500);
  margin-bottom: var(--space-2);
}

.plan-name-featured {
  color: var(--green-400);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}

.price-amount {
  font-size: var(--font-size-5xl);
  font-weight: 900;
  color: var(--navy-900);
  letter-spacing: -0.03em;
}

.price-amount-featured {
  color: var(--white);
}

.price-period {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--slate-500);
}

.price-period-featured {
  color: var(--slate-400);
}

.plan-features {
  flex: 1;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--slate-700);
}

.plan-feature-featured {
  color: var(--slate-300);
  font-weight: 600;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.check-active {
  background: var(--green-100);
  color: var(--green-600);
}

.check-featured {
  background: rgba(60, 181, 74, 0.2);
  color: var(--green-400);
}

.plan-tagline {
  margin-top: var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: 700;
  font-style: italic;
  color: var(--green-400);
  text-align: center;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-900);
  color: var(--slate-400);
  padding: var(--space-16) 0;
  border-top: 1px solid var(--navy-800);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--navy-800);
  margin-bottom: var(--space-8);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  background: var(--white);
  padding: 4px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}

.footer-logo-text {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  gap: var(--space-8);
}

.footer-link {
  font-size: var(--font-size-sm);
  color: var(--slate-400);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--green-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
}

.footer-copyright {
  font-size: var(--font-size-xs);
  color: var(--slate-500);
  white-space: nowrap;
}

.footer-disclaimer {
  font-size: var(--font-size-xs);
  color: var(--slate-500);
  font-style: italic;
  text-align: right;
  max-width: 480px;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE: TABLET
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-headline {
    font-size: var(--font-size-4xl);
  }

  .liability-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .pricing-grid-3 {
    max-width: 420px;
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE: MOBILE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--space-6);
    gap: var(--space-4);
    border-bottom: 1px solid var(--slate-100);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: var(--space-16) 0 var(--space-12);
  }

  .hero-headline {
    font-size: var(--font-size-3xl);
  }

  .hero-subheadline {
    font-size: var(--font-size-base);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    padding: 0 var(--space-4);
  }

  .btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-base);
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-3);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
  }

  .footer-disclaimer {
    text-align: left;
  }

  .liability-card {
    padding: var(--space-6);
  }
}

/* ── Scroll-triggered fade-in ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   LEGAL PAGES (Privacy Policy, Terms of Service)
   ══════════════════════════════════════════════════════════════ */
.legal-page {
  padding: var(--space-16) 0 var(--space-24);
  background: linear-gradient(180deg, var(--white) 0%, var(--slate-50) 100%);
  min-height: 60vh;
}

.legal-container {
  max-width: 780px;
}

.legal-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.legal-title {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  color: var(--navy-900);
  letter-spacing: -0.035em;
  margin-bottom: var(--space-3);
}

.legal-updated {
  font-size: var(--font-size-sm);
  color: var(--slate-500);
  font-weight: 500;
}

.legal-body {
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--slate-200);
  padding: var(--space-12) var(--space-10);
  box-shadow: var(--shadow-sm);
}

.legal-section {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--slate-100);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-heading {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.legal-body p {
  font-size: var(--font-size-base);
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.legal-body p:last-child {
  margin-bottom: 0;
}

/* Legal info cards (Privacy page) */
.legal-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.legal-info-card {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.legal-info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.legal-info-card h3 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: var(--space-2);
}

.legal-info-card p {
  font-size: var(--font-size-xs) !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

.legal-info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  color: var(--green-600);
  background: var(--green-50);
}

.legal-info-card--nopii {
  border-color: var(--green-200);
  background: var(--green-50);
}

.legal-info-card-icon--shield {
  background: var(--green-100);
  color: var(--green-600);
}

/* Legal list */
.legal-list {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  list-style: none;
}

.legal-list li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--font-size-base);
  color: var(--slate-600);
  line-height: 1.8;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
}

.legal-list li strong {
  color: var(--navy-800);
}

/* Code inline */
.legal-body code {
  background: var(--slate-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: var(--font-size-sm);
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--navy-700);
}

/* Legal link */
.legal-link {
  color: var(--green-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.legal-link:hover {
  color: var(--green-500);
}

/* Warning section (Terms critical disclaimer) */
.legal-section--warning {
  background: var(--red-50);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-left: calc(var(--space-10) * -1);
  margin-right: calc(var(--space-10) * -1);
  border-bottom: none;
}

.legal-warning-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--red-600);
  color: var(--white);
  font-size: var(--font-size-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.legal-warning-badge svg {
  width: 14px;
  height: 14px;
}

.legal-callout {
  background: var(--white);
  border-left: 4px solid var(--red-600);
  padding: var(--space-4) var(--space-6);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: var(--space-4);
}

.legal-callout p {
  margin-bottom: 0 !important;
  font-size: var(--font-size-sm) !important;
  color: var(--slate-700) !important;
}

/* Legal page responsive */
@media (max-width: 900px) {
  .legal-info-grid {
    grid-template-columns: 1fr;
  }

  .legal-title {
    font-size: var(--font-size-3xl);
  }
}

@media (max-width: 640px) {
  .legal-body {
    padding: var(--space-6) var(--space-5);
  }

  .legal-section--warning {
    margin-left: calc(var(--space-5) * -1);
    margin-right: calc(var(--space-5) * -1);
    padding: var(--space-5);
  }

  .legal-title {
    font-size: var(--font-size-2xl);
  }
}
