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

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

.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 {
  display: flex;
  align-items: center;
}

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

.breadcrumb__link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.breadcrumb__item--active {
  color: var(--color-text-heading);
  font-weight: 500;
}

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

.terms-page__title {
  font-size: var(--text-4xl);
  color: var(--color-text-heading);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.terms-page__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: 0;
  max-width: 60ch;
}

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

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

.terms-section__heading {
  font-size: var(--text-2xl);
  color: var(--color-navy);
  margin-bottom: var(--space-5);
  font-weight: 600;
  line-height: var(--leading-tight);
}

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

.terms-section__content p {
  margin-bottom: var(--space-4);
  text-align: justify;
  hyphens: auto;
}

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

.terms-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 var(--space-6);
}

.terms-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  line-height: var(--leading-relaxed);
}

.terms-list li::before {
  content: "";
  position: absolute;
  left: var(--space-2);
  top: 0.6em;
  width: 6px;
  height: 6px;
  background-color: var(--color-navy);
  border-radius: 50%;
}

.terms-list strong {
  color: var(--color-text-heading);
  font-weight: 600;
}

.terms-section--highlight {
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-12);
}

.terms-section--highlight .terms-section__content p {
  margin-bottom: 0;
  text-align: left;
}

.terms-section--highlight a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-section--highlight a:hover {
  color: var(--color-primary-hover);
}

@media (max-width: 640px) {
  .terms-page {
    padding-top: var(--space-6);
    padding-bottom: var(--space-16);
  }
  
  .terms-page__title {
    font-size: var(--text-3xl);
  }
  
  .terms-page__subtitle {
    font-size: var(--text-base);
  }
  
  .terms-section__heading {
    font-size: var(--text-xl);
  }
  
  .terms-section {
    margin-bottom: var(--space-8);
  }
  
  .terms-page__header {
    margin-bottom: var(--space-8);
  }
}