/* AVS Human Capital - Modern Landing Page Styles */
@import url('../vendor/fonts/fonts.css');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-primary-dark: #090d16;
  --color-secondary: #059669; /* Zimbabwe Emerald Green */
  --color-secondary-light: #10b981;
  --color-secondary-subtle: #ecfdf5;
  --color-accent: #d97706;    /* Zimbabwe Gold (ZiG) */
  --color-accent-light: #f59e0b;
  --color-accent-subtle: #fef3c7;
  --color-surface: #ffffff;
  --color-surface-subtle: #f8fafc;
  --color-surface-dark: #1e293b;
  --color-border: #e2e8f0;
  --color-border-dark: rgba(255, 255, 255, 0.12);
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-text-white: #ffffff;
  --color-danger: #dc2626;
  --nav-height: 76px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.1), 0 4px 8px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.18), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.landing-page {
  font-family: var(--font-main);
  background-color: var(--color-surface);
  color: var(--color-text-main);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-dark);
  z-index: 1050;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.landing-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.landing-nav .brand-logo {
  height: 38px;
  width: auto;
  border-radius: 8px;
  background: #ffffff;
  padding: 3px 6px;
}

.landing-nav .nav-link {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s ease;
  position: relative;
}

.landing-nav .nav-link:hover,
.landing-nav .nav-link:focus {
  color: #ffffff;
}

.landing-nav .nav-link.active {
  color: var(--color-secondary-light);
}

.btn-nav-portal {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-nav-portal:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-nav-cta {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #047857 100%);
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  transition: all 0.2s ease;
}

.btn-nav-cta:hover {
  background: linear-gradient(135deg, #059669 0%, #065f46 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.45);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 5.5rem;
  background: 
    radial-gradient(circle at 85% 15%, rgba(5, 150, 105, 0.18), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(217, 119, 6, 0.14), transparent 40%),
    linear-gradient(180deg, #090d16 0%, #0f172a 60%, #1e293b 100%);
  color: #ffffff;
  overflow: hidden;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary-light);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #34d399 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: #94a3b8;
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #047857 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  border: none;
  box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.5);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #065f46 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(5, 150, 105, 0.6);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Hero Stats Bar */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-item .stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.hero-stat-item .stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Hero Mockup Preview Card */
.hero-mockup-window {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}

.mockup-window-header {
  background: #0f172a;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-window-header .window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-dot-red { background-color: #ef4444; }
.window-dot-yellow { background-color: #f59e0b; }
.window-dot-green { background-color: #10b981; }

.mockup-window-body {
  padding: 1.5rem;
  background: #0f172a;
}

.mockup-kpi-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
}

.mockup-kpi-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.mockup-kpi-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.25rem;
}

.mockup-badge-zig {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(217, 119, 6, 0.3);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.mockup-badge-usd {
  background: rgba(5, 150, 105, 0.2);
  color: #34d399;
  border: 1px solid rgba(5, 150, 105, 0.3);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section-padding {
  padding: 5.5rem 0;
  content-visibility: auto;
  contain-intrinsic-block-size: auto 650px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-pill-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background-color: var(--color-secondary-subtle);
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Compliance Highlight Grid
   ========================================================================== */
.compliance-section {
  background-color: #f8fafc;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.compliance-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.compliance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.compliance-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.icon-badge-green {
  background-color: #ecfdf5;
  color: #059669;
}

.icon-badge-gold {
  background-color: #fef3c7;
  color: #d97706;
}

.icon-badge-blue {
  background-color: #eff6ff;
  color: #2563eb;
}

.icon-badge-slate {
  background-color: #f1f5f9;
  color: #0f172a;
}

.compliance-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.compliance-card-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.compliance-card-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-main);
}

.compliance-card-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.compliance-card-feature-list li i {
  color: var(--color-secondary);
  font-size: 1rem;
}

/* ==========================================================================
   Modules Showcase
   ========================================================================== */
.module-feature-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  height: 100%;
}

.module-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.module-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.module-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.module-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.module-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.module-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background-color: #f1f5f9;
  color: #334155;
  border-radius: 6px;
}

/* ==========================================================================
   Interactive Dual-Currency Calculator Widget
   ========================================================================== */
.calc-section {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
}

.calc-section .section-title {
  color: #ffffff;
}

.calc-section .section-desc {
  color: #94a3b8;
}

.calc-container {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}

.calc-input-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.calc-slider {
  accent-color: var(--color-secondary-light);
  height: 8px;
  border-radius: 4px;
}

.calc-results-card {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.75rem;
}

.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.calc-breakdown-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.calc-breakdown-row.calc-total {
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.text-usd-accent {
  color: #34d399;
  font-weight: 700;
}

.text-zig-accent {
  color: #fbbf24;
  font-weight: 700;
}

/* ==========================================================================
   Pricing & Deployment
   ========================================================================== */
.pricing-section {
  background-color: #f8fafc;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card.featured {
  border: 2px solid var(--color-secondary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-secondary) 0%, #047857 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.4);
}

.pricing-plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.pricing-plan-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.pricing-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--color-text-main);
  margin-bottom: 0.75rem;
}

.pricing-features-list li i {
  color: var(--color-secondary);
  font-size: 1.1rem;
}

/* ==========================================================================
   Modern Accordion FAQ (Native Details per Modern Web Guidance)
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

details.faq-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

details.faq-item[open] {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  background-color: #ffffff;
}

details.faq-item summary {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
  line-height: 1;
}

details.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--color-secondary);
}

.faq-answer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Demo Request Lead Capture
   ========================================================================== */
.demo-section {
  background: linear-gradient(135deg, #090d16 0%, #0f172a 100%);
  color: #ffffff;
}

.demo-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-xl);
}

.demo-form .form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
}

.demo-form .form-control,
.demo-form .form-select {
  background-color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
}

.demo-form .form-control:focus,
.demo-form .form-select:focus {
  background-color: #0f172a;
  border-color: var(--color-secondary-light);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.demo-form .form-control::placeholder {
  color: #64748b;
}

/* ==========================================================================
   Careers Section / Callout
   ========================================================================== */
.careers-banner-card {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-radius: 18px;
  padding: 3rem 2.5rem;
  color: #ffffff;
  box-shadow: 0 15px 30px -5px rgba(5, 150, 105, 0.35);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.landing-footer {
  background-color: #090d16;
  color: #94a3b8;
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-title {
  font-weight: 800;
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-link-group-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.65rem;
}

.footer-links-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: #ffffff;
}

.footer-bottom-row {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Zimbabwe stripe decorative bar */
.zim-flag-stripe {
  height: 4px;
  width: 100%;
  background: linear-gradient(to right, #006400 0%, #006400 25%, #FFD700 25%, #FFD700 50%, #D21034 50%, #D21034 75%, #000000 75%, #000000 100%);
}

/* ==========================================================================
   Legal Document Pages (Terms & Privacy)
   ========================================================================== */
.legal-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-sm);
  color: var(--color-text-main);
  line-height: 1.7;
}

.legal-toc-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  box-shadow: var(--shadow-sm);
}

.legal-toc-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-toc-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: block;
}

.legal-toc-link:hover,
.legal-toc-link:focus {
  background-color: var(--color-secondary-subtle);
  color: var(--color-secondary);
  padding-left: 0.85rem;
}

.legal-section {
  scroll-margin-top: calc(var(--nav-height) + 2rem);
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f1f5f9;
}

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

.legal-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.legal-badge-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: var(--color-secondary-subtle);
  color: var(--color-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.legal-highlight-box {
  background: #f8fafc;
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.legal-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card.featured {
    transform: none;
    margin-top: 1rem;
  }
  .calc-container {
    padding: 1.75rem;
  }
  .demo-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
}
