:root {
  --primary-color: #017439;
  --secondary-color: #C30808; /* For buttons like register/login */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-color-light: #ffffff;
  --bg-color-gray: #f9f9f9;
  --border-color: #e0e0e0;
  --link-font-color: #FFFF00; /* For register/login font as per custom color */
}

/* Ensure body default background is white and text is dark for contrast */
body {
  background-color: var(--bg-color-light); /* Default white background */
  color: var(--text-color-dark); /* Default dark text */
}

/* Fixed Header Offset */
.page-privacy-policy {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #FFFFFF 100%); /* Example gradient from brand color to white */
  color: var(--text-color-dark); /* Ensure text is dark on potentially light gradient */
}

.page-privacy-policy__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-privacy-policy__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-privacy-policy__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block; /* Remove extra space below image */
  border-radius: 8px;
  object-fit: cover;
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-privacy-policy__main-title {
  font-size: 3.2em;
  color: var(--primary-color); /* Brand color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-privacy-policy__intro-description {
  font-size: 1.2em;
  color: var(--text-color-dark);
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.page-privacy-policy__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color); /* Using secondary color for CTA */
  color: var(--text-color-light); /* White text on red background */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
}

.page-privacy-policy__cta-button:hover {
  background: #a30707; /* Darken on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.7;
  font-size: 1.05em;
  background-color: var(--bg-color-light);
  color: var(--text-color-dark);
}

.page-privacy-policy__section-title {
  color: var(--primary-color);
  font-size: 2.2em;
  margin-top: 50px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.page-privacy-policy__sub-section-title {
  color: var(--primary-color);
  font-size: 1.6em;
  margin-top: 35px;
  margin-bottom: 15px;
}

.page-privacy-policy__paragraph {
  margin-bottom: 1em;
}

.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 1.5em;
}

.page-privacy-policy__list li {
  margin-bottom: 0.8em;
  color: var(--text-color-dark);
}

.page-privacy-policy__list li strong {
  color: var(--primary-color);
}

.page-privacy-policy a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
  color: #005a2e; /* Darken primary color on hover */
}

.page-privacy-policy__image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-privacy-policy__image-wrapper img {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%; /* Ensure images are responsive */
  height: auto;
  display: block; /* Remove extra space below image */
  margin: 0 auto;
}

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

.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--bg-color-light);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-privacy-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--bg-color-gray); /* Lighter background for answer */
  border-radius: 0 0 5px 5px;
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-color-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-privacy-policy__faq-question:hover {
  background: var(--bg-color-gray);
  border-color: #c0c0c0; /* Darken border on hover */
}

.page-privacy-policy__faq-question:active {
  background: #eeeeee; /* Even darker on active */
}

.page-privacy-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color-dark);
  pointer-events: none;
}

.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Use brand color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  color: var(--secondary-color); /* Change color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-privacy-policy__main-title {
    font-size: 2.8em;
  }
  .page-privacy-policy__intro-description {
    font-size: 1.1em;
  }
  .page-privacy-policy__section-title {
    font-size: 1.8em;
  }
  .page-privacy-policy__sub-section-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
    font-size: 0.95em;
  }
  
  .page-privacy-policy__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-privacy-policy__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important; /* Ensure buttons are responsive */
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-privacy-policy__sub-section-title {
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 10px;
  }

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

  /* Mobile image responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-privacy-policy__hero-image img {
    border-radius: 4px;
  }

  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-privacy-policy__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-privacy-policy__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-privacy-policy__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
}