/* style/privacy-policy.css */

/* Base styles for the page content, ensuring contrast with body background */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Using custom color for main text */
  background-color: var(--bg-color); /* Assuming body background is handled by shared.css */
}

.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 400px;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background color */
}

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

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: var(--text-main); /* Ensure text is visible on dark background */
}

.page-privacy-policy__main-title {
  font-size: clamp(2em, 3.5vw, 3.5em);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-main); /* Main text color */
  line-height: 1.2;
}

.page-privacy-policy__subtitle {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: var(--text-secondary); /* Secondary text color */
  max-width: 800px;
  margin: 0 auto;
}

.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--card-bg); /* Card background color */
  color: var(--text-main); /* Main text color */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: -50px; /* Overlap with hero for visual effect */
  position: relative;
  z-index: 3;
}

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

.page-privacy-policy__section-title {
  font-size: 2.2em;
  color: var(--primary-color); /* Main brand color */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
  border-bottom: 2px solid var(--divider-color); /* Divider color */
  padding-bottom: 10px;
}

.page-privacy-policy__paragraph {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: var(--text-secondary); /* Secondary text color */
}

.page-privacy-policy__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-secondary); /* Secondary text color */
}

.page-privacy-policy__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-privacy-policy__list-item strong {
  color: var(--text-main); /* Main text color for strong elements */
}

.page-privacy-policy__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  display: block;
  object-fit: cover;
}

.page-privacy-policy__link {
  color: var(--gold-color); /* Gold color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-privacy-policy__link:hover {
  color: var(--glow-color); /* Glow color on hover */
}

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

.page-privacy-policy__faq-item {
  background-color: var(--deep-green-color); /* Deep Green for FAQ item background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color); /* Border color */
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main); /* Main text color */
  cursor: pointer;
  background-color: var(--deep-green-color); /* Deep Green */
  border-bottom: 1px solid var(--divider-color); /* Divider color */
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-question {
  border-bottom: 1px solid var(--border-color);
}

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

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

.page-privacy-policy__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.05em;
  color: var(--text-secondary); /* Secondary text color */
  background-color: var(--card-bg); /* Card background for answer */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-privacy-policy__hero-section {
    padding: 60px 20px;
  }

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

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

  .page-privacy-policy__paragraph,
  .page-privacy-policy__list-item {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding: 40px 15px;
    min-height: 300px;
  }

  .page-privacy-policy__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-privacy-policy__content-area {
    padding: 30px 15px;
    margin-top: -30px;
  }

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

  .page-privacy-policy__paragraph,
  .page-privacy-policy__list-item {
    font-size: 0.95em;
  }

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

  .page-privacy-policy__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.9em;
  }

  /* Force responsive images */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure containers do not overflow */
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container,
  .page-privacy-policy__hero-section,
  .page-privacy-policy__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Adjust padding for the first content section */
  .page-privacy-policy__hero-section { /* This is the first section */
    padding-top: 40px !important; /* Small top padding, body handles header offset */
  }
}

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

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

  .page-privacy-policy__faq-question {
    font-size: 1em;
  }
}

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

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

.page-privacy-policy__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-privacy-policy__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease;
}

.page-privacy-policy__btn-primary:hover {
  transform: translateY(-2px);
}