/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background-color: var(--bg-page, #F5F7FA); /* Background */
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: 675px; /* Default height for hero images */
  object-fit: cover;
  display: block;
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.95); /* Semi-transparent white background for text */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: -150px; /* Overlap with image slightly for visual effect */
}

.page-privacy-policy__main-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #E53935; /* Primary brand color */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-privacy-policy__intro-text {
  font-size: 1.1em;
  color: #333333; /* Text Main */
  margin-bottom: 25px;
}

/* General Content Area */
.page-privacy-policy__content-area {
  padding: 40px 0;
  margin-bottom: 20px;
}

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

.page-privacy-policy__section-title {
  font-size: 2em;
  color: #E53935; /* Primary brand color */
  margin-bottom: 25px;
  text-align: center;
}

.page-privacy-policy__paragraph {
  margin-bottom: 15px;
  color: #333333; /* Text Main */
  font-size: 1.05em;
}

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

.page-privacy-policy__list li {
  margin-bottom: 10px;
  color: #333333; /* Text Main */
}

.page-privacy-policy__list li strong {
  color: #E53935;
}

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

.page-privacy-policy__link {
  color: #E53935;
  text-decoration: underline;
}

.page-privacy-policy__link:hover {
  color: #FF5A4F;
}

/* CTA Button */
.page-privacy-policy__cta-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-privacy-policy__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Dark Background Section for contrast */
.page-privacy-policy__dark-bg {
  background-color: #E53935;
  color: #ffffff; /* White text for dark background */
}

.page-privacy-policy__dark-bg .page-privacy-policy__section-title,
.page-privacy-policy__dark-bg .page-privacy-policy__paragraph,
.page-privacy-policy__dark-bg .page-privacy-policy__list li,
.page-privacy-policy__dark-bg .page-privacy-policy__list li strong {
  color: #ffffff;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  padding: 40px 0;
  margin-bottom: 20px;
}

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

details.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0; /* Border color */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
}

details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question::-webkit-details-marker {
  display: none;
}

details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question:hover {
  background: #f5f5f5;
}

.page-privacy-policy__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Text Main */
}

.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E53935; /* Primary brand color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Text Main */
}

/* Contact Section */
.page-privacy-policy__contact-section {
  padding: 60px 0;
  text-align: center;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-privacy-policy__hero-image {
    height: 500px;
  }

  .page-privacy-policy__hero-content {
    margin-top: -100px;
    padding: 25px 15px;
  }

  .page-privacy-policy__main-title {
    font-size: 2.2em;
  }

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

  .page-privacy-policy__cta-button {
    padding: 10px 20px;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-privacy-policy {
    font-size: 15px;
    line-height: 1.5;
  }
  
  /* Hero Section */
  .page-privacy-policy__hero-section {
    padding-top: 10px; /* Rely on body for header offset */
    margin-bottom: 30px;
  }

  .page-privacy-policy__hero-image {
    height: 300px !important; /* Banner */
    object-fit: contain !important; /* Banner */
  }

  .page-privacy-policy__hero-content {
    margin-top: -80px;
    padding: 20px 15px;
  }

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

  .page-privacy-policy__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Content Area */
  .page-privacy-policy__content-area {
    padding: 30px 0;
  }

  .page-privacy-policy__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  /* CTA Button responsive */
  .page-privacy-policy__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important; /* Adjust padding for smaller screens */
  }

  /* FAQ Section */
  details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
    padding: 15px;
  }
  .page-privacy-policy__faq-qtext {
    font-size: 15px;
  }
  .page-privacy-policy__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
    padding: 0 15px 15px;
  }

  /* Placeholder for __access-links, __category-lobby, __blog-slider (if they were on this page) */
  /* .page-privacy-policy__access-links - not applicable to privacy policy, but included for completeness as per checklist */
  /* .page-privacy-policy__access-links { display: flex; flex-direction: column; gap: 10px; padding: 0 15px; } */
  /* .page-privacy-policy__access-link-item { max-width: 100% !important; width: 100% !important; box-sizing: border-box !important; } */

  /* .page-privacy-policy__category-lobby - not applicable to privacy policy, but included for completeness as per checklist */
  /* .page-privacy-policy__category-lobby__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; padding: 0 15px; } */
  /* .page-privacy-policy__category-card-link { aspect-ratio: 1/1 !important; border: none !important; box-shadow: none !important; } */
  /* .page-privacy-policy__category-card-link img { aspect-ratio: 1/1 !important; width: 100% !important; object-fit: contain !important; border: none !important; box-shadow: none !important; } */

  /* .page-privacy-policy__blog-slider - not applicable to privacy policy, but included for completeness as per checklist */
  /* .page-privacy-policy__blog-slider-track { scroll-snap-type: x mandatory; overflow-x: scroll; display: flex; } */
  /* .page-privacy-policy__post-item { flex: 0 0 calc(100% - 30px); margin-right: 15px; scroll-snap-align: start; } */
  /* .page-privacy-policy__blog-slider-controls { display: flex; justify-content: center; margin-top: 20px; } */

  /* Ensure all containers and elements handle padding and width correctly */
  .page-privacy-policy__contact-section .page-privacy-policy__container {
    padding: 0 15px;
  }
}