.terms-hero {
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}

.terms-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.terms-hero__content {
  position: relative;
  z-index: 1;
}

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

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.breadcrumb__item:not(:last-child)::after {
  content: '/';
  margin-left: var(--space-2);
  color: var(--color-text-muted);
}

.breadcrumb__link {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb__link:hover {
  color: var(--color-primary);
}

.breadcrumb__current {
  color: var(--color-text-primary);
}

.terms-hero__title {
  font-size: var(--text-4xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.terms-hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  max-width: 65ch;
  margin-bottom: var(--space-4);
}

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

.terms-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-12);
  padding-top: var(--space-12);
  padding-bottom: var(--space-24);
}

.terms-sidebar {
  position: sticky;
  top: var(--space-8);
  height: fit-content;
  max-height: calc(100vh - var(--space-16));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.terms-sidebar::-webkit-scrollbar {
  width: 6px;
}

.terms-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.terms-sidebar::-webkit-scrollbar-thumb {
  background-color: var(--color-border);
  border-radius: var(--radius-full);
}

.terms-nav {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.terms-nav__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

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

.terms-nav__link {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
  margin-left: calc(-1 * var(--space-3));
}

.terms-nav__link:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-subtle);
  border-left-color: var(--color-primary);
}

.terms-nav__link.active {
  color: var(--color-primary);
  background-color: var(--color-primary-subtle);
  border-left-color: var(--color-primary);
  font-weight: 600;
}

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

.terms-section {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  scroll-margin-top: var(--space-8);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.terms-section:hover {
  border-color: rgba(0, 212, 255, 0.2);
}

.terms-section__title {
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.terms-section__title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--color-primary) 0%, transparent 100%);
  border-radius: var(--radius-full);
}

.terms-section__content {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.terms-section__content p {
  margin-bottom: var(--space-4);
}

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

.terms-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.terms-list li {
  position: relative;
  padding-left: var(--space-6);
  color: var(--color-text-secondary);
}

.terms-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.terms-footer {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background-color: var(--color-primary-subtle);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
}

.terms-footer p {
  margin: 0;
  color: var(--color-text-primary);
  font-size: var(--text-base);
}

.terms-footer a {
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

@media (max-width: 1024px) {
  .terms-container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .terms-sidebar {
    position: static;
    max-height: none;
    order: -1;
  }

  .terms-nav {
    padding: var(--space-4);
  }

  .terms-nav__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2);
  }

  .terms-nav__link {
    margin-left: 0;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .terms-nav__link:hover,
  .terms-nav__link.active {
    border-left-color: transparent;
    border-bottom-color: var(--color-primary);
  }
}

@media (max-width: 768px) {
  .terms-hero {
    padding: var(--space-12) 0 var(--space-8);
  }

  .terms-hero__title {
    font-size: var(--text-3xl);
  }

  .terms-hero__subtitle {
    font-size: var(--text-lg);
  }

  .terms-section {
    padding: var(--space-6);
  }

  .terms-section__title {
    font-size: var(--text-xl);
  }

  .terms-nav__list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terms-section {
    scroll-margin-top: 0;
  }
}