/* Enhanced styling for text content pages like Terms of Service and Privacy Policy */

.text-content {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: #2d3748;
}

.text-content-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.text-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}


.text-content p {
  margin-bottom: 1.25rem;
  text-align: justify;
  hyphens: auto;
}

.text-content p:first-of-type {
  font-size: 1.125rem;
  font-weight: 400;
  color: #4a5568;
}

.text-content ul, .text-content ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.text-content li {
  margin-bottom: 0.75rem;
  position: relative;
}

.text-content ul li::marker {
  color: #4299e1;
  font-size: 1.25em;
}

.text-content ol li::marker {
  color: #4299e1;
  font-weight: 600;
}

.text-content a {
  color: #3182ce;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

.text-content a:hover {
  color: #2c5282;
  text-decoration-thickness: 2px;
}

.text-content strong {
  font-weight: 600;
  color: #2d3748;
}

.text-content-container {
  background: #f9fafb;
  min-height: 100vh;
  padding: 3rem 0;
}

.text-content-wrapper {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .text-content-wrapper {
    max-width: 42rem;
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .text-content-wrapper {
    max-width: 56rem;
    padding: 0 2rem;
  }
}

.text-content-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 3rem;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.text-content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4299e1, #667eea, #764ba2);
}

.text-content-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.text-content-header .last-updated {
  font-size: 1rem;
  color: #718096;
  font-weight: 400;
  margin-top: 0.5rem;
}

.text-content-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.text-content-footer p {
  font-size: 0.875rem;
  color: #718096;
  margin: 0;
}

.text-content-section {
  margin-bottom: 2.5rem;
}

.text-content-section:last-child {
  margin-bottom: 0;
}

/* Responsive typography */
@media (max-width: 640px) {
  .text-content h1 {
    font-size: 2rem;
  }
  
  .text-content h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
  }
  
  .text-content-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
  }
  
  .text-content h2::before {
    display: none;
  }
}

/* Print styles */
@media print {
  .text-content-container {
    background: white;
  }
  
  .text-content-card {
    box-shadow: none;
    padding: 1rem;
  }
  
  .text-content h2::before {
    display: none;
  }
  
  .text-content a {
    color: #2d3748;
    text-decoration: none;
  }
  
  .text-content a::after {
    content: " (" attr(href) ")";
    font-size: 0.875rem;
    color: #718096;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .text-content a {
    transition: none;
  }
}

/* Focus styles for better accessibility */
.text-content a:focus {
  outline: 2px solid #4299e1;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Selection styling */
.text-content ::selection {
  background: #bee3f8;
  color: #2c5282;
}