/* style/privacy-policy.css */

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

.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--bg-dark); /* Assume body bg is dark */
}

.page-privacy-policy__hero-section {
  position: relative;
  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-color);
  text-align: center;
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width on larger screens */
  margin-bottom: 30px;
}

.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;
  color: var(--text-main);
}

.page-privacy-policy__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em); /* Responsive H1 font size */
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

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

.page-privacy-policy__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-main);
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

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

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

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

.page-privacy-policy__heading {
  font-size: 2.2em;
  color: var(--gold-color);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
}

.page-privacy-policy__sub-heading {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-privacy-policy p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

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

.page-privacy-policy__list li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

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

.page-privacy-policy a {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

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

.page-privacy-policy__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  max-width: 800px; /* Example max-width for content images */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  background-color: var(--card-bg);
  padding: 60px 0;
}

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

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: var(--primary-color);
  color: var(--text-main);
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 8px;
  list-style: none; /* For details/summary */
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  user-select: none; /* Disable text selection */
}

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

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

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

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle, /* For JS-driven div accordion */
.page-privacy-policy__faq-item details[open] .page-privacy-policy__faq-toggle /* For native details tag */ {
  transform: rotate(45deg);
}

.page-privacy-policy__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.7;
  /* For JS-driven div accordion */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to show content */
  padding-top: 15px;
}

/* For native details tag, answer is visible by default when open */
.page-privacy-policy__faq-item details[open] .page-privacy-policy__faq-answer {
  max-height: none;
  padding-top: 15px;
}

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

  .page-privacy-policy__main-title {
    font-size: clamp(1.8em, 4.5vw, 2.5em);
  }

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

  .page-privacy-policy__sub-heading {
    font-size: 1.4em;
  }

  .page-privacy-policy__cta-button {
    padding: 12px 24px;
    font-size: 1em;
  }

  .page-privacy-policy__section {
    padding: 40px 0;
  }
}

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

  .page-privacy-policy__hero-section {
    padding: 30px 15px;
  }

  .page-privacy-policy__main-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

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

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

  .page-privacy-policy__sub-heading {
    font-size: 1.2em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .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-left: 15px;
    padding-right: 15px;
  }
  
  .page-privacy-policy__image,
  .page-privacy-policy__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-privacy-policy__container,
  .page-privacy-policy__hero-image-wrapper {
    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-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-privacy-policy__faq-answer {
    padding: 0 20px 15px;
  }
  
  /* Ensure no overlap with fixed header for hero/first sections */
  .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: clamp(1.3em, 8vw, 1.8em);
  }
  .page-privacy-policy__heading {
    font-size: 1.4em;
  }
  .page-privacy-policy__sub-heading {
    font-size: 1.1em;
  }
}