/**
 * CSS Styles for Custom Pages
 * Pages: Terms & Conditions, Contact, About Us
 *
 * Uses design system from store.css (:root variables)
 * Generated: 2025-12-23
 * Updated: Uses CSS variables for consistency
 */

/* ==========================================================================
   Legal Pages (Terms & Conditions)
   ========================================================================== */

.cs-legal-page {
  max-width: 900px;
  margin: var(--space-2xl) auto;
  padding: 0 var(--space-lg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
}

.cs-legal-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--border-color);
}

.cs-legal-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.cs-legal-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

.cs-legal-body {
  font-size: 1rem;
  color: var(--text-primary);
}

.cs-legal-section {
  margin-bottom: var(--space-xl);
}

.cs-legal-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  border-left: 4px solid var(--primary-color);
  padding-left: var(--space-md);
}

.cs-legal-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  margin-top: var(--space-lg);
  color: var(--text-primary);
}

.cs-legal-section p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.cs-legal-section ul {
  margin: var(--space-md) 0;
  padding-left: 30px;
}

.cs-legal-section li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.cs-legal-section a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.cs-legal-section a:hover {
  border-bottom-color: var(--primary-color);
}

.cs-legal-body hr {
  margin: var(--space-xl) 0;
  border: none;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.cs-contact-page {
  max-width: 1000px;
  margin: var(--space-2xl) auto;
  padding: 0 var(--space-lg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cs-contact-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.cs-contact-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.cs-contact-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.cs-contact-body {
  font-size: 1rem;
  line-height: 1.6;
}

.cs-contact-section {
  margin-bottom: var(--space-3xl);
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border-radius: 8px;
}

.cs-contact-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.cs-contact-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.cs-contact-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-inverse);
}

.cs-contact-primary h2,
.cs-contact-primary h3 {
  color: var(--text-inverse);
}

.cs-contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.cs-contact-item {
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-lg);
  border-radius: 6px;
}

.cs-contact-email {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-inverse);
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s;
}

.cs-contact-email:hover {
  border-bottom-color: var(--text-inverse);
}

.cs-contact-note {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: var(--space-sm);
}

.cs-contact-resources,
.cs-contact-checklist {
  list-style: none;
  padding: 0;
  margin-top: var(--space-md);
}

.cs-contact-resources li,
.cs-contact-checklist li {
  padding: var(--space-sm) 0;
  padding-left: 30px;
  position: relative;
}

.cs-contact-resources li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.cs-contact-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

.cs-contact-resources a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.cs-contact-resources a:hover {
  text-decoration: underline;
}

.cs-contact-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--error-color) 100%);
  color: var(--text-inverse);
}

.cs-contact-cta h2 {
  color: var(--text-inverse);
}

.cs-contact-button {
  display: inline-block;
  padding: var(--space-md) var(--space-2xl);
  background: var(--bg-primary);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  margin-top: var(--space-lg);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cs-contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cs-contact-business {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.cs-contact-business h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

/* ==========================================================================
   About Us Page
   ========================================================================== */

.cs-about-page {
  max-width: 1100px;
  margin: var(--space-2xl) auto;
  padding: 0 var(--space-lg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cs-about-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding: var(--space-3xl) var(--space-lg);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-inverse);
  border-radius: 12px;
}

.cs-about-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cs-about-tagline {
  font-size: 1.3rem;
  opacity: 0.95;
}

.cs-about-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.cs-about-section {
  margin-bottom: var(--space-3xl);
}

.cs-about-section h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  border-left: 5px solid var(--primary-color);
  padding-left: var(--space-lg);
}

.cs-about-section h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.cs-about-section p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.cs-about-list {
  margin: var(--space-lg) 0;
  padding-left: 25px;
}

.cs-about-list li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.cs-about-mission {
  background: var(--bg-secondary);
  padding: var(--space-2xl);
  border-radius: 10px;
  border-left: 5px solid var(--primary-color);
}

.cs-about-expectations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.cs-about-expectation {
  background: var(--bg-primary);
  padding: var(--space-lg);
  border-radius: 8px;
  border: 2px solid var(--border-color);
  transition: border-color 0.3s, transform 0.3s;
}

.cs-about-expectation:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.cs-about-expectation h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
}

.cs-about-trust {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--error-color) 100%);
  color: var(--text-inverse);
  padding: var(--space-3xl) var(--space-2xl);
  border-radius: 12px;
}

.cs-about-trust h2 {
  color: var(--text-inverse);
  border-left-color: var(--text-inverse);
  margin-bottom: var(--space-2xl);
}

.cs-about-trust-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.cs-about-trust-item {
  background: rgba(255, 255, 255, 0.15);
  padding: var(--space-lg);
  border-radius: 8px;
  text-align: center;
  transition: background 0.3s;
}

.cs-about-trust-item:hover {
  background: rgba(255, 255, 255, 0.25);
}

.cs-about-trust-item h3 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  color: var(--text-inverse);
}

.cs-about-trust-item p {
  font-size: 0.95rem;
  opacity: 0.95;
  margin: 0;
}

.cs-about-links {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border-radius: 8px;
}

.cs-about-footer-links {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.cs-about-footer-links li {
  margin: 0;
}

.cs-about-footer-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.cs-about-footer-links a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.cs-about-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-inverse);
  padding: var(--space-3xl) var(--space-2xl);
  border-radius: 12px;
}

.cs-about-cta h2 {
  color: var(--text-inverse);
  border: none;
  padding: 0;
  margin-bottom: var(--space-md);
}

.cs-about-cta p {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  opacity: 0.95;
}

.cs-about-button {
  display: inline-block;
  padding: calc(var(--space-md) + var(--space-xs)) var(--space-3xl);
  background: var(--bg-primary);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cs-about-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
  .cs-legal-header h1,
  .cs-contact-header h1,
  .cs-about-header h1 {
    font-size: 2rem;
  }

  .cs-legal-section h2,
  .cs-about-section h2 {
    font-size: 1.5rem;
  }

  .cs-contact-info,
  .cs-about-expectations,
  .cs-about-trust-blocks,
  .cs-about-footer-links {
    grid-template-columns: 1fr;
  }

  .cs-about-header {
    padding: var(--space-2xl) var(--space-lg);
  }

  .cs-about-cta,
  .cs-about-trust {
    padding: var(--space-2xl) var(--space-lg);
  }

  .cs-contact-section {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .cs-legal-page,
  .cs-contact-page,
  .cs-about-page {
    padding: 0 var(--space-md);
  }

  .cs-legal-header h1,
  .cs-contact-header h1 {
    font-size: 1.75rem;
  }

  .cs-about-header h1 {
    font-size: 1.8rem;
  }

  .cs-contact-button,
  .cs-about-button {
    padding: var(--space-sm) var(--space-xl);
    font-size: 1rem;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .cs-legal-page,
  .cs-contact-page,
  .cs-about-page {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .cs-contact-button,
  .cs-about-button {
    display: none;
  }

  .cs-contact-section,
  .cs-about-section {
    page-break-inside: avoid;
  }
}
