/* style/privacy-policy.css */

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

/* Base styles for the page content */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  color: var(--man88-text-main); /* Light text on dark background */
  background-color: var(--man88-background); /* Deep green background */
  line-height: 1.6;
}

.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure nothing spills out */
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-privacy-policy__hero-content {
  max-width: 900px;
  padding: 40px 20px 0;
  box-sizing: border-box;
  z-index: 1; /* Ensure content is above any subtle background elements */
  color: var(--man88-text-main);
}

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

.page-privacy-policy__hero-description {
  font-size: 1.2em;
  color: var(--man88-text-secondary);
  margin-bottom: 30px;
}

.page-privacy-policy__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--man88-button-gradient);
  color: #ffffff; /* White text on button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
  min-width: 200px; /* Ensure minimum button size */
  text-align: center;
  box-sizing: border-box;
}

.page-privacy-policy__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--man88-background);
  color: var(--man88-text-main);
}

.page-privacy-policy__section-intro {
  text-align: center;
  margin-bottom: 50px;
}

.page-privacy-policy__section-title {
  font-size: 2.5em;
  color: var(--man88-gold);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-privacy-policy__section-description {
  font-size: 1.1em;
  color: var(--man88-text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.page-privacy-policy__text-block {
  background-color: var(--man88-card-bg); /* Darker card background */
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--man88-border);
}

.page-privacy-policy__sub-title {
  font-size: 2em;
  color: var(--man88-primary-color);
  margin-bottom: 25px;
  font-weight: bold;
}

.page-privacy-policy__heading-four {
  font-size: 1.4em;
  color: var(--man88-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

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

.page-privacy-policy__link {
  color: var(--man88-gold);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-privacy-policy__link:hover {
  color: var(--man88-glow);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-privacy-policy__faq-section .page-privacy-policy__section-title {
  margin-bottom: 40px;
}

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

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--man88-primary-color);
  background-color: var(--man88-deep-green); /* Slightly darker for question header */
  border-bottom: 1px solid var(--man88-divider);
  transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
  background-color: var(--man88-deep-green);
  opacity: 0.9;
}

.page-privacy-policy__faq-qtext {
  flex-grow: 1;
  color: var(--man88-text-main); /* Ensure question text is light */
}

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

.page-privacy-policy__faq-answer {
  padding: 0 20px;
  max-height: 0; /* Default collapsed state for JS fallback, but details handles natively */
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: var(--man88-text-secondary);
}

.page-privacy-policy__faq-item[open] > .page-privacy-policy__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* For details/summary, hide default marker */
.page-privacy-policy__faq-item summary {
  list-style: none;
}
.page-privacy-policy__faq-item summary::-webkit-details-marker {
  display: none;
}


/* CTA Section */
.page-privacy-policy__cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background-color: var(--man88-deep-green); /* Use deep green for CTA background */
  padding: 60px 20px;
  border-radius: 10px;
  margin: 60px auto 0;
  max-width: 1200px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.page-privacy-policy__cta-content {
  max-width: 700px;
}

.page-privacy-policy__cta-title {
  font-size: 2.2em;
  color: var(--man88-gold);
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-privacy-policy__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-privacy-policy__cta-buttons .page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  flex-grow: 1;
  max-width: 280px; /* Max width for individual buttons */
  min-width: 180px; /* Min width for individual buttons */
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-privacy-policy__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--man88-primary-color);
  border: 2px solid var(--man88-primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-privacy-policy__btn-secondary:hover {
  background: var(--man88-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-privacy-policy__cta-image-wrapper {
  width: 100%;
  max-width: 600px; /* Max width for CTA image */
  overflow: hidden;
  box-sizing: border-box;
}

.page-privacy-policy__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-privacy-policy__cta-section {
    flex-direction: row; /* Horizontal layout on desktop */
    text-align: left;
  }
  .page-privacy-policy__cta-content {
    flex: 1;
  }
  .page-privacy-policy__cta-image-wrapper {
    flex-shrink: 0;
  }
  .page-privacy-policy__cta-buttons {
    justify-content: flex-start; /* Align buttons to the left */
  }
}

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

  .page-privacy-policy__hero-section {
    padding-bottom: 40px;
  }

  .page-privacy-policy__hero-content {
    padding-top: 20px;
  }

  .page-privacy-policy__main-title {
    font-size: 2em; /* Smaller H1 on mobile */
  }

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

  .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;
    padding-right: 15px;
  }
  
  .page-privacy-policy__cta-buttons,
  .page-privacy-policy__button-group,
  .page-privacy-policy__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    overflow: hidden !important;
  }

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

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

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

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

  /* Image responsive rules */
  .page-privacy-policy img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-privacy-policy__hero-image-wrapper,
  .page-privacy-policy__cta-image-wrapper,
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video responsive rules (if any, though none on this page) */
  .page-privacy-policy video,
  .page-privacy-policy__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-privacy-policy__video-section,
  .page-privacy-policy__video-container,
  .page-privacy-policy__video-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__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

}

/* Content area image CSS size check (min 200x200) */
.page-privacy-policy img:not(.page-privacy-policy__hero-image):not(.page-privacy-policy__cta-image) {
  min-width: 200px;
  min-height: 200px;
}