.section--terms-hero {
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
}

.terms-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: var(--space-10);
  align-items: center;
}

.terms-hero-text {
  max-width: 640px;
}

.terms-hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--gray-700);
}

.terms-hero-meta {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

.terms-hero-actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.terms-hero-aside {
  max-width: 420px;
  justify-self: end;
}

.terms-key-points {
  position: relative;
}

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

.terms-key-list {
  margin-bottom: var(--space-4);
  padding-left: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

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

.terms-key-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.terms-toc {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

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

.terms-toc-list {
  counter-reset: terms-counter;
}

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

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

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

.terms-article {
  max-width: 820px;
  margin: 0 auto;
}

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

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

.terms-subheading {
  font-size: var(--font-size-lg);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

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

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

.terms-section--cta {
  border-bottom: none;
}

.terms-cta {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.terms-cta-text {
  max-width: 520px;
}

.terms-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

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

  .terms-hero-aside {
    max-width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  .section--terms-hero {
    padding-top: var(--space-12);
    padding-bottom: var(--space-10);
  }

  .terms-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .terms-toc {
    padding: var(--space-4);
  }
}
