/* style/privacy-policy.css */

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

/* Base styles for the page content */
.page-privacy-policy {
  background-color: var(--vn58-win-background);
  color: var(--vn58-win-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

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

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

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
  object-fit: cover;
}

.page-privacy-policy__hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
  z-index: 1;
  background-color: var(--vn58-win-deep-green);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  margin-top: -5px; /* Slight overlap with image */
}

.page-privacy-policy__main-title {
  color: var(--vn58-win-text-main);
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-privacy-policy__lead-paragraph {
  color: var(--vn58-win-text-secondary);
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styling */
.page-privacy-policy__section {
  padding: 60px 20px;
  background-color: var(--vn58-win-background);
  color: var(--vn58-win-text-main);
}

.page-privacy-policy__dark-section {
  background-color: var(--vn58-win-card-bg);
}

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

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

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

.page-privacy-policy__paragraph {
  color: var(--vn58-win-text-secondary);
  margin-bottom: 20px;
  font-size: 1.05em;
}

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

.page-privacy-policy__list-item {
  margin-bottom: 10px;
  padding-left: 10px;
}

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

.page-privacy-policy__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 900px; /* Example content image size */
}

/* Buttons */
.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-privacy-policy__btn-primary {
  background: var(--vn58-win-button-gradient);
  color: var(--vn58-win-text-main);
  border: 2px solid transparent;
}

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

.page-privacy-policy__btn-secondary {
  background-color: transparent;
  color: var(--vn58-win-primary-color);
  border: 2px solid var(--vn58-win-primary-color);
  margin-left: 20px;
}

.page-privacy-policy__btn-secondary:hover {
  background-color: var(--vn58-win-primary-color);
  color: var(--vn58-win-text-main);
  box-shadow: 0 0 10px rgba(var(--vn58-win-primary-color), 0.5);
}

/* Links within text */
.page-privacy-policy__paragraph a,
.page-privacy-policy__list-item a {
  color: var(--vn58-win-secondary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-privacy-policy__paragraph a:hover,
.page-privacy-policy__list-item a:hover {
  color: var(--vn58-win-gold);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  padding-bottom: 80px;
}

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

.page-privacy-policy__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: 600;
  font-size: 1.15em;
  cursor: pointer;
  outline: none;
  list-style: none;
  color: var(--vn58-win-text-main);
  background-color: var(--vn58-win-deep-green);
  border-bottom: 1px solid var(--vn58-win-divider);
}

.page-privacy-policy__faq-item summary::-webkit-details-marker {
  display: none;
}

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

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

.page-privacy-policy__faq-item[open] summary .page-privacy-policy__faq-toggle {
  content: '−';
}

.page-privacy-policy__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--vn58-win-text-secondary);
}

.page-privacy-policy__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-privacy-policy__hero-image-wrapper {
    max-height: 400px;
  }
  .page-privacy-policy__hero-content {
    padding: 30px 15px;
  }
  .page-privacy-policy__main-title {
    font-size: clamp(1.8em, 4.5vw, 3em);
  }
  .page-privacy-policy__lead-paragraph {
    font-size: clamp(0.95em, 1.8vw, 1.1em);
  }
  .page-privacy-policy__section {
    padding: 40px 15px;
  }
  .page-privacy-policy__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.2em);
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__hero-image-wrapper {
    max-height: 300px;
  }
  .page-privacy-policy__hero-content {
    padding: 25px 15px;
  }
  .page-privacy-policy__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em);
  }
  .page-privacy-policy__lead-paragraph {
    font-size: clamp(0.9em, 2.5vw, 1em);
  }
  .page-privacy-policy__section {
    padding: 30px 15px;
  }
  .page-privacy-policy__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
  }
  
  /* Image Responsive Adaptation */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Container Responsive Adaptation */
  .page-privacy-policy__section,
  .page-privacy-policy__container,
  .page-privacy-policy__hero-section,
  .page-privacy-policy__hero-image-wrapper,
  .page-privacy-policy__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }
  
  .page-privacy-policy__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }

  /* Button Responsive Adaptation */
  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Remove margin for stacking */
    margin-bottom: 15px; /* Add space between stacked buttons */
    padding: 12px 20px;
  }
  
  /* FAQ items */
  .page-privacy-policy__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }
  .page-privacy-policy__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-privacy-policy__hero-image-wrapper {
    max-height: 200px;
  }
  .page-privacy-policy__main-title {
    font-size: clamp(1.4em, 8vw, 2em);
  }
  .page-privacy-policy__lead-paragraph {
    font-size: 0.9em;
  }
  .page-privacy-policy__section-title {
    font-size: clamp(1.4em, 6vw, 1.8em);
  }
  .page-privacy-policy__paragraph,
  .page-privacy-policy__list-item {
    font-size: 0.95em;
  }
}