.terms-main {
  padding-top: var(--space-32);
  padding-bottom: var(--space-48);
}

.terms-hero {
  padding-bottom: var(--space-32);
}

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

.terms-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

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

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

.terms-breadcrumb li[aria-current="page"] {
  color: var(--color-text);
}

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

.terms-hero-intro {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
}

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

.terms-hero-cta {
  margin-top: var(--space-24);
}

.terms-content {
  padding-top: var(--space-24);
}

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

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

.terms-toc {
  background-color: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-24);
}

.terms-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

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

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

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

.terms-sidebar-card {
  background-color: var(--color-surface-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  font-size: var(--font-size-sm);
}

.terms-sidebar-title {
  font-weight: 600;
  margin-bottom: var(--space-8);
}

.terms-sidebar-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

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

.terms-body {
  background-color: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

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

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

.terms-section p,
.terms-section ul,
.terms-section ol {
  font-size: var(--font-size-sm);
}

.terms-section ul,
.terms-section ol {
  margin-bottom: var(--space-12);
}

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

.terms-conclusion-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-top: var(--space-24);
}

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

  .terms-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .terms-main {
    padding-top: var(--space-24);
    padding-bottom: var(--space-32);
  }

  .terms-body {
    padding: var(--space-20);
  }

  .terms-hero-intro {
    font-size: var(--font-size-md);
  }
}
