/* ==========================================================================
   PassExam — Legal Pages Stylesheet (Privacy Policy & Terms)
   Matches site theme: deep navy base, gold/teal/blue/purple accents
   ========================================================================== */

/* --- Body Reset for Legal Pages --- */

body {
  font-size: 16px;
  background-color: #0F1D30;
  color: #2A3040;
}

/* --- Page Hero Banner --- */

.page-hero {
  position: relative;
  padding: 80px 0 80px;
  background-color: #1E3A5F;
  overflow: hidden;
  text-align: center;
}

.page-hero-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 30%, rgba(0, 201, 167, 0.10), transparent),
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(74, 144, 217, 0.10), transparent),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(123, 104, 238, 0.08), transparent);
  pointer-events: none;
}

.page-hero h1 {
  position: relative;
  font-size: 48px;
  font-weight: 800;
  color: #FAFBFF;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.page-hero h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, #00C9A7, #4A90D9);
  border-radius: 2px;
}

.effective-date {
  position: relative;
  font-size: 15px;
  color: #A9BBD6;
  font-weight: 500;
  margin-top: 8px;
}

/* --- Policy Content Container --- */

.policy-content {
  padding: 60px 0 100px;
  background-color: #0F1D30;
}

.policy-content .container {
  max-width: 860px;
}

.policy-content .container > * {
  background-color: #16293F;
  border: 1px solid rgba(169, 187, 214, 0.10);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  padding: 56px 60px;
}

/* --- Section Headings --- */

.policy-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: #FAFBFF;
  margin-top: 44px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  position: relative;
  line-height: 1.3;
}

.policy-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #00C9A7, #4A90D9);
}

.policy-content h2:first-of-type {
  margin-top: 0;
}

/* --- Paragraph Typography --- */

.policy-content p {
  font-size: 16px;
  line-height: 1.85;
  color: #A9BBD6;
  margin-bottom: 18px;
}

.policy-content p strong {
  color: #E6ECF5;
  font-weight: 600;
}

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

/* --- Inline Links --- */

.policy-content a {
  color: #00C9A7;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.policy-content a:hover {
  color: #F5A623;
}

/* --- Legal Pages Footer --- */

.legal-footer {
  border-top: 1px solid rgba(169, 187, 214, 0.08);
}

/* ==========================================================================
   RESPONSIVE — Tablet (1024px)
   ========================================================================== */

@media (max-width: 1024px) {

  .page-hero {
    padding: 64px 0 64px;
  }

  .page-hero h1 {
    font-size: 40px;
  }

  .policy-content .container > * {
    padding: 44px 40px;
  }

  .policy-content h2 {
    font-size: 24px;
  }

}

/* ==========================================================================
   RESPONSIVE — Small Tablet (768px)
   ========================================================================== */

@media (max-width: 768px) {

  .page-hero {
    padding: 52px 0 52px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .page-hero h1::after {
    width: 60px;
    height: 3px;
  }

  .effective-date {
    font-size: 14px;
  }

  .policy-content {
    padding: 40px 0 64px;
  }

  .policy-content .container > * {
    padding: 36px 28px;
    border-radius: 12px;
  }

  .policy-content h2 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .policy-content h2::after {
    width: 48px;
    height: 3px;
  }

  .policy-content p {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 14px;
  }

}

/* ==========================================================================
   RESPONSIVE — Mobile (480px)
   ========================================================================== */

@media (max-width: 480px) {

  .page-hero {
    padding: 40px 0 40px;
  }

  .page-hero h1 {
    font-size: 28px;
    letter-spacing: -0.3px;
  }

  .page-hero h1::after {
    width: 50px;
    height: 3px;
  }

  .effective-date {
    font-size: 13px;
  }

  .policy-content {
    padding: 28px 0 48px;
  }

  .policy-content .container {
    padding: 0 16px;
  }

  .policy-content .container > * {
    padding: 28px 20px;
  }

  .policy-content h2 {
    font-size: 20px;
    margin-top: 28px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .policy-content h2::after {
    width: 40px;
    height: 2px;
  }

  .policy-content p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
  }

}
