/* 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; /* Body background is dark #1a1a2e, so text should be light */
  background-color: transparent; /* Inherit from body or shared, ensuring text contrast */
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Ensure image doesn't overflow */
  padding: 60px 20px; /* Add some padding, but not var(--header-offset) */
  box-sizing: border-box;
  text-align: center;
  background-color: #017439; /* Use brand color for hero background */
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0.2; /* Make background image subtle */
  min-height: 200px; /* Minimum size requirement */
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
  color: #ffffff;
}

.page-privacy-policy__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
}

.page-privacy-policy__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-privacy-policy__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
  overflow: hidden;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button takes full width if needed */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  min-width: 150px; /* Minimum button width */
  text-align: center;
}

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

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

.page-privacy-policy__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

/* Content Area */
.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  color: #ffffff; /* Default text color for content areas */
}

/* Sections with dark background */
.page-privacy-policy__dark-bg {
  background-color: #1a1a2e; /* Use body background for dark sections */
  color: #ffffff;
  padding: 40px 20px;
}

.page-privacy-policy__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 25px;
  color: #017439; /* Brand color for main titles */
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(1, 116, 57, 0.3);
}

.page-privacy-policy__section-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-align: justify;
  color: #f0f0f0;
}

.page-privacy-policy__subsection {
  margin-bottom: 30px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for subsections */
  padding: 20px;
  border-radius: 8px;
}

.page-privacy-policy__subsection-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-privacy-policy__subsection-text {
  font-size: 1rem;
  margin-bottom: 15px;
  text-align: justify;
  color: #f0f0f0;
}

.page-privacy-policy__sub-subsection-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #ffffff;
}

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

.page-privacy-policy__list-item {
  margin-bottom: 8px;
  font-size: 1rem;
}

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

.page-privacy-policy__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  padding-bottom: 60px;
}

.page-privacy-policy__faq-list {
  margin-top: 30px;
}

.page-privacy-policy__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(1, 116, 57, 0.3);
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #ffffff;
  background-color: rgba(1, 116, 57, 0.5); /* Brand color with transparency */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default summary marker */
}

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

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

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

.page-privacy-policy__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 10px;
}

.page-privacy-policy__faq-answer {
  padding: 15px 20px;
  font-size: 1rem;
  color: #f0f0f0;
  text-align: justify;
  background-color: rgba(255, 255, 255, 0.03); /* Very subtle background for answer */
}

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

.page-privacy-policy__faq-answer a {
  color: #FFFF00; /* Link color for FAQ answers */
  text-decoration: underline;
}

.page-privacy-policy__faq-answer a:hover {
  color: #C30808;
}

/* Links within content */
.page-privacy-policy a {
  color: #FFFF00; /* Default link color */
  text-decoration: none;
}

.page-privacy-policy a:hover {
  text-decoration: underline;
  color: #C30808;
}

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

  .page-privacy-policy__hero-section {
    padding: 40px 15px;
  }

  .page-privacy-policy__main-title {
    font-size: 2rem;
  }

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

  .page-privacy-policy__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    width: 100% !important; /* Ensure buttons take full width */
    max-width: 100% !important;
    padding: 10px 15px;
  }

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

  .page-privacy-policy__dark-bg {
    padding: 30px 15px;
  }

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

  .page-privacy-policy__subsection-title {
    font-size: 1.3rem;
  }

  .page-privacy-policy__sub-subsection-title {
    font-size: 1.1rem;
  }

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

  /* Mobile image responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-privacy-policy__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important; /* Ensure min-height is maintained */
  }

  /* Container adjustments for images, videos, buttons */
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container,
  .page-privacy-policy__hero-section,
  .page-privacy-policy__content-area,
  .page-privacy-policy__subsection {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Video specific mobile rules (if any videos were present) */
  .page-privacy-policy video,
  .page-privacy-policy__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-privacy-policy__video-section {
    padding-top: 10px !important; /* Small top padding, not header-offset */
  }

  .page-privacy-policy__video-container,
  .page-privacy-policy__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}