/* General styles for the privacy policy page */
.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-secondary); /* Default text color, will be overridden by specific sections */
  background-color: var(--bg-color); /* Main background from shared.css */
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  background-color: var(--deep-green); /* Example dark background for hero */
  color: var(--text-main);
  text-align: center;
  overflow: hidden; /* Ensure no overflow from image */
}

.page-privacy-policy__hero-image-container {
  width: 100%;
  max-width: 1920px; /* Max width for the image container */
  margin-bottom: 20px;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative; /* Ensure content is above any potential background layering issues */
  z-index: 2; /* Make sure text is always on top */
}

.page-privacy-policy__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-privacy-policy__description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Section General Styles */
.page-privacy-policy__section {
  padding: 50px 20px;
  background-color: var(--bg-color);
  color: var(--text-secondary);
}

.page-privacy-policy__section.page-privacy-policy__dark-bg {
  background-color: var(--card-bg); /* Darker background for contrast sections */
  color: var(--text-main);
}

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

.page-privacy-policy__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-privacy-policy__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--glow);
  border-radius: 2px;
}

.page-privacy-policy__text-block {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  text-align: justify;
}

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

.page-privacy-policy__list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__list-item .page-privacy-policy__list-title {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-privacy-policy__list-item .page-privacy-policy__list-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  text-align: justify;
}

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

/* Call to Action Buttons */
.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-privacy-policy__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 2px solid var(--border);
  box-shadow: none;
}

.page-privacy-policy__btn-secondary:hover {
  background-color: var(--border);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__cta-section {
  text-align: center;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-privacy-policy__cta-text {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0;
}

/* Final CTA Section */
.page-privacy-policy__final-cta-section {
  padding: 60px 20px;
  background-color: var(--card-bg);
  text-align: center;
  color: var(--text-main);
}

.page-privacy-policy__final-cta-section .page-privacy-policy__section-title {
  color: var(--text-main);
}

.page-privacy-policy__final-cta-section .page-privacy-policy__description {
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.page-privacy-policy__flex-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-privacy-policy__button-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  padding: 50px 20px;
  background-color: var(--bg-color);
  color: var(--text-secondary);
}

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

.page-privacy-policy__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--card-bg);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

.page-privacy-policy__faq-item[open] > .page-privacy-policy__faq-question {
  background-color: var(--deep-green); /* Darker on open */
  border-bottom-color: var(--divider);
}

.page-privacy-policy__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

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

.page-privacy-policy__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--glow);
  margin-left: 15px;
}

.page-privacy-policy__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: justify;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-privacy-policy__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-privacy-policy__section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }
  .page-privacy-policy__hero-content {
    padding: 0 10px;
  }
  .page-privacy-policy__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-privacy-policy__description {
    font-size: 1rem;
  }
  .page-privacy-policy__section {
    padding: 40px 15px;
  }
  .page-privacy-policy__container {
    padding: 0 10px;
  }
  .page-privacy-policy__section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  .page-privacy-policy__text-block {
    font-size: 0.95rem;
  }
  .page-privacy-policy__list-item {
    padding: 15px;
  }
  .page-privacy-policy__list-item .page-privacy-policy__list-title {
    font-size: 1.1rem;
  }
  .page-privacy-policy__list-item .page-privacy-policy__list-text {
    font-size: 0.9rem;
  }

  /* Mobile image responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container,
  .page-privacy-policy__hero-section,
  .page-privacy-policy__intro-section,
  .page-privacy-policy__faq-section,
  .page-privacy-policy__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsiveness */
  .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;
    padding-left: 15px; /* Add padding for better look on mobile */
    padding-right: 15px; /* Add padding for better look on mobile */
  }
  
  .page-privacy-policy__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }
  .page-privacy-policy__cta-section {
    flex-direction: column;
    gap: 15px;
  }
  .page-privacy-policy__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-privacy-policy__faq-answer {
    padding: 0 15px 15px 15px;
  }
}

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

/* Ensure contrast for text on various backgrounds */
.page-privacy-policy {
  color: var(--text-secondary); /* Default for general text */
  background-color: var(--bg-color);
}

.page-privacy-policy__section-title,
.page-privacy-policy__main-title {
  color: var(--text-main);
}

.page-privacy-policy__list-item {
  background-color: var(--card-bg);
  border-color: var(--border);
}

.page-privacy-policy__list-item .page-privacy-policy__list-title {
  color: var(--text-main);
}

.page-privacy-policy__list-item .page-privacy-policy__list-text {
  color: var(--text-secondary);
}

.page-privacy-policy__faq-item {
  background-color: var(--card-bg);
  border-color: var(--border);
}

.page-privacy-policy__faq-question {
  color: var(--text-main);
  background-color: var(--card-bg);
}

.page-privacy-policy__faq-item[open] > .page-privacy-policy__faq-question {
  background-color: var(--deep-green); /* Darker on open */
}

.page-privacy-policy__faq-toggle {
  color: var(--glow);
}

.page-privacy-policy__faq-answer {
  color: var(--text-secondary);
}

.page-privacy-policy__cta-section {
  border-top-color: var(--divider);
}

.page-privacy-policy__cta-text {
  color: var(--text-main);
}

.page-privacy-policy__final-cta-section {
  background-color: var(--card-bg);
}

.page-privacy-policy__final-cta-section .page-privacy-policy__section-title {
  color: var(--text-main);
}

.page-privacy-policy__final-cta-section .page-privacy-policy__description {
  color: var(--text-secondary);
}