/* 
  Terms and Conditions Page Styles
  Theme: Editorial, Clean, Readable
*/

.terms-page {
  padding-top: var(--space-12);
  padding-bottom: var(--space-16);
  background-color: var(--clr-bg-body);
  color: var(--clr-text-main);
}

.terms-header {
  margin-bottom: var(--space-12);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.terms-subtitle {
  display: block;
  font-size: var(--fs-sm);
  color: var(--clr-secondary);
  font-weight: 600;
  margin-bottom: var(--space-4);
  letter-spacing: 0.1em;
}

.terms-title {
  font-size: var(--fs-4xl);
  color: var(--clr-primary);
  margin-bottom: var(--space-4);
}

.terms-intro {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  font-style: italic;
}

.terms-content {
  max-width: 760px; /* Optimal reading width */
  margin: 0 auto;
  counter-reset: section-counter;
}

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

.terms-section:last-child {
  border-bottom: none;
}

.terms-section h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--clr-primary);
  margin-bottom: var(--space-4);
}

.terms-section p {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--clr-text-main);
  margin-bottom: var(--space-4);
  max-width: none;
}

.terms-list, 
.terms-ordered-list {
  margin-bottom: var(--space-4);
  margin-left: var(--space-4);
  color: var(--clr-text-main);
}

.terms-list li,
.terms-ordered-list li {
  margin-bottom: var(--space-2);
  padding-left: var(--space-2);
}

.terms-list li strong {
  color: var(--clr-primary);
  font-weight: 600;
}

.terms-content a {
  color: var(--clr-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.terms-content a:hover {
  color: var(--clr-secondary);
}

.terms-footer {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .terms-title {
    font-size: var(--fs-3xl);
  }
  
  .terms-page {
    padding-top: var(--space-8);
    padding-bottom: var(--space-12);
  }

  .terms-section h2 {
    font-size: var(--fs-lg);
  }
}