.terms {
  max-width: 900px;
}

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

.terms__intro {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
}

.terms__meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.terms__toc {
  margin-bottom: var(--space-8);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.terms__toc-title {
  margin-bottom: var(--space-3);
}

.terms__toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-2);
  font-size: var(--font-size-sm);
}

.terms__toc-list a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--color-text-muted);
}

.terms__toc-list a:hover {
  color: #fff !important;
}

.terms__section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.terms__section:first-of-type {
  border-top: none;
}

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

.terms__list {
  margin-bottom: var(--space-3);
}

.terms__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.terms__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e6397f, #ffb547);
  box-shadow: 0 0 8px rgba(230, 57, 127, 0.8);
}

.terms__list--ordered {
  counter-reset: terms-counter;
}

.terms__list--ordered li {
  padding-left: 2rem;
}

.terms__list--ordered li::before {
  counter-increment: terms-counter;
  content: counter(terms-counter) ".";
  top: 0.1rem;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-weight: 600;
  color: var(--color-primary-soft);
}

@media (max-width: 768px) {
  .terms__header {
    text-align: left;
  }

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