/**
 * Digital India Yug — Legal & Compliance Pages Stylesheet
 * Applied across Privacy Policy, Terms & Conditions, and Refund Policy
 */

/* ==========================================================================
   1. HERO BANNER
   ========================================================================== */
.legal-hero {
  position: relative;
  background-color: #0a284b;
  background-image: url('../images/banners/portal-hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 4rem 0 3.5rem;
  text-align: center;
  overflow: hidden;
}

.legal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 40, 75, 0.88) 0%, rgba(15, 61, 110, 0.82) 50%, rgba(10, 40, 75, 0.90) 100%);
  pointer-events: none;
  z-index: 1;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF9933 0%, #FFFFFF 50%, #138808 100%);
  z-index: 3;
}

.legal-hero .container {
  position: relative;
  z-index: 2;
}

.legal-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.legal-hero__title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.legal-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92) !important;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.legal-hero__meta {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}


/* ==========================================================================
   2. CONTENT CONTAINER & CARDS
   ========================================================================== */
.legal-content-section {
  background: var(--bg-page);
  padding: 3.5rem 0 5rem;
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(10, 40, 75, 0.05);
  position: relative;
  overflow: hidden;
}

.legal-card__stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF9933 0%, #FF9933 33%, #ffffff 33%, #ffffff 66%, #138808 66%, #138808 100%);
}

.legal-intro {
  font-size: 1.1rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.legal-section {
  margin-bottom: 2.75rem;
}

.legal-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0a284b;
  margin-bottom: 1rem;
}

.legal-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #0a284b;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 8px;
}

.legal-subheading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 1.5rem 0 0.75rem;
}

.legal-text {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-list {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.5rem;
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.8;
}

.legal-list li {
  margin-bottom: 0.5rem;
}

.legal-callout {
  background: #f8fafc;
  border-left: 4px solid #f59e0b;
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.7;
}

.legal-callout--alert {
  background: #fef2f2;
  border-left-color: #ef4444;
  color: #991b1b;
}

.legal-callout--success {
  background: #f0fdf4;
  border-left-color: #22c55e;
  color: #166534;
}

.legal-contact-card {
  background: #0a284b;
  color: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: var(--radius-md);
  margin-top: 3rem;
  text-align: center;
}

.legal-contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.legal-contact-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.legal-contact-card a {
  color: #fbbf24;
  font-weight: 700;
  text-decoration: underline;
}


/* ==========================================================================
   3. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .legal-card {
    padding: 2.25rem 1.5rem;
  }
  .legal-hero__title {
    font-size: 1.85rem;
  }
  .legal-section-title {
    font-size: 1.25rem;
  }
  .legal-text, .legal-list {
    font-size: 0.95rem;
  }
}
