.terms-page {
  max-width: var(--container-wide-max-width);
}

.terms-hero {
  margin-bottom: var(--space-32);
}

.terms-hero__subtitle {
  color: var(--color-text-muted);
}

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

.terms-toc {
  margin-bottom: var(--space-32);
  padding: var(--space-16);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  background: radial-gradient(circle at top left, rgba(30, 144, 255, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(36, 224, 124, 0.1), transparent 60%),
    var(--color-surface);
}

.terms-toc__title {
  margin-bottom: var(--space-12);
}

.terms-toc__list {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
}

.terms-toc__list li {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.terms-section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-8);
  border-top: 1px solid var(--color-border-subtle);
}

.terms-section:first-of-type {
  border-top: none;
}

.terms-section h2 {
  margin-bottom: var(--space-12);
}

.terms-list {
  list-style: disc;
  padding-left: var(--space-20);
  margin-bottom: var(--space-8);
}

.terms-list li {
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.terms-section ol.terms-list {
  list-style: decimal;
}

@media (max-width: 768px) {
  .terms-toc__list {
    grid-template-columns: 1fr;
  }

  .terms-section {
    padding-top: var(--space-20);
  }
}
