/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Fallback to Text Main: #F2FFF6 */
  background-color: var(--bg-color); /* From shared.css, expected to be #08160F */
}

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

.page-privacy-policy__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider); /* #1E3A2A */
}

.page-privacy-policy__section:last-of-type {
  border-bottom: none;
}

.page-privacy-policy__section-title {
  font-size: 2.5em;
  color: var(--text-main); /* #F2FFF6 */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-privacy-policy__sub-title {
  font-size: 1.5em;
  color: var(--text-main); /* #F2FFF6 */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-privacy-policy__text-block {
  margin-bottom: 15px;
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-privacy-policy__text-block a {
  color: var(--glow); /* #57E38D */
  text-decoration: underline;
}

.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-secondary); /* #A7D9B8 */
}

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

.page-privacy-policy__list-item strong {
  color: var(--text-main); /* #F2FFF6 */
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* As required, small top padding */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for large screens */
  margin-bottom: 30px;
  position: relative;
  z-index: 0; /* Ensure image is behind text if any positioning issues */
}

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

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 1; /* Ensure text is above image */
  max-width: 800px;
  padding: 20px;
  background: var(--card-bg); /* #11271B */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin-top: -80px; /* Pull content up slightly over the image, but not covering it */
}

.page-privacy-policy__main-title {
  font-weight: bold;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 20px;
  line-height: 1.2;
  /* No fixed font-size for H1 as per rules */
}

.page-privacy-policy__description {
  font-size: 1.1em;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
}

.page-privacy-policy__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-privacy-policy__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Image content row for sections with image and text side-by-side */
.page-privacy-policy__image-content-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
}

.page-privacy-policy__image-content-row--reverse {
  flex-direction: row-reverse;
}

.page-privacy-policy__image-wrapper {
  flex: 1;
  min-width: 200px; /* Minimum image size */
  box-sizing: border-box;
}

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

.page-privacy-policy__text-column {
  flex: 1;
  min-width: 300px;
}

/* Contact section specific styles */
.page-privacy-policy__contact-details {
  background: var(--card-bg); /* #11271B */
  padding: 30px;
  border-radius: 10px;
  margin-top: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__contact-item {
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 10px;
}

.page-privacy-policy__contact-item strong {
  color: var(--text-main); /* #F2FFF6 */
}

.page-privacy-policy__contact-item a {
  color: var(--glow); /* #57E38D */
  text-decoration: underline;
}

.page-privacy-policy__image-wrapper--contact {
  margin-top: 40px;
}

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

.page-privacy-policy__faq-item {
  background: var(--card-bg); /* #11271B */
  border: 1px solid var(--border); /* #2E7A4E */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-main); /* #F2FFF6 */
  font-size: 1.1em;
  background: var(--deep-green); /* #0A4B2C */
  border-bottom: 1px solid var(--border); /* #2E7A4E */
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-question {
  border-bottom: 1px solid transparent; /* No border when open, or different style */
}

.page-privacy-policy__faq-qtext {
  flex-grow: 1;
  padding-right: 10px;
}

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

.page-privacy-policy__faq-answer {
  padding: 0 20px;
  color: var(--text-secondary); /* #A7D9B8 */
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px;
}

/* Fallback for non-details FAQ, handled by JS */
.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* Large enough for any content */
  padding: 20px !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-privacy-policy__section-title {
    font-size: 2em;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.3em;
  }
  .page-privacy-policy__image-content-row {
    flex-direction: column;
    align-items: center;
  }
  .page-privacy-policy__text-column,
  .page-privacy-policy__image-wrapper {
    width: 100%;
    max-width: 600px; /* Constrain width for columns on smaller screens */
  }
  .page-privacy-policy__hero-content {
    margin-top: -50px;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-privacy-policy__container {
    padding: 0 15px;
  }
  .page-privacy-policy__section {
    padding: 40px 0;
  }
  .page-privacy-policy__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.2em;
  }
  .page-privacy-policy__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles header offset */
  }
  .page-privacy-policy__hero-content {
    margin-top: -30px;
    padding: 15px;
  }
  .page-privacy-policy__main-title {
    /* No fixed font-size for H1, relying on responsive scaling */
    margin-bottom: 15px;
  }
  .page-privacy-policy__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-privacy-policy__cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile image responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-privacy-policy__image-wrapper,
  .page-privacy-policy__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Ensure all containers with images are responsive */
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Buttons in general */
  .page-privacy-policy__cta-button,
  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary,
  .page-privacy-policy a[class*="button"],
  .page-privacy-policy a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-privacy-policy__cta-buttons,
  .page-privacy-policy__button-group,
  .page-privacy-policy__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-privacy-policy__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical stacking */
  }

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