body[data-helper-page] {
  --terms-ink: #171717;
  --terms-muted: #575757;
  --terms-paper: #f2f2f2;
  --terms-card: #ffffff;
  --terms-accent: #fe3b63;
  color: var(--terms-ink);
  background: var(--terms-paper);
  font-family: "Pragati Narrow", "Arial Narrow", Arial, sans-serif;
}

body[data-helper-page] .directory-hero__header {
  background-color: #f2f2f2;
}

.terms-main {
  min-height: 60vh;
  padding: clamp(52px, 7vw, 104px) 24px clamp(76px, 9vw, 132px);
  background:
    radial-gradient(ellipse at 88% 5%, rgb(254 59 99 / 10%), transparent 31rem),
    #f2f2f2;
}

.terms-main > section {
  width: min(100%, 920px);
  margin-inline: auto;
}

.terms-intro {
  padding: 0 0 clamp(34px, 5vw, 64px);
  border-bottom: 1px solid #c9c9c9;
}

.terms-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #7a273c;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.terms-kicker::before {
  width: 28px;
  height: 3px;
  background: var(--terms-accent);
  content: "";
}

.terms-title {
  max-width: 780px;
  margin: 0;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .98;
}

.terms-summary {
  max-width: 690px;
  margin: 24px 0 0;
  color: #393939;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.5;
}

.terms-updated {
  margin: 20px 0 0;
  color: var(--terms-muted);
  font-size: 15px;
  line-height: 1.5;
}

.terms-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.terms-toc li {
  margin: 0;
}

.terms-toc a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid #c8c8c8;
  border-radius: 999px;
  color: #242424;
  background-color: #ffffff;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.terms-toc a:hover,
.terms-toc a:focus-visible {
  border-color: #171717;
  background-color: #f9e4e9;
}

.terms-section {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(30px, 4.4vw, 48px) 0;
  border-bottom: 1px solid #c9c9c9;
  scroll-margin-top: 28px;
}

.terms-section__number {
  padding-top: 4px;
  color: #b72849;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
}

.terms-section__content {
  min-width: 0;
}

.terms-section__title {
  margin: 0 0 14px;
  font-size: clamp(25px, 3.2vw, 35px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.15;
}

.terms-section__content p {
  max-width: 740px;
  margin: 0 0 14px;
  color: #393939;
  font-size: 18px;
  line-height: 1.68;
}

.terms-section__content p:last-child {
  margin-bottom: 0;
}

.terms-section__content a {
  color: #702138;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.terms-section__content a:hover,
.terms-section__content a:focus-visible {
  color: #111111;
}

.terms-policy-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
}

.terms-policy-link::after {
  flex: 0 0 auto;
  color: #702138;
  content: "↗";
  font-family: Arial, sans-serif;
  font-size: .9em;
}

.terms-contact-note {
  margin-top: 8px !important;
  padding: 18px 20px;
  border-left: 4px solid var(--terms-accent);
  background-color: #ffffff;
}

.terms-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 640ms cubic-bezier(.2, .7, .25, 1), transform 640ms cubic-bezier(.2, .7, .25, 1);
}

.terms-reveal.terms-pending {
  opacity: .88;
  transform: translateY(7px);
}

.terms-reveal.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .terms-reveal,
  .terms-reveal.terms-pending,
  .terms-toc a {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .terms-main {
    padding: 42px 18px 72px;
  }

  .terms-intro {
    padding-bottom: 30px;
  }

  .terms-title {
    font-size: clamp(45px, 13vw, 64px);
  }

  .terms-toc {
    gap: 8px;
  }

  .terms-toc a {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 14px;
  }

  .terms-section {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 28px 0;
  }

  .terms-section__number {
    font-size: 16px;
  }

  .terms-section__title {
    font-size: 25px;
  }

  .terms-section__content p {
    font-size: 17px;
    line-height: 1.58;
  }

  .terms-contact-note {
    padding: 14px 15px;
  }
}
