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

.terms-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.terms-breadcrumbs li::after {
  content: "/";
  margin-left: 4px;
  color: var(--gray-400);
}

.terms-breadcrumbs li:last-child::after {
  content: "";
}

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

.terms-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-6);
}

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

.terms-meta {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: var(--space-4);
}

.terms-toc {
  position: sticky;
  top: 96px;
  align-self: flex-start;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
}

@media (max-width: 900px) {
  .terms-toc {
    position: static;
  }
}

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

.terms-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.terms-toc li {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
}

.terms-toc a {
  color: var(--gray-700);
}

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

.terms-content {
  font-size: var(--font-size-sm);
}

.terms-section + .terms-section {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-200);
}

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

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

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

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