.terms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 3fr);
  gap: var(--space-32);
}

.terms-heading {
  grid-column: 1 / -1;
}

.terms-eyebrow {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-8);
}

.terms-toc {
  align-self: flex-start;
  position: sticky;
  top: var(--space-32);
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

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

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

.terms-toc-list li + li {
  margin-top: var(--space-8);
}

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

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

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

.terms-content {
  font-size: var(--font-size-sm);
}

.terms-section + .terms-section {
  margin-top: var(--space-32);
  padding-top: var(--space-24);
  border-top: 1px solid var(--gray-100);
}

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

.terms-section h3 {
  font-size: var(--font-size-lg);
  margin-top: var(--space-20);
}

.terms-section p {
  color: var(--color-text);
}

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

  .terms-toc {
    position: static;
    order: 2;
    margin-top: var(--space-24);
  }

  .terms-content {
    order: 1;
  }

  .terms-shortcuts {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .terms-heading h1 {
    font-size: var(--font-size-3xl);
  }

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