/* ============================================
   Legal Pages – Privacy Policy & Terms of Use
   Common styles – matches site color theme
   #121229 (dark), #7C3AED (purple), pastels
   ============================================ */

.legal-page {
  padding-bottom: 4rem;
  background: linear-gradient(180deg, rgba(224, 217, 247, 0.2) 0%, transparent 12rem);
}

/* Hero – aligned with about-us / contact-us hero */
.legal-hero {
  position: relative;
  padding: 4rem 0 3rem;
  text-align: center;
}

.legal-hero .custom-container {
  max-width: 74.375rem;
  margin: 0 auto;
  padding: 0 1.5625rem;
}

.legal-hero .legal-hero-inner {
  max-width: 42rem;
  margin: 0 auto;
}

/* Tagline – site purple #7C3AED + underline bar like hero-section-tagline */
.legal-hero .legal-tagline {
  display: inline-block;
  font-size: 1.0375rem;
  font-weight: 700;
  line-height: 1.25rem;
  letter-spacing: 0.0675rem;
  text-transform: uppercase;
  color: #7C3AED;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 5.3rem;
}

.legal-hero .legal-tagline::before {
  content: '';
  position: absolute;
  bottom: 0.54rem;
  left: 0;
  width: 5rem;
  height: 0.1563rem;
  background-color: #7C3AED;
}

.legal-hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: #121229;
  font-weight: 600;
  margin: 0 0 1rem;
  text-transform: capitalize;
}

.legal-hero .legal-last-updated {
  font-size: 0.9375rem;
  color: #555;
  margin: 0;
  font-weight: 500;
}

/* Content – card style with light lavender tint (theme pastel) */
.legal-content {
  max-width: 74.375rem;
  margin: 0 auto;
  padding: 2.5rem 1.5625rem;
  background: rgba(255, 255, 255, 0.9);
}

.legal-content .legal-section {
  margin-bottom: 2.25rem;
}

.legal-content .legal-section:last-of-type {
  margin-bottom: 0;
}

/* Section headings – dark + subtle purple left accent */
.legal-content .legal-section h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #121229;
  margin: 0 0 0.75rem;
  padding-left: 1rem;
  border-left: 3px solid #7C3AED;
}

.legal-content .legal-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: #444;
  margin: 0 0 1rem;
}

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

.legal-content .legal-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
}

.legal-content .legal-section ul li {
  font-size: 1rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.legal-content .legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: #7C3AED;
}

.legal-content .legal-section a {
  color: #121229;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.legal-content .legal-section a:hover {
  color: #7C3AED;
}

/* Back link – pill CTA like site buttons */
.legal-back {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.legal-back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background-color: #121229;
  padding: 0.875rem 1.75rem;
  border-radius: 3rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
  border: none;
}

.legal-back a:hover {
  background-color: #1e1e3a;
  color: #ffffff;
  transform: translateY(-2px);
}

.legal-back a::before {
  content: "←";
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-page {
    background: linear-gradient(180deg, rgba(224, 217, 247, 0.15) 0%, transparent 8rem);
  }

  .legal-hero {
    padding: 3rem 0 2rem;
  }

  .legal-hero .legal-tagline {
    padding-left: 4rem;
    font-size: 0.875rem;
  }

  .legal-hero .legal-tagline::before {
    width: 3.5rem;
  }

  .legal-content {
    padding: 1.75rem 1.25rem;
    margin: 0 1rem;
  }

  .legal-content .legal-section {
    margin-bottom: 2rem;
  }

  .legal-content .legal-section h2 {
    font-size: 1.125rem;
    padding-left: 0.75rem;
    border-left-width: 2px;
  }
}