main {
  padding-top: calc(var(--header-height) * 0.4);
}

.terms-hero-inner {
  border-radius: var(--radius-section);
  background: radial-gradient(circle at top left, rgba(242, 164, 90, 0.14), transparent 55%), radial-gradient(circle at bottom right, rgba(62, 74, 59, 0.12), transparent 60%), rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft-high);
  padding: clamp(1.75rem, 4vw, 3rem);
}

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

.terms-hero-meta {
  margin-top: var(--space-md);
}

.terms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: flex-start;
}

.terms-toc {
  min-width: 0;
}

.terms-toc-inner {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.terms-toc-header {
  margin-bottom: var(--space-md);
}

.terms-toc-nav {
  margin-bottom: var(--space-md);
}

.terms-toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  counter-reset: terms-toc-counter;
}

.terms-toc-list li {
  counter-increment: terms-toc-counter;
}

.terms-toc-list li + li {
  margin-top: 0.4rem;
}

.terms-toc-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

.terms-toc-list a::before {
  content: counter(terms-toc-counter) ".";
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

.terms-toc-cta p {
  max-width: 32ch;
}

.terms-content {
  min-width: 0;
}

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

.terms-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

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

.terms-section h3 {
  font-size: var(--font-size-lg);
}

.terms-section ul,
.terms-section ol {
  margin-top: 0.25rem;
  margin-bottom: var(--space-md);
}

.terms-section li {
  max-width: 70ch;
}

.terms-next-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.terms-next-steps .btn-group {
  flex-wrap: wrap;
}

.terms-next-steps .btn {
  max-width: 100%;
}

@media (min-width: 768px) {
  .terms-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  }
}

@media (max-width: 767.98px) {
  main {
    padding-top: calc(var(--header-height) * 0.2);
  }
  .terms-toc-inner {
    position: static;
  }
  .terms-section {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
  }
}
