.terms-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

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

.terms-hero h1 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-3);
}

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

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

.terms-toc {
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

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

.terms-toc-list {
  list-style: decimal;
  padding-left: var(--space-4);
  display: grid;
  gap: 6px;
  font-size: var(--font-size-sm);
}

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

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

.terms-section {
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

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

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

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

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

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

.terms-final-grid {
  align-items: center;
  gap: var(--space-6);
}

.terms-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .terms-toc {
    padding: var(--space-4);
  }

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

  .terms-final-actions {
    justify-content: flex-start;
  }
}
