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

.terms-hero {
  grid-column: 1 / -1;
  padding: var(--space-20);
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, rgba(75, 140, 255, 0.18) 0, rgba(11, 14, 22, 0.96) 42%, #05060a 100%);
  border: 1px solid rgba(23, 32, 59, 0.95);
  box-shadow: var(--shadow-soft);
}

.terms-hero__badge {
  margin-bottom: var(--space-8);
}

.terms-hero__lead {
  max-width: 60ch;
}

.terms-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-8);
  margin-bottom: var(--space-12);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.terms-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.terms-toc {
  position: sticky;
  top: 96px;
  align-self: flex-start;
  padding: var(--space-12);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(75, 140, 255, 0.16) 0, rgba(11, 14, 22, 0.98) 45%, #05060a 100%);
  border: 1px solid rgba(23, 32, 59, 0.9);
  box-shadow: var(--shadow-soft);
}

.terms-toc__title {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-6);
}

.terms-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
}

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

.terms-toc__list a:hover {
  color: var(--color-primary-strong);
  text-shadow: 0 0 8px rgba(75, 140, 255, 0.7);
}

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

.terms-section {
  padding: var(--space-12);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(75, 140, 255, 0.08) 0, rgba(11, 14, 22, 0.96) 46%, #05060a 100%);
  border: 1px solid rgba(23, 32, 59, 0.9);
}

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

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

.terms-list li {
  margin-bottom: var(--space-4);
}

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

  .terms-toc {
    position: static;
    order: -1;
  }
}

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

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

  .terms-hero__meta {
    flex-direction: column;
  }
}
