/* style/privacy-policy.css */

/* Variables for colors based on the provided scheme */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
}

/* Base styles for the page content */
.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  color: var(--dark-text-color); /* Default text color for light backgrounds */
  background-color: var(--background-color);
}

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

.page-privacy-policy__light-bg {
  background-color: var(--light-text-color);
  color: var(--dark-text-color);
}

.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom for content */
  overflow: hidden;
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.2; /* Slightly dim the image to make text readable */
  filter: brightness(0.6); /* Further dim to ensure contrast */
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

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

.page-privacy-policy__intro-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  line-height: 1.6;
  color: var(--text-secondary-color);
  max-width: 800px;
  margin: 0 auto;
}

.page-privacy-policy__content-section {
  padding: 60px 0;
}

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

.page-privacy-policy__section-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--primary-color);
  border-bottom: 3px solid var(--divider-color);
  padding-bottom: 15px;
}

.page-privacy-policy__sub-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-privacy-policy__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: inherit;
}

.page-privacy-policy__paragraph a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-privacy-policy__paragraph a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  padding: 60px 0;
  background-color: var(--card-bg);
  color: var(--text-main-color);
}

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

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

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main-color);
  cursor: pointer;
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--border-color);
  user-select: none;
}

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

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

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

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-answer {
  max-height: 500px; /* Adjust as needed for content length */
  padding: 20px;
}

.page-privacy-policy__faq-answer p {
  margin-bottom: 0;
}

.page-privacy-policy__faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* General link styling */
.page-privacy-policy a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-privacy-policy a:hover {
  text-decoration: underline;
}

/* Image styles */
.page-privacy-policy img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Responsive images and containers */
.page-privacy-policy__hero-image,
.page-privacy-policy img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

  .page-privacy-policy__hero-content {
    padding: 40px 15px;
  }

  .page-privacy-policy__main-title {
    font-size: 2.2em; /* Adjusted for mobile readability */
    margin-bottom: 15px;
  }

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

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

  .page-privacy-policy__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-privacy-policy__paragraph {
    font-size: 1em;
    margin-bottom: 15px;
  }

  .page-privacy-policy__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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

  /* Mobile specific image and container overrides */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-privacy-policy__container,
  .page-privacy-policy__content-section,
  .page-privacy-policy__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-privacy-policy__hero-image-wrapper {
    max-height: 300px;
  }

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

  .page-privacy-policy__faq-item {
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .page-privacy-policy__main-title {
    font-size: 1.8em;
  }

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

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