/* ==========================================================================
   FOUZ DIGITAL - Legal & Policy Styles (legal.css)
   Clean, responsive, glassmorphic layout for Privacy Policy and Terms
   ========================================================================== */

/* 1. Breadcrumbs & Header Details */
.legal-breadcrumb {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  flex-wrap: wrap;
}

.legal-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
}

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

.legal-breadcrumb .separator {
  opacity: 0.5;
}

.legal-breadcrumb .current {
  color: #FFFFFF;
  font-weight: 600;
}

/* Override inner header with a premium deep blue brand gradient */
.legal-intro-section {
  padding: 160px 0 80px 0;
  background: linear-gradient(135deg, #070B14 0%, #0B1E40 50%, #0B3D91 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.legal-intro-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(11, 61, 145, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: bgPulse 15s infinite alternate ease-in-out;
}

@keyframes bgPulse {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 5%) scale(1.1); }
}

/* 2. Premium Layout - Sidebar & Content */
.legal-container {
  padding-top: 60px;
  padding-bottom: 100px;
  background-color: var(--section-bg);
}

.legal-sidebar-wrapper {
  position: sticky;
  top: 120px;
  z-index: 10;
}

.legal-sidebar {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--border-radius-md);
  padding: 25px;
  box-shadow: var(--shadow-premium);
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

.legal-sidebar::-webkit-scrollbar {
  width: 4px;
}
.legal-sidebar::-webkit-scrollbar-thumb {
  background: rgba(11, 61, 145, 0.3);
  border-radius: 2px;
}

.legal-sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(11, 61, 145, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-nav-item {
  margin-bottom: 8px;
}

.legal-nav-link {
  display: block;
  padding: 10px 15px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  border-left: 3px solid transparent;
  background: transparent;
  transition: var(--transition-smooth);
}

.legal-nav-link:hover {
  color: #0B3D91;
  background: rgba(11, 61, 145, 0.05);
  border-left-color: rgba(11, 61, 145, 0.5);
  padding-left: 18px;
}

.legal-nav-link.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #0B3D91 0%, #07285e 100%);
  border-left-color: #0B3D91;
  box-shadow: 0 4px 15px rgba(11, 61, 145, 0.2);
}

/* 3. Policy Content Cards */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.legal-section-card {
  scroll-margin-top: 120px; /* Offset for sticky header & smooth scrolls */
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

/* Soft brand border glow on active/hover card */
.legal-section-card:hover {
  border-color: #0B3D91;
  box-shadow: 0 15px 30px rgba(11, 61, 145, 0.06);
  transform: translateY(-2px);
}

.legal-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.legal-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(11, 61, 145, 0.08);
  color: #0B3D91;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legal-section-card:hover .legal-card-icon {
  background: #0B3D91;
  color: #FFFFFF;
  transition: var(--transition-smooth);
}

.legal-section-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.legal-section-body p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 20px;
}

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

.legal-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.legal-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.legal-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: #0B3D91;
  font-size: 0.85rem;
}

/* Glassmorphism Contact card details */
.legal-contact-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(11, 61, 145, 0.03) 100%);
  border: 1px solid rgba(11, 61, 145, 0.15);
  border-radius: 12px;
  padding: 30px;
  margin-top: 25px;
}

.legal-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.legal-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(11, 61, 145, 0.08);
  color: #0B3D91;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.legal-contact-info-text strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-contact-info-text span, 
.legal-contact-info-text a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  transition: var(--transition-smooth);
}

.legal-contact-info-text a:hover {
  color: #0B3D91;
}

/* 4. Responsive media queries */
@media (max-width: 991.98px) {
  .legal-sidebar-wrapper {
    position: static;
    margin-bottom: 40px;
  }
  .legal-sidebar {
    max-height: none;
  }
  .legal-section-card {
    padding: 30px;
  }
  .legal-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .legal-section-card {
    padding: 20px;
  }
  .legal-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .legal-section-card h2 {
    font-size: 1.35rem;
  }
}
