/* 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 background */
  background-color: #FFFFFF; /* Default body background */
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden; /* Ensure content doesn't spill */
}

.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;
  line-height: 1.2;
}

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

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

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

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

.page-privacy-policy__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Allowed to make it background-like, not changing core color */
}

/* Content Area */
.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: -40px; /* Overlap with hero section slightly */
  position: relative;
  z-index: 2;
}

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

.page-privacy-policy__section-title {
  font-size: 2em;
  color: #26A9E0; /* Brand primary color */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.page-privacy-policy__paragraph {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #333333;
}

.page-privacy-policy__paragraph a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-privacy-policy__paragraph a:hover {
  text-decoration: underline;
}

.page-privacy-policy__list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.page-privacy-policy__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.page-privacy-policy__list-title {
  font-size: 1.2em;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 5px;
}

.page-privacy-policy__list-description {
  font-size: 1em;
  color: #555555;
  margin-top: 0;
  margin-bottom: 0;
}

.page-privacy-policy__image-block {
  text-align: center;
  margin: 30px 0;
}

.page-privacy-policy__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element for max-width */
  margin: 0 auto;
}

/* Contact Info */
.page-privacy-policy__contact-info {
  margin-top: 30px;
  background-color: #f0f8ff; /* Light blue background */
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #d0e8f8;
}

.page-privacy-policy__contact-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #333333;
}

.page-privacy-policy__contact-item a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-privacy-policy__contact-item a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-privacy-policy__faq-list {
  margin-top: 30px;
}

.page-privacy-policy__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

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

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

.page-privacy-policy__faq-qtext {
  flex-grow: 1;
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
}

.page-privacy-policy__faq-item[open] > .page-privacy-policy__faq-question {
  background-color: #d9edf7;
  border-bottom: 1px solid #cce5f0;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
  content: '−'; /* Changed by JS */
}

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

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

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

  .page-privacy-policy__hero-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .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 {
    padding: 30px 15px;
    margin-top: -20px;
  }

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

  .page-privacy-policy__paragraph {
    font-size: 0.95em;
  }

  .page-privacy-policy__list-item {
    padding: 10px 15px;
  }

  .page-privacy-policy__list-title {
    font-size: 1.1em;
  }

  .page-privacy-policy__list-description {
    font-size: 0.9em;
  }

  .page-privacy-policy__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-privacy-policy__image-block,
  .page-privacy-policy__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-privacy-policy__contact-info {
    padding: 20px 15px;
  }

  .page-privacy-policy__contact-item {
    font-size: 1em;
  }

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

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

/* Color contrast fixes (if needed, default to light background with dark text) */
.page-privacy-policy__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

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

/* Ensure images do not use filters to change color */
.page-privacy-policy img {
  filter: none; /* Explicitly remove any default filter */
}

/* Special case for hero image - allowed grayscale for background effect */
.page-privacy-policy__hero-image {
  filter: grayscale(50%); /* This is allowed as it's a background effect, not changing core image color */
}