.terms-hero {
  background: radial-gradient(circle at top left, rgba(224, 160, 75, 0.16), transparent 55%), #070814;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.terms-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.terms-breadcrumb li+li::before {
  content: "/";
  margin: 0 var(--space-1);
  color: var(--color-gray-500);
}

.terms-header {
  max-width: var(--max-w-lg);
}

.terms-intro {
  max-width: var(--max-w-lg);
}

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

.terms-toc {
  position: sticky;
  top: var(--space-8);
  align-self: flex-start;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.terms-toc ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--space-6);
}

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

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

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

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

.terms-content {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.terms-section h2 {
  font-size: var(--font-size-2xl);
}

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

.terms-section li {
  margin-bottom: var(--space-2);
}

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

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

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

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

  .terms-footer-cta {
    flex-direction: column;
  }
}
