/* ==========================================================================
   Attayebat (الطيبات) — Premium Landing Page & Legal Hub Stylesheet
   Design Tokens: Organic Forest Green, Gold/Lime Accent, Warm Cream, Modern Glassmorphism
   ========================================================================== */

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

:root {
  --primary: #1D6B2E;
  --primary-dark: #063F34;
  --primary-light: #2D8B42;
  --primary-subtle: #E8F5E2;
  --accent: #D4E157;
  --accent-soft: #EFF2C9;
  --accent-gold: #F59E0B;
  --bg-page: #F7F6F1;
  --bg-surface: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-glass-dark: rgba(6, 63, 52, 0.85);
  
  --text-main: #111827;
  --text-muted: #4B5563;
  --text-subtle: #6B7280;
  --text-inverse: #FFFFFF;
  --text-primary: #1D6B2E;
  
  --border-light: #E5E7EB;
  --border-subtle: #D4E8CC;
  --border-glass: rgba(255, 255, 255, 0.6);
  
  --status-allowed: #166534;
  --status-allowed-bg: #E8F5E2;
  --status-caution: #B87A00;
  --status-caution-bg: #FFF8E6;
  --status-forbidden: #B91C1C;
  --status-forbidden-bg: #FDECEA;

  --shadow-sm: 0 2px 8px rgba(6, 63, 52, 0.04);
  --shadow-md: 0 8px 24px rgba(6, 63, 52, 0.08);
  --shadow-lg: 0 16px 40px rgba(6, 63, 52, 0.12);
  --shadow-glow: 0 12px 36px rgba(29, 107, 46, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  
  --font-en: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-ar: 'Cairo', 'Noto Sans Arabic', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body {
  font-family: var(--font-ar);
}

/* Background Ambient Orbs */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  will-change: transform;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #D4E8CC 0%, rgba(212, 232, 204, 0) 70%);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #EFF2C9 0%, rgba(239, 242, 201, 0) 70%);
  bottom: 10%;
  left: -150px;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #E8F5E2 0%, rgba(232, 245, 226, 0) 70%);
  top: 45%;
  right: 15%;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 900px;
}

/* Navbar */
.navbar-wrapper {
  position: sticky;
  top: 16px;
  z-index: 1000;
  padding: 0 16px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  max-width: 1200px;
  margin: 0 auto;
  transition: var(--transition);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary-dark);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(6, 63, 52, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-pill);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Toggle Button */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle-btn:hover {
  background: #D4E8CC;
  transform: translateY(-1px);
}

.lang-flag {
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-inverse);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(29, 107, 46, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--primary-dark);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent-soft);
  color: var(--primary-dark);
  border: 1px solid rgba(212, 225, 87, 0.6);
  font-weight: 800;
}

.btn-accent:hover {
  background: #E5E9B5;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary-dark);
}

.mobile-menu-btn svg {
  width: 26px;
  height: 26px;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 80px;
  left: 16px;
  right: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.mobile-nav-links a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(29, 107, 46, 0.2);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, #063F34 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #1A1A1A;
}

.app-store-badge svg {
  width: 28px;
  height: 28px;
  fill: #FFFFFF;
}

.app-store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

[dir="rtl"] .app-store-text {
  text-align: right;
}

.app-store-caption {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #CCCCCC;
}

.app-store-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
}

.trust-stars {
  display: flex;
  color: #F59E0B;
  font-size: 1rem;
}

.trust-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Phone Mockup Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup-wrapper {
  position: relative;
  width: 320px;
}

.phone-card {
  background: var(--bg-surface);
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 25px 60px -15px rgba(6, 63, 52, 0.25), 0 0 0 1px rgba(212, 232, 204, 0.6);
  position: relative;
  overflow: hidden;
}

.phone-inner {
  border-radius: 30px;
  overflow: hidden;
  background: #F7F6F1;
  position: relative;
}

.phone-screen-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
}

/* Floating Feature Chips */
.floating-chip {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  animation: float 4s ease-in-out infinite alternate;
}

.floating-chip-1 {
  top: 15%;
  left: -35px;
}

.floating-chip-2 {
  bottom: 20%;
  right: -35px;
  animation-delay: 2s;
}

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

.chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chip-content {
  display: flex;
  flex-direction: column;
}

.chip-label {
  font-size: 0.72rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.chip-val {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* Section Common */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-card-highlight {
  background: linear-gradient(135deg, #063F34 0%, #1D6B2E 100%);
  color: #FFFFFF;
}

.feature-card-highlight .feature-icon-box {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent);
}

.feature-card-highlight .feature-title {
  color: #FFFFFF;
}

.feature-card-highlight .feature-text {
  color: rgba(255, 255, 255, 0.85);
}

/* Interactive Food Scanner Demo */
.demo-section {
  background: linear-gradient(180deg, rgba(232, 245, 226, 0.3) 0%, rgba(247, 246, 241, 0.8) 100%);
  border-radius: var(--radius-xl);
  padding: 50px 32px;
  border: 1px solid var(--border-subtle);
  margin: 40px 0;
}

.demo-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.demo-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.demo-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.demo-foods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.food-pill-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.food-pill-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.food-pill-emoji {
  font-size: 1.6rem;
}

.food-pill-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.food-pill-category {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.badge-status {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-allowed {
  background: var(--status-allowed-bg);
  color: var(--status-allowed);
  border: 1px solid rgba(22, 101, 52, 0.2);
}

.badge-caution {
  background: var(--status-caution-bg);
  color: var(--status-caution);
  border: 1px solid rgba(184, 122, 0, 0.2);
}

.badge-forbidden {
  background: var(--status-forbidden-bg);
  color: var(--status-forbidden);
  border: 1px solid rgba(185, 28, 28, 0.2);
}

/* 11 Rules Section */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.rule-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: var(--transition);
}

.rule-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.rule-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-subtle);
  line-height: 1;
}

[dir="rtl"] .rule-num {
  right: auto;
  left: 20px;
}

.rule-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
  padding-right: 36px;
}

[dir="rtl"] .rule-title {
  padding-right: 0;
  padding-left: 36px;
}

.rule-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F9F2 100%);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-dark);
  color: var(--accent);
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0;
}

.pricing-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.pricing-period {
  font-size: 0.95rem;
  color: var(--text-subtle);
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 32px;
  flex-grow: 1;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.pricing-features-list li svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  text-align: left;
}

[dir="rtl"] .faq-question {
  text-align: right;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* CTA Banner Section */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 60px 0 40px;
}

.cta-banner-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-banner-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 32px;
}

.cta-banner .app-store-badge {
  background: #FFFFFF;
  color: #000000;
}

.cta-banner .app-store-badge svg {
  fill: #000000;
}

.cta-banner .app-store-caption {
  color: #555555;
}

/* Legal & Document Layouts (Terms, Privacy, Support) */
.legal-wrapper {
  padding: 40px 0 80px;
}

.legal-header {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.legal-header-info h1 {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.legal-header-meta {
  font-size: 0.9rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.legal-content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
}

.legal-section {
  margin-bottom: 36px;
}

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

.legal-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.legal-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 18px 0 10px;
}

.legal-section p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 14px;
}

.legal-section ul, 
.legal-section ol {
  margin: 12px 0 16px 24px;
  color: var(--text-muted);
}

[dir="rtl"] .legal-section ul, 
[dir="rtl"] .legal-section ol {
  margin: 12px 24px 16px 0;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-callout {
  background: var(--primary-subtle);
  border-left: 4px solid var(--primary);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  color: var(--primary-dark);
}

[dir="rtl"] .legal-callout {
  border-left: none;
  border-right: 4px solid var(--primary);
}

.legal-callout strong {
  display: block;
  margin-bottom: 4px;
}

.legal-nav-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.legal-nav-btn {
  padding: 8px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.legal-nav-btn:hover,
.legal-nav-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* Contact / Support Card */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.support-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  background: #FAFAFA;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(29, 107, 46, 0.12);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 0.95rem;
  font-weight: 700;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

[dir="rtl"] .toast-msg {
  right: auto;
  left: 24px;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: 60px 0 30px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .brand-title {
  color: #FFFFFF;
}

.footer-brand .brand-subtitle {
  color: var(--accent);
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

[dir="rtl"] .footer-links a:hover {
  transform: translateX(-4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal-links a:hover {
  color: #FFFFFF;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .mobile-drawer {
    display: block;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .legal-content-card {
    padding: 24px;
  }
  .legal-header {
    padding: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
