/* Terms & Conditions — scoped to .terms-page; matches Volnteer purple / pink */

.terms-page .terms-legal {
  --terms-radius: 18px;
  --terms-shadow: 0 16px 48px rgba(76, 29, 149, 0.12);
}

/* Hero — match Our Volunteers #hero-section spacing & overlay (public_site/our_volunteers.html) */
.terms-page #terms-hero-section.terms-legal__hero {
  position: relative;
  overflow: hidden;
  padding: 180px 0 45px 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 0;
}

.terms-page #terms-hero-section.terms-legal__hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.7) 0%,
    rgba(190, 24, 93, 0.7) 100%
  );
  z-index: 1;
}

.terms-page #terms-hero-section.terms-legal__hero .container {
  position: relative;
  z-index: 2;
}

.terms-page #terms-hero-section.terms-legal__hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #fff !important;
}

.terms-page #terms-hero-section .terms-legal__hero-sub {
  font-size: 1.35rem;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
  color: #fff;
}

@media (max-width: 992px) {
  .terms-page #terms-hero-section.terms-legal__hero {
    padding: 140px 0 40px 0;
  }

  .terms-page #terms-hero-section.terms-legal__hero h1 {
    font-size: 2.75rem;
  }

  .terms-page #terms-hero-section .terms-legal__hero-sub {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .terms-page #terms-hero-section.terms-legal__hero {
    padding: 140px 0 50px 0;
    margin-bottom: 0;
  }

  .terms-page #terms-hero-section.terms-legal__hero h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }

  .terms-page #terms-hero-section .terms-legal__hero-sub {
    font-size: 1.1rem;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .terms-page #terms-hero-section.terms-legal__hero {
    padding: 120px 0 45px 0;
  }

  .terms-page #terms-hero-section.terms-legal__hero h1 {
    font-size: 1.85rem;
  }

  .terms-page #terms-hero-section .terms-legal__hero-sub {
    font-size: 1rem;
  }
}

.terms-page .terms-legal__body {
  padding: 2rem 12px 4rem;
  position: relative;
  z-index: 2;
}

.terms-page .terms-legal__card {
  background: #fff;
  border-radius: var(--terms-radius);
  box-shadow: var(--terms-shadow);
  border: 1px solid rgba(107, 33, 168, 0.08);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.25rem);
  max-width: 820px;
  margin: 0 auto;
}

.terms-page .terms-legal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(107, 33, 168, 0.1);
  font-size: 0.9rem;
  color: #64748b;
}

.terms-page .terms-legal__meta time {
  font-weight: 600;
  color: var(--primary-color, #6b21a8);
}

.terms-page .terms-legal__toc {
  background: linear-gradient(
    145deg,
    rgba(107, 33, 168, 0.06),
    rgba(190, 24, 93, 0.06)
  );
  border: 1px solid rgba(107, 33, 168, 0.1);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 2rem;
}

.terms-page .terms-legal__toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-color, #6b21a8);
  margin: 0 0 0.75rem;
}

.terms-page .terms-legal__toc ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.terms-page .terms-legal__toc a {
  color: var(--primary-color, #6b21a8);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.terms-page .terms-legal__toc a:hover {
  border-bottom-color: rgba(190, 24, 93, 0.45);
  color: var(--secondary-color, #be185d);
}

.terms-page .terms-legal__section {
  margin-bottom: 2rem;
  scroll-margin-top: 6rem;
}

.terms-page .terms-legal__section:last-of-type {
  margin-bottom: 0;
}

.terms-page .terms-legal__section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color, #6b21a8);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.terms-page .terms-legal__section p,
.terms-page .terms-legal__section li {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 0.85rem;
}

.terms-page .terms-legal__section ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.terms-page .terms-legal__section li {
  margin-bottom: 0.4rem;
}

.terms-page .terms-legal__address {
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  background: rgba(107, 33, 168, 0.05);
  border: 1px solid rgba(107, 33, 168, 0.12);
  border-radius: 12px;
}

.terms-page .terms-legal__address-note {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: #64748b;
}

.terms-page .terms-legal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(107, 33, 168, 0.1);
}

.terms-page .terms-legal__actions .btn {
  border-radius: 999px;
  padding-inline: 1.5rem;
}

.terms-page .terms-legal__link-secondary {
  font-weight: 600;
  color: var(--secondary-color, #be185d);
}

.terms-page .terms-legal__link-secondary:hover {
  color: var(--primary-color, #6b21a8);
}

@media (max-width: 575px) {
  .terms-page .terms-legal__card {
    border-radius: 14px;
  }
}
