/**
 * @file
 * Terms and Conditions Page Styling
 */

.terms-page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  background: #f8fafc;
  min-height: 100vh;
}

.terms-page-content {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 3rem;
}

/* Header */
.terms-header {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
  margin-bottom: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.terms-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.terms-header .lead {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.terms-header .updated {
  font-size: 0.95rem;
  color: #fff;
  font-style: italic;
  opacity: 0.9;
}

/* Navigation */
.terms-navigation {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 3rem;
}

.terms-navigation h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 1rem;
}

.terms-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.terms-navigation li {
  margin-bottom: 0.5rem;
}

.terms-navigation a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.terms-navigation a:hover {
  color: #1d4ed8;
  transform: translateX(4px);
}

/* Sections */
.terms-section {
  margin-bottom: 3rem;
  scroll-margin-top: 2rem;
}

.terms-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.terms-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #334155;
  margin: 2rem 0 1rem;
}

.terms-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 1.25rem;
}

.terms-section ul,
.terms-section ol {
  margin: 1rem 0 1.5rem 1.5rem;
  padding-left: 1rem;
}

.terms-section li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: #475569;
}

.terms-section strong {
  font-weight: 600;
  color: #1e293b;
}

.terms-section a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

.terms-section a:hover {
  color: #1d4ed8;
}

/* Contact Info */
.contact-info {
  background: #f1f5f9;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border-left: 4px solid #16a34a;
  margin: 1.5rem 0;
}

.contact-info p {
  margin: 0;
  line-height: 1.8;
}

/* Footer Section */
.terms-footer {
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-top: 3rem;
}

.terms-footer h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.terms-footer h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #334155;
  margin: 1.5rem 0 0.75rem;
}

/* Acceptance Box */
.terms-acceptance {
  background: linear-gradient(135deg, #2563eb 0%, #16a34a 100%);
  color: white;
  padding: 2.5rem;
  border-radius: 1rem;
  text-align: center;
  margin-top: 3rem;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.acceptance-text {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.terms-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.terms-actions .btn {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.terms-actions .btn-primary {
  background: white;
  color: #2563eb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.terms-actions .btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.terms-actions .btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.terms-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .terms-page-content {
    padding: 2rem 1.5rem;
  }
  
  .terms-header h1 {
    font-size: 2rem;
  }
  
  .terms-header .lead {
    font-size: 1.125rem;
  }
  
  .terms-section h2 {
    font-size: 1.5rem;
  }
  
  .terms-section h3 {
    font-size: 1.125rem;
  }
  
  .terms-actions {
    flex-direction: column;
  }
  
  .terms-actions .btn {
    width: 100%;
  }
}

/* Pricing Section */
.price-toggle-container {
  background: #f1f5f9;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.price-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #1e293b;
}

.price-toggle-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: #2563eb;
}

.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.price-item {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.price-item:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.price-header h4 {
  margin: 0 0 1rem;
  color: #2563eb;
  font-size: 1.25rem;
  font-weight: 700;
}

.price-amount {
  margin-bottom: 1rem;
}

.price-amount .price-excl,
.price-amount .price-incl {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.price-label {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.price-description p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.pricing-note {
  text-align: center;
  color: #64748b;
  font-style: italic;
  margin-top: 1.5rem;
}

/* Print styles */
@media print {
  .terms-page-container {
    background: white;
    padding: 0;
  }
  
  .terms-acceptance,
  .terms-actions,
  .price-toggle-container {
    display: none;
  }
  
  .terms-navigation {
    background: white;
    border: 1px solid #e2e8f0;
  }
  
  .terms-section {
    page-break-inside: avoid;
  }
  
  .pricing-table {
    grid-template-columns: 1fr;
  }
}
