/* style/privacy-policy.css */

/* Base Styles for the Privacy Policy Page */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-dark, #0d0d0d); /* Inherit from shared, assume dark background */
}

/* Ensure main content area has correct padding-top to avoid header overlap */
.page-content.page-privacy-policy {
  padding-top: var(--header-offset, 120px); /* Apply header offset */
}

/* Section Styles */
.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden; /* Ensure no overflow for image */
  background-color: #26A9E0; /* Primary brand color for hero */
  color: #ffffff;
}

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

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

.page-privacy-policy__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-privacy-policy__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.2; /* Subtle background image */
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the wrapper area */
  filter: none; /* No filter, keep original color */
}

.page-privacy-policy__content-area {
  padding: 60px 20px;
}

.page-privacy-policy__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-privacy-policy__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
}

.page-privacy-policy__sub-title {
  font-size: 1.6em;
  margin-top: 40px;
  margin-bottom: 20px;
}

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

.page-privacy-policy__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  filter: none; /* No filter, keep original color */
}

/* List Styles */
.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-privacy-policy__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-privacy-policy__nested-list {
  list-style-type: circle;
  margin-left: 20px;
  margin-top: 10px;
}

.page-privacy-policy__nested-list-item {
  margin-bottom: 5px;
}

/* Button Styles */
.page-privacy-policy__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-privacy-policy__btn-primary:hover {
  background-color: #d16b06;
  transform: translateY(-2px);
}

/* Contact List Styles */
.page-privacy-policy__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-privacy-policy__contact-item {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-privacy-policy__contact-link {
  color: #26A9E0; /* Primary brand color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-privacy-policy__contact-link:hover {
  color: #1a7bb0;
  text-decoration: underline;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  padding: 60px 20px;
}

.page-privacy-policy__faq-list {
  margin-top: 40px;
}

.page-privacy-policy__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-privacy-policy__faq-item summary {
  list-style: none; /* Hide default marker for details tag */
}

.page-privacy-policy__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-privacy-policy__faq-question:hover {
  background-color: #f0f0f0;
}

.page-privacy-policy__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  color: #26A9E0;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-question {
  background-color: #eaf7fc; /* Lighter blue for open state */
  border-bottom: 1px solid #26A9E0;
}

.page-privacy-policy__faq-answer {
  padding: 20px 25px;
  font-size: 1.1em;
  color: #555555;
  background-color: #ffffff;
}

/* Color Contrast Safeguards */
.page-privacy-policy__dark-section {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff; /* White text for dark background */
}

.page-privacy-policy__dark-section .page-privacy-policy__section-title,
.page-privacy-policy__dark-section .page-privacy-policy__sub-title {
  color: #ffffff;
}

.page-privacy-policy__dark-section .page-privacy-policy__contact-link {
  color: #ffffff; /* White links on dark background */
}

.page-privacy-policy__dark-section .page-privacy-policy__contact-link:hover {
  color: #f0f0f0;
  text-decoration: underline;
}

.page-privacy-policy__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for light background */
}

.page-privacy-policy__light-bg .page-privacy-policy__section-title,
.page-privacy-policy__light-bg .page-privacy-policy__sub-title {
  color: #000000;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-content.page-privacy-policy {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-privacy-policy__hero-section {
    padding: 60px 15px;
  }

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

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

  .page-privacy-policy__cta-button {
    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__hero-content,
  .page-privacy-policy__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-privacy-policy__content-area,
  .page-privacy-policy__faq-section {
    padding: 40px 0; /* Adjust padding for mobile, container handles inner padding */
  }

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

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

  .page-privacy-policy p,
  .page-privacy-policy li,
  .page-privacy-policy__faq-answer {
    font-size: 1em;
  }

  /* Responsive Images */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Ensure image containers do not cause overflow */
  .page-privacy-policy__hero-image-wrapper,
  .page-privacy-policy__image-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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