/* style/privacy-policy.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-white: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
}

.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--background-white);
}

.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-privacy-policy__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-privacy-policy__light-bg {
  background-color: var(--background-white);
  color: var(--text-dark);
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

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

.page-privacy-policy__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em); /* Use clamp for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-privacy-policy__subtitle {
  font-size: clamp(1em, 1.8vw, 1.2em);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

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

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

.page-privacy-policy__section-title {
  font-size: clamp(1.8em, 2.5vw, 2.2em);
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: left;
}

.page-privacy-policy__sub-title {
  font-size: clamp(1.4em, 2vw, 1.8em);
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.page-privacy-policy__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--text-dark);
}

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

.page-privacy-policy__list-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-privacy-policy__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 800px; /* Ensure content images are not excessively wide */
  min-width: 200px; /* Minimum size requirement */
}

.page-privacy-policy__link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

.page-privacy-policy__link:hover {
  color: var(--login-color);
  text-decoration: none;
}

.page-privacy-policy__faq-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

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

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

.page-privacy-policy__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.15em;
  color: var(--text-dark);
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-privacy-policy__faq-qtext {
  flex-grow: 1;
  color: var(--text-dark);
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-privacy-policy__faq-item[open] > summary .page-privacy-policy__faq-toggle {
  content: '−';
}

.page-privacy-policy__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-dark);
  background-color: var(--background-white);
}

.page-privacy-policy__faq-answer p {
  margin-bottom: 0;
}

.page-privacy-policy__cta-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: var(--text-dark);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-privacy-policy__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-privacy-policy__main-title {
    font-size: 2em; /* Adjusted for mobile readability */
  }

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

  .page-privacy-policy__content-area,
  .page-privacy-policy__faq-section {
    padding: 20px 15px;
  }

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

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

  .page-privacy-policy__text-block,
  .page-privacy-policy__list-item,
  .page-privacy-policy__faq-item summary,
  .page-privacy-policy__faq-answer {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .page-privacy-policy__hero-image-wrapper,
  .page-privacy-policy__container,
  .page-privacy-policy__content-area,
  .page-privacy-policy__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

  .page-privacy-policy__faq-toggle {
    font-size: 1.2em;
  }
}