.terms-hero {
  padding-top: var(--space-64);
  padding-bottom: var(--space-40);
}

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

.terms-intro {
  font-size: var(--font-size-md);
}

.terms-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-16);
}

.terms-breadcrumbs li+li::before {
  content: "/";
  margin-right: 0.35rem;
}

.terms-breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.terms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-32);
}

.terms-toc {
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.terms-toc h2 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-16);
}

.terms-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: var(--font-size-sm);
}

.terms-toc a {
  color: var(--color-text-soft);
}

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

.terms-links {
  margin-top: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.terms-link {
  font-size: var(--font-size-sm);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-article {
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

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

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

.terms-section ul {
  padding-left: 1.1rem;
  margin-bottom: var(--space-16);
}

.terms-section li {
  margin-bottom: 0.35rem;
  color: var(--color-text-soft);
}

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

@media (min-width: 960px) {
  .terms-layout {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    align-items: flex-start;
  }

  .terms-hero {
    padding-top: var(--space-80);
  }

  .terms-article {
    padding: var(--space-32);
  }
}
