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

.page-privacy-policy {
  color: var(--dn88-text-main); /* Light text on dark background */
  background-color: var(--dn88-background-color);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom for overall page */
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: var(--dn88-deep-green-color);
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-height: 400px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensure image covers the area without distortion */
  filter: brightness(0.7); /* Slightly darken image for better text readability */
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 20px;
  padding: 0 20px;
}

.page-privacy-policy__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  color: var(--dn88-gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-privacy-policy__description {
  font-size: 18px;
  color: var(--dn88-text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* Content Area */
.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--dn88-background-color); /* Ensure content background is consistent */
}

.page-privacy-policy__section-title {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--dn88-gold-color);
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-privacy-policy__sub-title {
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--dn88-primary-color);
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: 500;
}

.page-privacy-policy__text-block p,
.page-privacy-policy__faq-answer p {
  margin-bottom: 1em;
  color: var(--dn88-text-main);
  font-size: 16px;
}

.page-privacy-policy__list,
.page-privacy-policy__contact-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 1em;
  color: var(--dn88-text-main);
}

.page-privacy-policy__list li,
.page-privacy-policy__contact-list li {
  margin-bottom: 0.5em;
  font-size: 16px;
}

.page-privacy-policy__list strong {
  color: var(--dn88-gold-color);
}

.page-privacy-policy__link {
  color: var(--dn88-secondary-color);
  text-decoration: underline;
}

.page-privacy-policy__link:hover {
  color: var(--dn88-gold-color);
}

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

.page-privacy-policy__last-updated {
  text-align: right;
  font-style: italic;
  color: var(--dn88-text-secondary);
  margin-top: 40px;
  font-size: 14px;
}

/* Buttons */
.page-privacy-policy__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--dn88-button-gradient);
  color: var(--dn88-text-main);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* For mobile button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-privacy-policy__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--dn88-glow-color);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: var(--dn88-card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: var(--dn88-card-bg);
  color: var(--dn88-text-main);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-question {
  background-color: var(--dn88-deep-green-color);
}

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

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

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

.page-privacy-policy__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--dn88-gold-color);
  transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or '-' */
}

.page-privacy-policy__faq-answer {
  padding: 0 25px 20px;
  color: var(--dn88-text-secondary);
  font-size: 16px;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-answer {
  max-height: 500px; /* Adjust as needed for content length */
  transition: max-height 0.5s ease-in;
}

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

  .page-privacy-policy__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px;
  }

  .page-privacy-policy__hero-content {
    margin-top: 15px;
    padding: 0 15px;
  }

  .page-privacy-policy__main-title {
    font-size: 28px !important;
  }

  .page-privacy-policy__description {
    font-size: 15px;
  }

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

  .page-privacy-policy__section-title {
    font-size: 24px !important;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-privacy-policy__sub-title {
    font-size: 20px !important;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-privacy-policy__text-block p,
  .page-privacy-policy__list li,
  .page-privacy-policy__contact-list li,
  .page-privacy-policy__faq-answer p {
    font-size: 15px;
  }

  .page-privacy-policy__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 20px auto !important;
    box-sizing: border-box !important;
  }

  /* Buttons responsiveness */
  .page-privacy-policy__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important; /* Adjust padding for smaller screens */
    text-align: center;
  }

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

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