/* style/privacy-policy.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --bg-dark-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Default text color for the page content */
  background-color: var(--bg-dark-color); /* Ensure content area matches body bg */
}

.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
  background-color: var(--deep-green-color); /* Dark background for hero */
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  max-width: 1200px; /* Limit image width */
  margin: 0 auto;
}

.page-privacy-policy__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  z-index: 1; /* Ensure text is above any background elements */
}

.page-privacy-policy__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  color: var(--text-main-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-privacy-policy__lead-text {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-privacy-policy__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  margin-right: 15px;
}

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

.page-privacy-policy__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-privacy-policy__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.page-privacy-policy__section {
  padding: 60px 20px;
  border-bottom: 1px solid var(--divider-color);
}

.page-privacy-policy__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-privacy-policy__content-area {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--bg-dark-color); /* Ensure content area matches body bg */
}

.page-privacy-policy__dark-section {
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
}

.page-privacy-policy__text-block {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-privacy-policy__list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-privacy-policy__list li strong {
  color: var(--text-main-color);
}

.page-privacy-policy__image-text-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-privacy-policy__content-image {
  flex: 1 1 400px;
  min-width: 200px; /* Minimum size requirement */
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-privacy-policy__text-content {
  flex: 1 1 400px;
  min-width: 200px; /* Minimum size requirement */
}

.page-privacy-policy__text-content p {
  color: var(--text-secondary-color);
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-privacy-policy__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.page-privacy-policy__card {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-color);
  color: var(--text-main-color); /* Ensure light text on dark card */
}

.page-privacy-policy__card.page-privacy-policy__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text on light card */
  border: 1px solid #e0e0e0;
}

.page-privacy-policy__card-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-privacy-policy__card.page-privacy-policy__light-bg .page-privacy-policy__card-title {
  color: var(--deep-green-color); /* Darker green for titles on light card */
}

.page-privacy-policy__card-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-secondary-color);
}

.page-privacy-policy__card.page-privacy-policy__light-bg .page-privacy-policy__card-text {
  color: #555555; /* Darker text for content on light card */
}

.page-privacy-policy__cookie-management a {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-privacy-policy__cookie-management a:hover {
  color: var(--glow-color);
}

.page-privacy-policy__last-updated {
  text-align: center;
  font-size: 0.9em;
  color: var(--text-secondary-color);
  margin-top: 30px;
}

.page-privacy-policy__faq-section {
  background-color: var(--bg-dark-color);
}

.page-privacy-policy__faq-list {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 40px;
}

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

.page-privacy-policy__faq-item details > summary {
  list-style: none;
}

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

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

.page-privacy-policy__faq-question:hover {
  background-color: var(--primary-color);
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold-color);
}

.page-privacy-policy__faq-answer {
  padding: 20px 25px;
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-secondary-color);
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px; /* Sufficiently large to show content */
  transition: max-height 0.5s ease-in-out;
}

.page-privacy-policy__faq-item:not(.active) .page-privacy-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  content: '−';
}

.page-privacy-policy__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--deep-green-color);
}

.page-privacy-policy__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-privacy-policy__hero-section {
    padding: 10px 15px 50px;
  }

  .page-privacy-policy__section {
    padding: 50px 15px;
  }

  .page-privacy-policy__image-text-block {
    flex-direction: column;
    text-align: center;
  }

  .page-privacy-policy__image-text-block.reverse {
    flex-direction: column;
  }

  .page-privacy-policy__text-content {
    text-align: left;
  }

  .page-privacy-policy__content-image {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__main-title {
    font-size: 2em; /* Smaller on mobile */
  }

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

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

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

  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-privacy-policy__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-privacy-policy__card-grid {
    grid-template-columns: 1fr;
  }

  .page-privacy-policy__section,
  .page-privacy-policy__content-area,
  .page-privacy-policy__dark-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile image responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  /* Ensure content area images are not smaller than 200px (CSS) */
  .page-privacy-policy__content-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

@media (max-width: 480px) {
  .page-privacy-policy__main-title {
    font-size: 1.8em;
  }

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

  .page-privacy-policy__list {
    margin-left: 15px;
  }

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

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