/* 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; /* Inherit from body or shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  background-color: #017439; /* Brand color background for hero */
  color: #ffffff;
  overflow: hidden;
}

.page-privacy-policy__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

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

.page-privacy-policy__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.8;
}

.page-privacy-policy__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-privacy-policy__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.15; /* Subtle background image */
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%); /* Make it monochrome to blend */
}


/* General Content Area */
.page-privacy-policy__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff; /* White background for content area */
  color: #333333; /* Dark text for white background */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.page-privacy-policy__section-title {
  font-size: 2em;
  color: #017439; /* Brand color for main section titles */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-privacy-policy__list li {
  margin-bottom: 10px;
}

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

.page-privacy-policy a {
  color: #017439; /* Brand color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
  color: #004d2b;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  background-color: #017439; /* Dark background for FAQ */
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.page-privacy-policy__faq-section .page-privacy-policy__section-title {
  color: #ffffff; /* White title on dark background */
  margin-bottom: 40px;
}

.page-privacy-policy__faq-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-privacy-policy__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.page-privacy-policy__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-privacy-policy__faq-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.1em;
  flex-grow: 1;
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  transform: rotate(45deg);
}

.page-privacy-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0; /* Light text for answer */
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 20px;
}

/* CTA Section */
.page-privacy-policy__cta-section {
  background-color: #017439; /* Brand color background */
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 8px;
  max-width: 1000px;
  margin: 40px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__cta-section .page-privacy-policy__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-privacy-policy__main-title {
    font-size: 2.2em;
  }
  .page-privacy-policy__description {
    font-size: 1em;
  }
  .page-privacy-policy__section-title {
    font-size: 1.8em;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.3em;
  }
  .page-privacy-policy__text-block,
  .page-privacy-policy__list li,
  .page-privacy-policy__faq-question {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
  }

  .page-privacy-policy__hero-section {
    padding: 60px 15px;
  }
  
  .page-privacy-policy__main-title {
    font-size: 2em;
    line-height: 1.3;
  }
  .page-privacy-policy__description {
    font-size: 0.95em;
  }
  .page-privacy-policy__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-privacy-policy__content-area,
  .page-privacy-policy__faq-section,
  .page-privacy-policy__cta-section {
    padding: 30px 15px;
    margin-left: 15px;
    margin-right: 15px;
    max-width: calc(100% - 30px) !important; /* Adjust for padding */
    width: 100% !important; /* Allow auto width within max-width */
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-privacy-policy__section-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-privacy-policy__sub-title {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-privacy-policy__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure all image containers also adapt */
  .page-privacy-policy__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* FAQ specific mobile adjustments */
  .page-privacy-policy__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-privacy-policy__faq-title {
    font-size: 1em;
  }

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

  .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    padding: 10px 20px 15px;
  }
}

/* Ensure no image filters are used */
.page-privacy-policy img {
  filter: none !important;
}

/* Specific contrast fix for dark background sections */
.page-privacy-policy__dark-bg {
  background: #017439;
  color: #ffffff;
}

.page-privacy-policy__light-bg {
  background: #ffffff;
  color: #333333;
}