/* style/privacy-policy.css */

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

.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  color: var(--vando88-text-main); /* Default text color for the page */
  background-color: var(--vando88-background); /* Default background for the page */
}

.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px; /* Adjusted padding, body handles header offset */
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: var(--vando88-deep-green);
  overflow: hidden;
}

.page-privacy-policy__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

.page-privacy-policy__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--vando88-text-main);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

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

.page-privacy-policy__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-privacy-policy__btn-primary {
  background: var(--vando88-button-gradient);
  color: var(--vando88-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-privacy-policy__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

.page-privacy-policy__btn-secondary:hover {
  background-color: var(--vando88-green-secondary);
  color: var(--vando88-background);
  transform: translateY(-3px);
}

.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--vando88-background); /* Explicitly set content area background */
  color: var(--vando88-text-main); /* Explicitly set content area text color */
  box-sizing: border-box;
}

.page-privacy-policy__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-privacy-policy__section-title {
  font-size: 2.2rem;
  color: var(--vando88-green-secondary);
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: 700;
  border-bottom: 2px solid var(--vando88-divider);
  padding-bottom: 10px;
}

.page-privacy-policy__sub-title {
  font-size: 1.6rem;
  color: var(--vando88-green-primary);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-privacy-policy p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--vando88-text-main);
}

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

.page-privacy-policy__list-item {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 8px;
  color: var(--vando88-text-secondary);
}

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

.page-privacy-policy__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 30px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-privacy-policy a:hover {
  color: var(--vando88-gold);
  text-decoration: underline;
}

.page-privacy-policy__faq-section {
  background-color: var(--vando88-deep-green);
  padding: 60px 20px;
  color: var(--vando88-text-main);
  box-sizing: border-box;
}

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

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

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--vando88-text-main);
  background-color: var(--vando88-card-bg);
  transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
  background-color: rgba(34, 199, 104, 0.1);
}

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

/* Details element specific styling */
.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-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--vando88-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

/* For <details> native behavior, max-height is not needed but for consistency with JS fallback */
.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-answer {
  max-height: 2000px; /* For <details> native open state */
  padding-top: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, small top padding */
  }

  .page-privacy-policy__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

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

  .page-privacy-policy__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 0.95rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-privacy-policy__content-area,
  .page-privacy-policy__faq-section {
    padding: 40px 15px;
  }

  .page-privacy-policy__container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-privacy-policy__section-title {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-privacy-policy__sub-title {
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-privacy-policy p,
  .page-privacy-policy__list-item {
    font-size: 0.95rem;
    line-height: 1.6;
  }

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

  .page-privacy-policy__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Ensure image containers also adapt */
  .page-privacy-policy__hero-section,
  .page-privacy-policy__content-area,
  .page-privacy-policy__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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