/* =====================================================
   PAGES.CSS - Styles for static pages
   (Privacy, Terms, About, Calculators)
   ===================================================== */

/* Override body background for static pages */
body:has(.page-container),
body:has(.calculator-container),
body:has(.gear-calculator) {
  /* Align static pages with main dark theme */
  background: radial-gradient(circle at top, #020617 0%, #020617 45%, #000000 100%);
  color: var(--text-primary);
}


/* Container for static pages */
.page-container,
.calculator-container,
.gear-calculator {
  max-width: 1100px;
  margin: 30px auto;
  padding: 24px;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.7);
  color: var(--text-secondary);
}

.page-header {
  text-align: left;
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #e5e7eb;
}

.page-header p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 720px;
}

.page-section {
  margin-bottom: 24px;
}

.page-section h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #f9fafb;
}

.page-section p {
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-section ul {
  padding-left: 1.1rem;
  margin: 10px 0 16px;
}

.page-section li {
  margin-bottom: 6px;
  color: var(--text-secondary);
}

 {
  margin-bottom: 30px;
}

.page-section h2 {
  color: #1e3c72;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.page-section h3 {
  color: #2a5298;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.page-section p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #333;
}

.page-section ul,
.page-section ol {
  margin-left: 20px;
  margin-bottom: 15px;
  line-height: 1.8;
}

.page-section li {
  margin-bottom: 8px;
  color: #444;
}

/* Summary Box */
.summary-box {
  background: #f0f8ff;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
  border-left: 4px solid #4da6ff;
  color: #333;
}

.summary-box h3 {
  color: #1e3c72;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.summary-box p {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

.summary-box strong {
  color: #1e3c72;
}

/* Educational Content Sections */
.educational-content {
  margin: 20px 0;
  padding: 20px;
}

.educational-content h2 {
  color: #1e3c72;
  margin-bottom: 20px;
}

.educational-content h3 {
  color: #2a5298;
  margin-top: 25px;
  margin-bottom: 15px;
}

.educational-content h4 {
  color: #4da6ff;
  margin-top: 20px;
  margin-bottom: 10px;
}

.educational-content article {
  margin-bottom: 30px;
}

.educational-content ul {
  list-style-type: disc;
  padding-left: 20px;
}

.educational-content ol {
  padding-left: 20px;
}

.educational-content a {
  color: #4da6ff;
  text-decoration: none;
}

.educational-content a:hover {
  text-decoration: underline;
}

/* Calculator specific styles */
.calculator-header {
  text-align: center;
  margin-bottom: 20px;
}

.calculator-header h1 {
  color: #e5e7eb;
  margin-bottom: 8px;
}


.calculator-header p {
  color: rgba(226, 232, 240, 0.84);
  max-width: 720px;
  margin: 10px auto 0;
}


/* Feature Grid (for About page) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-item h3 {
  color: #2a5298;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.feature-item p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Call to Action Section */
.cta-section {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 10px;
  color: white;
  margin-top: 30px;
}

.cta-section h2 {
  color: white;
  margin-bottom: 15px;
}

.cta-section p {
  margin: 15px 0;
  color: rgba(255, 255, 255, 0.9);
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: white;
  color: #1e3c72;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Glass Card Sections - Override for static pages */
.glass-card.content-section {
  padding: 20px 22px;
  margin-bottom: 24px;
  background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.32) 0%, rgba(15, 23, 42, 0.98) 55%, rgba(15, 23, 42, 1) 100%);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}


.glass-card.content-section {
  padding: 20px 22px;
  margin-bottom: 24px;
  background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.32) 0%, rgba(15, 23, 42, 0.98) 55%, rgba(15, 23, 42, 1) 100%);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}


/* Footer Styles */
.glass-card.page-footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  background: #f8f9fa;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  color: #333;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: #004499;
  text-decoration: underline;
}

.footer-language {
  margin: 12px 0 10px;
}

.footer-language label {
  margin-right: 8px;
}

.footer-nav-label {
  display: block;
  margin-bottom: 6px;
}

.footer-copyright {
  margin-top: 10px;
  color: #666;
  font-size: 0.8rem;
}

/* Breadcrumb with auto margins */
.breadcrumb.centered {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Description paragraph */
p.subtitle-gray {
  color: rgba(226, 232, 240, 0.84);
  max-width: 720px;
  margin: 10px auto 0;
}


/* Unstyled lists */
ul.no-bullets {
  list-style-type: none;
  padding-left: 0;
}

/* CTA paragraph margin */
p.cta-spacing {
  margin: 15px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-container,
  .calculator-container {
    padding: 15px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .page-section h2 {
    font-size: 1.3rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}
