/* Page-scoped styles for terms-and-conditions */
.terms-page {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-block-start: var(--space-7);
  padding-block-end: var(--space-8);
}

.terms-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block-end: var(--space-6);
  border-bottom: 1px solid var(--accent-brown);
  margin-block-end: var(--space-7);
}

.terms-hero__inner {
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.terms-hero h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
  margin-block-end: 0;
}

.terms-hero__lead {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--text-secondary);
  max-width: 70ch;
}

.terms-hero__date {
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--accent-gold);
  font-weight: 500;
}

.terms-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-top: 1px solid var(--accent-brown);
}

.terms-section:first-of-type {
  border-top: none;
  padding-block-start: 0;
}

.terms-section__inner {
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.terms-section h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  margin-block-end: var(--space-2);
}

.terms-section h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  margin-block-end: var(--space-2);
}

.terms-section p {
  max-width: 70ch;
  line-height: var(--leading-body);
  color: var(--text-primary);
}

.terms-section .content-list {
  max-width: 70ch;
  padding-inline-start: var(--space-4);
  list-style-type: disc;
  color: var(--text-secondary);
}

.terms-section .content-list li {
  margin-block-end: var(--space-2);
  line-height: var(--leading-body);
}

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

.terms-definitions__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-block-end: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.terms-definitions__item:last-child {
  border-bottom: none;
  padding-block-end: 0;
}

.terms-definitions dt {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  color: var(--accent-gold);
  font-weight: 500;
}

.terms-definitions dd {
  margin-inline-start: 0;
  color: var(--text-secondary);
  line-height: var(--leading-body);
}

.age-notice {
  background-color: var(--bg-deep);
  border: 1px solid var(--accent-brown);
  border-radius: var(--radius-2);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 70ch;
}

.age-notice h3 {
  margin-block-end: 0;
}

.age-notice p,
.age-notice .content-list {
  max-width: none;
}

.terms-effective {
  font-weight: 500;
  color: var(--accent-gold);
}

.text-link {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}

.text-link:hover {
  color: var(--accent-copper);
}

@media (max-width: 767px) {
  .terms-page {
    padding-block-start: var(--space-6);
    padding-block-end: var(--space-7);
  }

  .terms-hero {
    padding-block-end: var(--space-5);
    margin-block-end: var(--space-6);
  }

  .terms-hero__inner,
  .terms-section__inner {
    max-width: 100%;
  }

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

  .terms-section {
    padding-block: var(--space-5);
  }

  .terms-section h2 {
    font-size: 1.75rem;
  }

  .terms-section h3 {
    font-size: 1.375rem;
  }

  .age-notice {
    padding: var(--space-3);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .terms-hero__inner,
  .terms-section__inner {
    max-width: 680px;
  }
}
