/* ==========================================================================
   EduHome Connect - Legal & Policy Pages Custom Stylesheet
   (Terms of Service, Privacy Policy, Refund Policy)
   ========================================================================== */

:root {
  --legal-navy: #062654;
  --legal-navy-dark: #021633;
  --legal-blue: #0059D9;
  --legal-blue-light: #004AB5;
  --legal-blue-soft: #ebf3ff;
  --legal-gold: #FCC902;
  --legal-gold-hover: #e5b600;
  --legal-text: #334155;
  --legal-text-dark: #0f172a;
  --legal-muted: #64748b;
  --legal-border: #e2e8f0;
  --legal-bg-alt: #f8fafc;
  --legal-radius: 16px;
  --legal-radius-sm: 10px;
  --legal-shadow-sm: 0 4px 20px rgba(6, 38, 84, 0.05);
  --legal-shadow-md: 0 10px 30px rgba(6, 38, 84, 0.08);
  --legal-shadow-hover: 0 16px 36px rgba(6, 38, 84, 0.12);
  --legal-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets for legal pages */
.eduhome-legal-page {
  background-color: #f8fafc;
  color: var(--legal-text);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
}

/* ==========================================================================
   1. Hero Banner & Breadcrumbs
   ========================================================================== */
.legal-hero-section {
  background: linear-gradient(135deg, #062654 0%, #003fa6 60%, #0059D9 100%);
  color: #ffffff;
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
  text-align: center;
  width: 100%;
}

.legal-hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 201, 2, 0.15) 0%, rgba(252, 201, 2, 0) 70%);
  pointer-events: none;
}

.legal-hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 89, 217, 0.25) 0%, rgba(0, 89, 217, 0) 70%);
  pointer-events: none;
}

.legal-container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.legal-hero-breadcrumbs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.legal-hero-breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--legal-transition);
}

.legal-hero-breadcrumbs a:hover {
  color: var(--legal-gold);
}

.legal-hero-breadcrumbs span {
  color: var(--legal-gold);
  font-weight: 600;
}

.legal-hero-title {
  font-family: 'Raleway', sans-serif;
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
  color: #ffffff;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.legal-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  position: relative;
  z-index: 2;
  font-weight: 400;
}

/* ==========================================================================
   2. Content Section
   ========================================================================== */
.legal-main-content {
  padding: 50px 0 80px;
  background-color: #f8fafc;
}

/* Intro Callout Card */
.legal-intro-card {
  background: #ffffff;
  border-left: 5px solid var(--legal-blue);
  border-radius: var(--legal-radius);
  padding: 28px 32px;
  margin-bottom: 35px;
  box-shadow: var(--legal-shadow-sm);
  font-size: 1.05rem;
  color: var(--legal-text-dark);
  line-height: 1.8;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.legal-intro-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--legal-blue-soft);
  color: var(--legal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-intro-text {
  margin: 0;
  flex: 1;
}

.legal-intro-text a {
  color: var(--legal-blue);
  font-weight: 600;
  text-decoration: none;
  transition: var(--legal-transition);
}

.legal-intro-text a:hover {
  color: var(--legal-navy);
  text-decoration: underline;
}

/* Section Cards */
.legal-card {
  background: #ffffff;
  border: 1px solid var(--legal-border);
  border-radius: var(--legal-radius);
  padding: 32px 36px;
  margin-bottom: 24px;
  box-shadow: var(--legal-shadow-sm);
  transition: var(--legal-transition);
  position: relative;
}

.legal-card:hover {
  box-shadow: var(--legal-shadow-md);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.legal-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.legal-card-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--legal-blue-soft);
  color: var(--legal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.legal-card-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--legal-navy);
  margin: 0;
  letter-spacing: -0.01em;
}

.legal-card-body {
  font-size: 1rem;
  color: var(--legal-text);
  line-height: 1.8;
}

.legal-card-body p {
  margin: 0 0 12px 0;
}

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

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

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

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

.legal-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--legal-blue);
  font-size: 0.85rem;
  background: var(--legal-blue-soft);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Help & Support Card */
.legal-help-card {
  background: linear-gradient(135deg, #062654 0%, #003fa6 100%);
  border-radius: var(--legal-radius);
  padding: 32px 36px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  box-shadow: 0 10px 25px rgba(6, 38, 84, 0.15);
}

.legal-help-info h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.legal-help-info p {
  margin: 0;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.85);
}

.legal-help-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.legal-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--legal-gold);
  color: #062654;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: var(--legal-transition);
  box-shadow: 0 4px 12px rgba(252, 201, 2, 0.3);
}

.legal-help-btn:hover {
  background: #ffffff;
  color: #062654;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   3. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
  .legal-hero-section {
    padding: 45px 0 55px;
  }

  .legal-hero-title {
    font-size: 2.15rem;
  }

  .legal-main-content {
    padding: 35px 0 60px;
  }

  .legal-intro-card {
    padding: 22px 20px;
    flex-direction: column;
    gap: 14px;
  }

  .legal-card {
    padding: 24px 20px;
  }

  .legal-card-title {
    font-size: 1.2rem;
  }

  .legal-help-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
    gap: 20px;
  }

  .legal-help-actions {
    flex-direction: column;
    width: 100%;
  }

  .legal-help-btn {
    width: 100%;
    justify-content: center;
  }
}
