.terms-hero {
  border-bottom: 1px solid var(--color-border);
  background: radial-gradient(circle at top left, rgba(31, 79, 122, 0.4), transparent 55%),
    linear-gradient(135deg, #020617 0%, #020617 60%, #020617 100%);
}

.terms-hero-header {
  max-width: 720px;
}

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

.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: 0.35rem;
  margin: 0;
  padding: 0;
}

.terms-breadcrumb li::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--color-neutral-600);
}

.terms-breadcrumb li:last-child::after {
  content: "";
}

.terms-breadcrumb a {
  color: var(--color-accent-sandstone);
}

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

.terms-sidebar {
  position: sticky;
  top: var(--space-8);
  align-self: flex-start;
}

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

.terms-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--font-size-sm);
}

.terms-toc li + li {
  margin-top: 0.45rem;
}

.terms-toc a {
  display: inline-block;
  line-height: 1.4;
}

.terms-contact-cta {
  margin-top: var(--space-6);
}

.terms-content {
  max-width: 760px;
}

.terms-section + .terms-section {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(51, 65, 85, 0.7);
}

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

.terms-section h3 {
  margin-top: var(--space-4);
}

.terms-section ul {
  margin-left: 1.25rem;
}

.terms-related-links {
  border-top: 1px solid rgba(51, 65, 85, 0.7);
  padding-top: var(--space-6);
}

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

  .terms-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .terms-hero-header {
    max-width: 100%;
  }

  .terms-section + .terms-section {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
  }
}
