/* 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 the page, adapting to dark body background */
  background-color: transparent; /* Inherit from body or shared, or use a specific color for the main content area if needed */
}

/* Hero Section */
.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;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-privacy-policy__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: none !important; /* Ensure no filter changes image color */
}

.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: 2;
}

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

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

.page-privacy-policy__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-privacy-policy__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Content Area */
.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

/* Dark background section for main content to ensure light text */
.page-privacy-policy__dark-bg {
  background-color: #0a0a0a; /* Match body background from shared.css */
  color: #ffffff; /* Light text for dark background */
}

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

.page-privacy-policy__section-title {
  font-size: 2.2em;
  color: #017439; /* Brand color for main titles */
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: center;
}

.page-privacy-policy h3 {
  font-size: 1.8em;
  color: #017439; /* Brand color for sub-titles */
  margin-top: 35px;
  margin-bottom: 15px;
}

.page-privacy-policy__paragraph {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #f0f0f0; /* Slightly off-white for paragraphs on dark bg */
}

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

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

.page-privacy-policy__list-item strong {
  color: #ffffff;
}

.page-privacy-policy__card-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-privacy-policy__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* Light text for card content */
}

.page-privacy-policy__card-title {
  font-size: 1.5em;
  color: #017439; /* Brand color for card titles */
  margin-bottom: 15px;
}

/* Images */
.page-privacy-policy__image-wrapper {
  margin: 40px 0;
  text-align: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-privacy-policy__image {
  max-width: 100%;
  height: auto;
  min-width: 200px; /* Min size for desktop images */
  min-height: 200px; /* Min size for desktop images */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element for max-width */
  margin: 0 auto; /* Center the image */
  filter: none !important; /* Ensure no filter changes image color */
}

/* Buttons */
.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box; /* Include padding in element's total width and height */
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-privacy-policy__btn-primary {
  background-color: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom font color for Register */
  border: 2px solid #C30808;
}

.page-privacy-policy__btn-primary:hover {
  background-color: #ff3333;
  border-color: #ff3333;
  color: #ffffff;
}

.page-privacy-policy__btn-secondary {
  background-color: #C30808; /* Custom color for Login */
  color: #FFFF00; /* Custom font color for Login */
  border: 2px solid #C30808;
}

.page-privacy-policy__btn-secondary:hover {
  background-color: #ff3333;
  border-color: #ff3333;
  color: #ffffff;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  margin-top: 60px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05); /* Slightly darker card background */
  border-radius: 10px;
}

.page-privacy-policy__faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 15px;
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px 0;
  color: #ffffff;
  transition: color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
  color: #017439; /* Brand color on hover */
}

.page-privacy-policy__faq-title {
  font-size: 1.3em;
  margin: 0;
  color: inherit; /* Inherit color from parent for hover effect */
}

.page-privacy-policy__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  transition: transform 0.3s ease;
  line-height: 1; /* Adjust line height for better alignment */
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  transform: rotate(45deg); /* Change to X or rotate for active state */
}

.page-privacy-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0; /* Light text for answer */
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 1000px !important; /* Ensure it expands enough */
  padding: 15px;
}

/* Links within content */
.page-privacy-policy__paragraph a,
.page-privacy-policy__list-item a {
  color: #017439; /* Brand color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-privacy-policy__paragraph a:hover,
.page-privacy-policy__list-item a:hover {
  color: #00a040; /* Lighter green on hover */
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

  .page-privacy-policy__main-heading {
    font-size: 2em;
  }

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

  .page-privacy-policy__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  
  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-privacy-policy__content-area {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-privacy-policy__container {
    padding: 0 10px; /* Adjust container padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-privacy-policy__card-layout {
    grid-template-columns: 1fr; /* Stack cards on mobile */
    gap: 20px;
  }

  .page-privacy-policy__card {
    padding: 20px;
  }

  .page-privacy-policy__card-title {
    font-size: 1.3em;
  }

  /* Images responsive */
  .page-privacy-policy img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Reset min-width for mobile */
    min-height: unset !important; /* Reset min-height for mobile */
  }
  
  .page-privacy-policy__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-privacy-policy__faq-title {
    font-size: 1.1em;
  }

  .page-privacy-policy__faq-toggle {
    font-size: 1.5em;
  }
}

/* Ensure no filter on images */
.page-privacy-policy img {
  filter: none !important;
}