.terms-layout {
  max-width: 900px;
}

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

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

.terms-intro {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 48rem;
}

.terms-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.terms-meta__link a {
  text-decoration: underline;
}

.terms-toc {
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.terms-toc__title {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-3);
}

.terms-toc__list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: var(--font-size-sm);
}

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

.terms-toc__list a:hover {
  color: var(--color-primary);
}

.terms-section {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(30, 64, 175, 0.6);
}

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

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

.terms-list {
  list-style: disc;
  padding-left: var(--space-6);
  color: var(--color-text-muted);
}

.terms-list li {
  margin-bottom: var(--space-2);
}

.terms-section a {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .terms-toc {
    margin-inline: calc(var(--layout-gutter) * -1);
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}
