.terms-page {
  background-color: var(--color-ink);
  color: var(--color-ivory);
  padding-block: var(--space-3xl) var(--space-4xl);
}

.terms-hero {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-desktop);
  margin-block-end: var(--space-3xl);
}

.terms-hero__inner {
  max-width: 800px;
  margin-inline: auto;
  text-align: left;
}

.terms-hero .eyebrow {
  margin-block-end: var(--space-sm);
}

.terms-hero h1 {
  margin-block-end: var(--space-lg);
}

.terms-hero__lead {
  font-size: var(--text-h4);
  line-height: var(--leading-heading);
  color: rgba(255, 255, 255, 0.85);
  max-width: 65ch;
  margin-block-end: 0;
}

.terms-container {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--container-pad-desktop);
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.terms-section {
  width: 100%;
}

.terms-section__content {
  width: 100%;
}

.terms-section__content--intro {
  border-inline-start: 3px solid var(--color-gold);
  padding-inline-start: var(--space-lg);
  max-width: 65ch;
}

.terms-section__content--website {
  max-width: 70ch;
}

.terms-section__content--bookings {
  max-width: 65ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.terms-section__content--tournaments {
  max-width: 70ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.terms-section__content--conduct {
  max-width: 65ch;
}

.terms-section__content--liability {
  max-width: 65ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.terms-section__content--governing {
  max-width: 70ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.terms-card {
  background-color: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
}

.terms-card--gold {
  border-color: var(--color-gold);
}

.terms-card h3 {
  margin-block-end: var(--space-sm);
}

.terms-card p:last-child {
  margin-block-end: 0;
}

.terms-subsection {
  width: 100%;
  padding-block-end: var(--space-lg);
  border-block-end: 1px solid var(--color-mahogany);
}

.terms-subsection--accent {
  border-block-end: none;
  padding-block-end: 0;
}

.terms-subsection h3 {
  margin-block-end: var(--space-sm);
}

.terms-subsection p:last-child {
  margin-block-end: 0;
}

.terms-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-style: normal;
  margin-block-start: var(--space-sm);
}

.terms-contact span {
  display: block;
}

.terms-contact a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.terms-contact a:hover,
.terms-contact a:focus-visible {
  color: var(--color-ivory);
}

@media (max-width: 900px) {
  .terms-page {
    padding-block: var(--space-2xl) var(--space-3xl);
  }

  .terms-hero {
    margin-block-end: var(--space-2xl);
  }

  .terms-container {
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .terms-page {
    padding-block: var(--space-xl) var(--space-2xl);
  }

  .terms-hero {
    padding-inline: var(--container-pad-mobile);
    margin-block-end: var(--space-xl);
  }

  .terms-hero h1 {
    font-size: 2rem;
  }

  .terms-hero__lead {
    font-size: var(--text-body);
    max-width: 100%;
  }

  .terms-container {
    padding-inline: var(--container-pad-mobile);
    gap: var(--space-xl);
  }

  .terms-section__content--intro,
  .terms-section__content--website,
  .terms-section__content--bookings,
  .terms-section__content--tournaments,
  .terms-section__content--conduct,
  .terms-section__content--liability,
  .terms-section__content--governing {
    max-width: 100%;
  }

  .terms-card {
    padding: var(--space-md);
  }
}

@media (max-width: 390px) {
  .terms-hero h1 {
    font-size: 1.75rem;
  }

  .terms-card {
    padding: var(--space-sm);
  }
}
