/* Terms and Privacy Page Styles */
body.page-body {
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
}

.page-container {
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.page-content-wrapper {
  max-width: 1200px;
  width: 100%;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 20px 0;
}

.page-header {
  background: linear-gradient(135deg, #185016 0%, #2d7a2d 100%);
  color: white;
  padding: 40px 30px;
  text-align: center;
  border-radius: 12px 12px 0 0;
}

.page-header h1 {
  color: white;
  margin: 0 0 10px 0;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.page-header p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 400;
}

.page-content {
  padding: 40px 30px;
  max-width: none;
}

.page-content section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e5e5e5;
}

.page-content section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.page-content h2 {
  color: #185016;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f5e8;
  position: relative;
}

.page-content h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #185016;
}

.page-content h3 {
  color: #2d7a2d;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 30px 0 15px 0;
}

.page-content h4 {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 25px 0 15px 0;
}

.page-content p {
  margin: 0 0 15px 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

.page-content ul {
  margin: 15px 0;
  padding-left: 0;
}

.page-content li {
  margin: 10px 0;
  padding: 8px 0 8px 30px;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.page-content li::before {
  content: '';
  position: absolute;
  left: 0;
  color: #185016;
  font-size: 0.8rem;
  top: 8px;
}

.page-content strong {
  color: #185016;
  font-weight: 600;
}

.page-content a {
  color: #185016;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.page-content a:hover {
  border-bottom-color: #185016;
  color: #2d7a2d;
}

.page-content time {
  background-color: #f8f9fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  color: #666;
}

/* Enhanced styling for specific sections */
#referrals-commissions {
  background-color: #f8fffe;
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid #185016;
  margin-top: 20px;
}

#contact-terms, #privacy-contact {
  background-color: #f0f8f0;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
  .page-container {
    padding: 10px;
  }
  
  .page-content-wrapper {
    margin: 10px 0;
    border-radius: 8px;
  }
  
  .page-header {
    padding: 30px 20px;
    border-radius: 8px 8px 0 0;
  }
  
  .page-header h1 {
    font-size: 1.8rem;
  }
  
  .page-content {
    padding: 30px 20px;
  }
  
  .page-content h2 {
    font-size: 1.3rem;
  }
  
  .page-content h3 {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.5rem;
  }
  
  .page-content {
    padding: 20px 15px;
  }
  
  .page-content li {
    padding-left: 25px;
  }
}

/* Print styles */
@media print {
  body.page-body {
    background-color: white;
  }
  
  .page-container {
    padding: 0;
  }
  
  .page-content-wrapper {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .page-header {
    background: #185016 !important;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }
}
