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

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

.terms-hero {
  grid-column: 1 / -1;
  margin-bottom: var(--space-4);
}

.terms-eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.terms-lead {
  font-size: var(--font-size-lg);
  max-width: 46rem;
}

.terms-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

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

.terms-toc {
  align-self: flex-start;
  position: sticky;
  top: 6.5rem;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background-color: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 960px) {
  .terms-toc {
    position: static;
    order: 2;
  }
}

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

.terms-toc ol {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: var(--font-size-sm);
}

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

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

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

.terms-section {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-card);
}

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

.terms-section ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.terms-section li + li {
  margin-top: 0.35rem;
}

.terms-section a {
  text-decoration: underline;
  text-decoration-color: rgba(250, 204, 21, 0.7);
  text-underline-offset: 0.18em;
}

.terms-section a:hover {
  text-decoration-color: rgba(250, 204, 21, 1);
}

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