/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-privacy-policy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-privacy-policy__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-privacy-policy__hero-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-privacy-policy__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-privacy-policy__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-privacy-policy__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-privacy-policy__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-privacy-policy__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* Content Area */
.page-privacy-policy__content-area {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for content readability */
  color: #333333; /* Dark text for light background */
}

.page-privacy-policy__section-title {
  font-size: 2em;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-privacy-policy__sub-section-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-privacy-policy__text-block {
  margin-bottom: 20px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-privacy-policy__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-privacy-policy__list-item {
  margin-bottom: 10px;
  font-size: 1em;
  line-height: 1.6;
}

.page-privacy-policy__list-item strong {
  color: #26A9E0;
}

.page-privacy-policy__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__content-area a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-privacy-policy__content-area a:hover {
  color: #1a7bb5;
}

/* FAQ Section */
.page-privacy-policy__faq-list {
  margin-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.page-privacy-policy__faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  transition: color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
  color: #26A9E0;
}

.page-privacy-policy__faq-title {
  margin: 0;
  font-size: 1.2em; /* Ensure title size consistency */
  color: inherit; /* Inherit color from parent for hover effect */
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  transform: rotate(0deg); /* No rotation for minus sign */
}

.page-privacy-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px;
}

/* Bottom CTA Section */
.page-privacy-policy__cta-bottom {
  padding: 60px 0;
  text-align: center;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

.page-privacy-policy__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-privacy-policy__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-privacy-policy__hero-title {
    font-size: 2.2em;
  }

  .page-privacy-policy__section-title {
    font-size: 1.8em;
  }

  .page-privacy-policy__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-privacy-policy__hero-title {
    font-size: 1.8em;
  }

  .page-privacy-policy__hero-description,
  .page-privacy-policy__cta-description {
    font-size: 1em;
  }

  .page-privacy-policy__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-privacy-policy__content-area {
    padding: 40px 0;
  }

  .page-privacy-policy__section-title {
    font-size: 1.5em;
  }

  .page-privacy-policy__sub-section-title {
    font-size: 1.3em;
  }

  .page-privacy-policy__faq-question {
    font-size: 1.1em;
    padding: 15px 0;
  }

  .page-privacy-policy__faq-answer {
    padding: 10px 10px;
  }

  .page-privacy-policy__image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 20px auto !important;
  }

  .page-privacy-policy__container {
    padding: 0 15px;
  }

  /* Ensure all containers with images/buttons are responsive */
  .page-privacy-policy__hero-section,
  .page-privacy-policy__content-area,
  .page-privacy-policy__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-privacy-policy p,
  .page-privacy-policy li {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* Color contrast safety for dark body background */
.page-privacy-policy__dark-bg {
  color: #ffffff; /* Deep dark background, so white text */
}

.page-privacy-policy__light-bg {
  color: #333333; /* Light background, so dark text */
}

/* Ensure text in content areas (which are light-bg) are dark */
.page-privacy-policy__content-area p,
.page-privacy-policy__content-area li,
.page-privacy-policy__content-area .page-privacy-policy__faq-question {
  color: #333333;
}

/* Buttons in dark sections */
.page-privacy-policy__hero-section .page-privacy-policy__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-privacy-policy__hero-section .page-privacy-policy__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-privacy-policy__cta-bottom .page-privacy-policy__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

/* Ensure link colors in light background areas are brand color */
.page-privacy-policy__content-area a {
  color: #26A9E0;
}