/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-privacy-policy__hero-section {
  position: relative;
  background-color: #017439; /* Primary brand color for hero background */
  color: #ffffff;
  padding: 80px 20px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden;
}

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

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-privacy-policy__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-privacy-policy__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-privacy-policy__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

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

.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-privacy-policy__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter than body background for contrast, but still dark */
  color: #ffffff;
}

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

.page-privacy-policy__section-title {
  font-size: 2.5em;
  color: #017439; /* Primary brand color for main titles */
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: bold;
  text-align: left;
}

.page-privacy-policy__sub-title {
  font-size: 1.8em;
  color: #f0f0f0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
  text-align: left;
}

.page-privacy-policy p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #e0e0e0;
}

.page-privacy-policy a {
  color: #017439; /* Primary brand color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
  color: #004d2b;
}

.page-privacy-policy__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: #e0e0e0;
}

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

.page-privacy-policy__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Slightly darker for FAQ section */
  color: #ffffff;
}

.page-privacy-policy__faq-section .page-privacy-policy__section-title {
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
}

.page-privacy-policy__faq-item {
  background-color: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15em;
  color: #ffffff;
  background-color: #017439; /* Primary brand color for question background */
  transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
  background-color: #004d2b;
}

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

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  transform: rotate(45deg);
}

.page-privacy-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #2a2a2a;
  color: #e0e0e0;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-privacy-policy__main-title {
    font-size: 2.8em;
  }

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

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

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

  .page-privacy-policy__hero-section {
    padding: 60px 15px 30px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-privacy-policy__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-privacy-policy__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-privacy-policy__content-area,
  .page-privacy-policy__faq-section {
    padding: 40px 15px;
  }

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

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

  .page-privacy-policy p,
  .page-privacy-policy__list li {
    font-size: 0.95em;
  }

  .page-privacy-policy__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }

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

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

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

  /* Ensure all containers handle overflow */
  .page-privacy-policy__container,
  .page-privacy-policy__hero-section,
  .page-privacy-policy__content-area,
  .page-privacy-policy__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}