.terms-page {
  padding-top: var(--space-16);
  padding-bottom: var(--space-24);
  background-color: var(--color-surface);
}

.terms-header {
  margin-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-slate-200);
  padding-bottom: var(--space-8);
}

.breadcrumb {
  margin-bottom: var(--space-4);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-slate-500);
}

.breadcrumb a {
  color: var(--color-slate-600);
}

.breadcrumb a:hover {
  color: var(--color-navy-900);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: var(--space-2);
  color: var(--color-slate-300);
}

.terms-header h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-3);
}

.terms-meta {
  font-size: var(--font-size-sm);
  color: var(--color-slate-500);
  margin-bottom: 0;
}

.terms-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-12);
  align-items: start;
}

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

.terms-toc {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.terms-toc h2 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-slate-500);
  margin-bottom: var(--space-4);
}

.terms-toc ul {
  list-style: none;
}

.terms-toc li {
  margin-bottom: var(--space-2);
}

.terms-toc a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-slate-600);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.terms-toc a:hover {
  background-color: var(--color-slate-100);
  color: var(--color-navy-900);
}

.terms-toc a.active {
  background-color: var(--color-navy-900);
  color: var(--color-white);
}

.terms-content {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-10);
  box-shadow: var(--shadow-sm);
}

.terms-section {
  margin-bottom: var(--space-10);
  scroll-margin-top: var(--space-8);
}

.terms-section:last-of-type {
  margin-bottom: 0;
}

.terms-section h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-4);
  color: var(--color-navy-900);
}

.terms-section p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-slate-600);
  margin-bottom: var(--space-4);
}

.terms-section p:last-child {
  margin-bottom: 0;
}

.terms-footer {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-slate-200);
  text-align: center;
}

.terms-footer p {
  color: var(--color-slate-500);
  margin-bottom: 0;
}

.terms-footer a {
  color: var(--color-navy-900);
  font-weight: var(--font-weight-medium);
}

@media (max-width: 1024px) {
  .terms-layout {
    grid-template-columns: 1fr;
  }
  
  .terms-sidebar {
    position: static;
    order: 2;
  }
  
  .terms-toc {
    padding: var(--space-4);
  }
  
  .terms-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  
  .terms-toc li {
    margin-bottom: 0;
  }
  
  .terms-content {
    order: 1;
    padding: var(--space-6);
  }
}

@media (max-width: 640px) {
  .terms-page {
    padding-top: var(--space-10);
    padding-bottom: var(--space-16);
  }
  
  .terms-header h1 {
    font-size: var(--font-size-3xl);
  }
  
  .terms-content {
    padding: var(--space-5);
  }
  
  .terms-section h2 {
    font-size: var(--font-size-xl);
  }
}