/* style/privacy-policy.css */

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

/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Main text color for dark background */
  background-color: var(--main-bg); /* Body background handled by shared.css var(--background-color), but this ensures consistency for main content */
  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: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--main-bg); /* Ensure dark background */
  overflow: hidden; /* Prevent content overflow */
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  box-sizing: border-box;
}

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

.page-privacy-policy__hero-content {
  text-align: center;
  max-width: 900px;
  margin-top: 20px;
  padding: 0 15px;
}

.page-privacy-policy__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  color: var(--gold-color); /* Gold color for H1 */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-privacy-policy__intro-text {
  font-size: clamp(1em, 1.2vw, 1.2em);
  color: var(--text-secondary); /* Secondary text color */
  margin-bottom: 30px;
}

/* Content Area */
.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: var(--main-bg); /* Ensure dark background */
}

.page-privacy-policy__dark-section {
  background-color: var(--main-bg);
  color: var(--text-main);
}

.page-privacy-policy__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: var(--primary-color); /* Primary color for section titles */
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--divider-color);
}

.page-privacy-policy p {
  margin-bottom: 1em;
  color: var(--text-main);
}

.page-privacy-policy a {
  color: var(--gold-color); /* Gold for links */
  text-decoration: underline;
}

.page-privacy-policy a:hover {
  color: var(--glow-color); /* Lighter gold on hover */
  text-decoration: none;
}

/* Cards */
.page-privacy-policy__card {
  background-color: var(--card-bg); /* Darker green for cards */
  color: var(--text-main); /* Main text color for card */
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__card-title {
  font-size: clamp(1.3em, 2vw, 1.8em);
  color: var(--primary-color); /* Primary color for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

/* Lists */
.page-privacy-policy__list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 1em;
  color: var(--text-main);
}

.page-privacy-policy__list li {
  margin-bottom: 0.5em;
}

/* Images within content */
.page-privacy-policy__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Buttons */
.page-privacy-policy__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--button-gradient); /* Gradient button background */
  color: #ffffff; /* White text on button */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-privacy-policy__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-privacy-policy__faq-list {
  margin-top: 30px;
}

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

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  user-select: none;
  background-color: var(--deep-green); /* Slightly different background for question */
  transition: background-color 0.3s ease;
}

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

.page-privacy-policy__faq-question:hover .page-privacy-policy__faq-toggle {
  color: #ffffff;
}

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

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

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


.page-privacy-policy__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--text-secondary);
  background-color: var(--card-bg);
  border-top: 1px solid var(--divider-color);
}

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

  .page-privacy-policy__main-title {
    font-size: 2em; /* Adjust H1 size for mobile */
    letter-spacing: 0.03em;
  }

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

  .page-privacy-policy__content-area {
    padding: 20px 15px;
  }

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

  .page-privacy-policy__card {
    padding: 20px;
    margin-bottom: 20px;
  }

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

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

  /* Images Mobile Responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Allow smaller images if they are naturally smaller */
    min-height: unset !important;
  }
  
  /* Ensure content containers are responsive */
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container,
  .page-privacy-policy__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Buttons Mobile 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-left: 15px !important; /* Add padding for text inside button */
    padding-right: 15px !important;
    text-align: center;
  }

  /* FAQ Mobile Responsiveness */
  .page-privacy-policy__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-privacy-policy__faq-toggle {
    font-size: 1.2em;
  }

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

/* Ensure no filter on images */
.page-privacy-policy img {
  filter: none !important;
}

/* Ensure content section images are at least 200px */
.page-privacy-policy__content-area img {
  min-width: 200px;
  min-height: 200px;
}