/* 
   Terms and Conditions Specific Styles
   Extends base.css
*/

/* Hero Section */
.terms-hero {
  padding: var(--space-16) 0 var(--space-8) 0;
  background: linear-gradient(to bottom, var(--color-bg), var(--color-surface));
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-12);
}

.terms-hero h1 {
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.terms-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--text-lg);
}

/* Main Content Layout */
.terms-body {
  padding-bottom: var(--space-24);
}

.terms-container {
  max-width: 900px; /* Optimal reading width */
}

/* Article Styling */
.terms-section {
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-surface-hover);
}

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

.terms-section h2 {
  color: var(--color-text);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-primary);
}

.terms-section p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

.terms-section strong {
  color: var(--color-text);
  font-weight: 700;
}

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

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

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

.terms-section a {
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 4px;
}

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

/* Numbered lists inside terms */
.terms-section ol {
  counter-reset: term-counter;
  list-style: none;
  padding-left: 0;
}

.terms-section ol li {
  counter-increment: term-counter;
  margin-bottom: var(--space-4);
  padding-left: var(--space-8);
  position: relative;
  color: var(--color-text-muted);
}

.terms-section ol li::before {
  content: counter(term-counter) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-silver);
}

/* Footer area of terms */
.terms-footer {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.terms-footer p {
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .terms-hero {
    padding: var(--space-8) 0;
  }
  
  .terms-section h2 {
    font-size: var(--text-xl);
  }
}