.terms-page {
  max-width: 760px;
}

.terms-page__header {
  margin-bottom: var(--space-8);
}

.terms-page__title {
  margin-bottom: var(--space-3);
}

.terms-page__intro {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
  max-width: 42rem;
}

.terms-page__toc {
  margin-bottom: var(--space-8);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, #f9f4f6);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(228, 217, 210, 0.7);
}

.terms-page__toc-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
}

.terms-page__toc ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.terms-page__toc a {
  text-decoration: none;
}

.terms-section + .terms-section {
  margin-top: var(--space-6);
}

.terms-section h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-2);
}

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

.terms-page__cta {
  margin-top: var(--space-8);
}

.terms-page__cta-actions {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 599px) {
  .terms-page__toc {
    padding: var(--space-3);
  }

  .terms-section h2 {
    font-size: var(--font-size-xl);
  }
}
