/* ============================================
   LEGAL PAGES (TERMS & PRIVACY)
   Purpose: Styles for terms.ejs and privacy.ejs
   Mobile-first approach
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */

.legal-hero {
  background: linear-gradient(135deg, #2D3748 0%, #4A5568 100%);
  color: var(--text-on-primary);
  padding: 60px 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .legal-hero {
    padding: 80px 40px;
  }
}

.legal-hero .hero-title {
  color: var(--text-on-primary);
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .legal-hero .hero-title {
    margin-bottom: 16px;
  }
}

.legal-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-small);
  margin: 0;
}

@media (min-width: 768px) {
  .legal-hero .hero-subtitle {
    font-size: var(--font-size-body);
  }
}

/* ============================================
   CONTENT SECTION
   ============================================ */

.legal-content {
  padding: 60px 20px;
  background-color: var(--bg-white);
}

@media (min-width: 768px) {
  .legal-content {
    padding: 80px 40px;
  }
}

.legal-content .container {
  max-width: 800px;
}

@media (min-width: 768px) {
  .legal-content .container {
    max-width: 800px;
  }
}

/* ============================================
   INTRO
   ============================================ */

.legal-intro {
  margin-bottom: 40px;
  padding: 20px;
  background-color: var(--card-bg);
  border-left: 4px solid var(--primary-blue);
  border-radius: var(--radius-medium);
}

@media (min-width: 768px) {
  .legal-intro {
    margin-bottom: 60px;
    padding: 24px;
  }
}

.legal-intro p {
  margin: 0;
  color: var(--text-medium);
  font-size: var(--font-size-body);
}

@media (min-width: 768px) {
  .legal-intro p {
    font-size: 17px;
  }
}

/* ============================================
   SECTIONS
   ============================================ */

.legal-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .legal-sections {
    gap: 48px;
  }
}

.legal-section {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--bg-light);
}

@media (min-width: 768px) {
  .legal-section {
    padding-bottom: 40px;
  }
}

.legal-section:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .legal-section:last-child {
    border-bottom: none;
  }
}

.legal-section-title {
  font-size: var(--font-size-h3);
  color: var(--text-dark);
  margin-bottom: 16px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .legal-section-title {
    font-size: var(--font-size-h2);
    margin-bottom: 20px;
  }
}

.legal-section-content {
  color: var(--text-medium);
  font-size: var(--font-size-small);
  line-height: 1.8;
  margin: 0;
}

@media (min-width: 768px) {
  .legal-section-content {
    font-size: var(--font-size-body);
  }
}

/* ============================================
   FOOTER
   ============================================ */

.legal-footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 2px solid var(--bg-light);
  text-align: center;
}

@media (min-width: 768px) {
  .legal-footer {
    margin-top: 80px;
    padding-top: 40px;
  }
}

.legal-footer p {
  color: var(--text-light);
  font-size: var(--font-size-small);
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .legal-footer p {
    font-size: var(--font-size-body);
  }
}

.legal-footer a {
  color: var(--primary-blue);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .legal-footer a {
    color: var(--primary-blue);
  }
}