.terms-main {
  background: radial-gradient(circle at top, rgba(47, 127, 79, 0.35), transparent 55%), var(--color-background);
}

.terms-hero__header {
  max-width: 800px;
}

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

.terms-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.terms-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-8);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.terms-breadcrumb li+li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--gray-500);
}

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

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

.terms-toc {
  position: sticky;
  top: 5rem;
  align-self: flex-start;
}

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

.terms-toc nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

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

.terms-article {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-24);
  box-shadow: var(--shadow-sm);
}

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

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

.terms-section ul {
  margin-left: 1.1rem;
  margin-bottom: var(--space-8);
  color: var(--color-text-muted);
}

.terms-section ul li {
  margin-bottom: 0.35rem;
}

.terms-conclusion-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-16);
}

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

  .terms-toc {
    position: static;
    order: -1;
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-16);
    box-shadow: var(--shadow-xs);
  }
}

@media (max-width: 640px) {
  .terms-article {
    padding: var(--space-16);
  }

  .terms-hero__intro {
    font-size: var(--font-size-base);
  }

  .terms-hero__cta,
  .terms-conclusion-cta {
    flex-direction: column;
    align-items: stretch;
  }
}
