.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  height: 500px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--white-color); /* Use light text for dark background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-privacy-policy__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 0;
}

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

.page-privacy-policy__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--white-color);
}

.page-privacy-policy__intro-text {
  font-size: 1.2em;
  line-height: 1.6;
  color: var(--white-color);
}

.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background: var(--white-color); /* White background for main content for readability */
  color: var(--text-color-dark); /* Dark text on white background */
}

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

.page-privacy-policy__section-title {
  font-size: 2.5em;
  color: var(--primary-color); /* Brand primary color for titles */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.page-privacy-policy__subsection-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-privacy-policy__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-color-dark);
}

.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-color-dark);
}

.page-privacy-policy__list-item {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 10px;
}

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

.page-privacy-policy__text-link {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-privacy-policy__text-link:hover {
  color: #005f2e; /* Darker shade of primary color on hover */
  text-decoration: none;
}

.page-privacy-policy__highlight {
  font-weight: bold;
  color: var(--primary-color);
}

.page-privacy-policy__cta-buttons {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 60px;
}

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

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

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

.page-privacy-policy__faq-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--white-color);
  color: var(--primary-color);
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-privacy-policy__faq-question::-webkit-details-marker, /* Hide default marker for webkit browsers */
.page-privacy-policy__faq-question::marker {
  display: none;
}

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

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

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}

.page-privacy-policy__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-color-dark);
  background: #f9f9f9;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-privacy-policy__main-title {
    font-size: 3em;
  }
  .page-privacy-policy__section-title {
    font-size: 2em;
  }
  .page-privacy-policy__subsection-title {
    font-size: 1.5em;
  }
  .page-privacy-policy__paragraph,
  .page-privacy-policy__list-item,
  .page-privacy-policy__faq-question,
  .page-privacy-policy__faq-answer {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
  }
  .page-privacy-policy__main-title {
    font-size: 2.2em;
  }
  .page-privacy-policy__intro-text {
    font-size: 1em;
  }
  .page-privacy-policy__content-area {
    padding: 30px 15px;
  }
  .page-privacy-policy__section-title {
    font-size: 1.8em;
    margin-top: 30px;
  }
  .page-privacy-policy__subsection-title {
    font-size: 1.3em;
  }
  .page-privacy-policy__paragraph,
  .page-privacy-policy__list-item {
    font-size: 0.95em;
  }
  .page-privacy-policy__btn-primary {
    padding: 12px 25px;
    font-size: 1.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__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
  }
  .page-privacy-policy__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-privacy-policy__container, 
  .page-privacy-policy__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-privacy-policy__faq-item {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-privacy-policy__faq-question, .page-privacy-policy__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure text contrast for body background (dark-bg) */
body {
  background-color: var(--dark-bg); /* Assuming --dark-bg is a dark color */
}

.page-privacy-policy {
  color: var(--text-color-dark); /* Default text color for the main content area which has a white background */
  background-color: var(--white-color);
}

/* Specific elements that might be on a dark background if they are outside the main content area */
/* The hero section already handles its own text color to be white */

/* Brand color usage with contrast safety */
.page-privacy-policy__highlight {
  color: var(--primary-color); /* #017439 */
}

.page-privacy-policy__text-link {
  color: var(--primary-color); /* #017439 */
}

.page-privacy-policy__section-title,
.page-privacy-policy__subsection-title {
  color: var(--primary-color); /* #017439 */
}

.page-privacy-policy__btn-primary {
  background: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
}

/* Fallback for general text on default body background (if any part of main is transparent) */
.page-privacy-policy p, .page-privacy-policy li {
    color: var(--text-color-dark); /* Ensure dark text on light content background */
}

/* CSS variables for colors from shared.css (assuming shared.css defines them) */
:root {
  --primary-color: #017439;
  --white-color: #FFFFFF;
  --dark-bg: #0d0d0d; /* Example dark background, adjust if shared.css is different */
  --text-color-dark: #333333; /* Dark text for light backgrounds */
}