/* ==========================================================================
   GHUFRAN GEN — Legal & Policy Document Stylesheet (Production Edition)
   ========================================================================== */

:root {
  --bg-primary: #040906;
  --bg-secondary: #07120c;
  --bg-card: rgba(10, 22, 16, 0.88);
  --bg-card-alt: rgba(14, 30, 21, 0.95);
  
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-900: #064e3b;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --cyan-400: #38bdf8;
  --rose-400: #f43f5e;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --border-emerald: rgba(16, 185, 129, 0.24);
  --border-bright: rgba(52, 211, 153, 0.55);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #0d2a1c 0%, #040906 65%);
  display: flex;
  flex-direction: column;
}

.bg-glow-sphere {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: var(--emerald-500);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-2 {
  width: 450px;
  height: 450px;
  background: var(--gold-400);
  top: 45%;
  right: -100px;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 9, 6, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-emerald);
  padding: 16px 0;
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon-shield {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.25), rgba(16, 185, 129, 0.05));
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.2);
}

.brand-text-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
  color: var(--emerald-400);
}

.btn-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid var(--border-bright);
  color: var(--emerald-400);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-nav-back:hover {
  background: var(--emerald-500);
  color: #040906;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.4);
  transform: translateY(-1px);
}

/* ==========================================
   POLICY HERO BANNER
   ========================================== */
.policy-hero {
  padding: 56px 0 36px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.policy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 9999px;
  color: var(--emerald-400);
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.policy-title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.policy-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 16px;
}

.policy-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.policy-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================
   MAIN POLICY CARD
   ========================================== */
.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-emerald);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 60px;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

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

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

.policy-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.policy-section-num {
  font-family: var(--font-mono);
  color: var(--emerald-400);
  font-size: 16px;
}

.policy-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.policy-card p:last-child {
  margin-bottom: 0;
}

.policy-card ul, .policy-card ol {
  margin: 12px 0 16px 20px;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.policy-card li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.policy-card strong {
  color: #ffffff;
  font-weight: 700;
}

.policy-card a {
  color: var(--emerald-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.policy-card a:hover {
  color: #6ee7b7;
}

/* Callout Alert Boxes */
.policy-callout {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--emerald-400);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
}

.policy-callout-gold {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid var(--gold-400);
}

.policy-callout-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.policy-callout p {
  font-size: 14px !important;
  color: var(--text-secondary);
  margin-bottom: 0 !important;
}

/* Pricing / Plan Highlights Box */
.policy-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.policy-plan-box {
  background: rgba(14, 30, 21, 0.7);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.policy-plan-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.policy-plan-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--emerald-400);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.policy-plan-desc {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Contact Info Highlight Box */
.policy-contact-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(10, 22, 16, 0.9));
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 24px;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald-500);
  color: #040906 !important;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none !important;
  font-size: 13.5px;
  width: fit-content;
  margin-top: 6px;
  transition: all 0.2s ease;
}

.contact-email-btn:hover {
  background: var(--emerald-400);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.4);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-emerald);
  background: rgba(4, 9, 6, 0.95);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-brand-title {
  color: #ffffff;
  font-weight: 700;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-link:hover, .footer-link.active {
  color: var(--emerald-400);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .policy-card {
    padding: 24px 20px;
  }
  
  .policy-hero {
    padding: 40px 0 24px;
  }
  
  .policy-title {
    font-size: 28px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .footer-nav-links {
    justify-content: center;
    gap: 14px;
  }
}
