/* style/privacy-policy.css */

/* Variables and Base Styles */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #0d0d0d; /* Assuming dark-bg-1 from shared.css is dark */
  --btn-register: #C30808;
  --btn-login: #C30808;
  --btn-font-color: #FFFF00; /* For register/login buttons specifically */
}

.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for the page, assuming dark body bg */
  background-color: var(--bg-dark); /* Inherit from shared.css, but set explicitly for safety */
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  color: var(--text-light);
}

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

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-privacy-policy__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color); /* White for main title */
}

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

.page-privacy-policy__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.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 wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
}

.page-privacy-policy__btn-primary {
  background-color: var(--primary-color); /* Main brand color */
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-privacy-policy__btn-primary:hover {
  background-color: #005a2e; /* Slightly darker green */
  border-color: #005a2e;
}

.page-privacy-policy__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-privacy-policy__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Content Sections */
.page-privacy-policy__content-section {
  padding: 60px 0;
}

.page-privacy-policy__content-section.page-privacy-policy__text-block {
  background-color: var(--bg-light); /* Light background for text blocks */
  color: var(--text-dark); /* Dark text for light background */
}

.page-privacy-policy__content-section.page-privacy-policy__image-block {
  background-color: var(--bg-dark); /* Dark background for image blocks */
  color: var(--text-light); /* Light text for dark background */
}

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

.page-privacy-policy__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-color); /* Primary color for section titles */
}

.page-privacy-policy__content-section.page-privacy-policy__image-block .page-privacy-policy__section-title {
  color: var(--secondary-color); /* White for titles on dark background */
}

.page-privacy-policy__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--primary-color); /* Primary color for sub titles */
}

.page-privacy-policy__content-section.page-privacy-policy__image-block .page-privacy-policy__sub-title {
  color: #a3e6b3; /* Lighter shade of green for sub titles on dark background */
}

.page-privacy-policy p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

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

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

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

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

.page-privacy-policy__link:hover {
  color: #005a2e;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

.page-privacy-policy__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-privacy-policy__faq-item summary {
  list-style: none; /* Hide default marker for details tag */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--primary-color);
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

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

.page-privacy-policy__faq-item summary:hover {
  background-color: #f0f0f0;
}

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

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-privacy-policy__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: var(--text-dark);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-privacy-policy__main-title {
    font-size: 2.8em;
  }
  .page-privacy-policy__intro-text {
    font-size: 1.1em;
  }
  .page-privacy-policy__section-title {
    font-size: 2.2em;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    height: 500px;
  }
  .page-privacy-policy__main-title {
    font-size: 2.2em;
  }
  .page-privacy-policy__intro-text {
    font-size: 1em;
  }
  .page-privacy-policy__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }

  .page-privacy-policy__section-title {
    font-size: 1.8em;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.4em;
  }
  .page-privacy-policy p,
  .page-privacy-policy__list-item {
    font-size: 1em;
  }
  .page-privacy-policy__container {
    padding: 0 15px;
  }

  /* Mobile image responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container responsiveness for sections with images/text */
  .page-privacy-policy__content-section,
  .page-privacy-policy__container,
  .page-privacy-policy__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for content sections on mobile */
  .page-privacy-policy__content-section {
    padding: 40px 0;
  }
  .page-privacy-policy__content-section.page-privacy-policy__text-block .page-privacy-policy__container,
  .page-privacy-policy__content-section.page-privacy-policy__image-block .page-privacy-policy__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ specific mobile styles */
  .page-privacy-policy__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-privacy-policy__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-privacy-policy__hero-section {
    height: 400px;
  }
  .page-privacy-policy__main-title {
    font-size: 1.8em;
  }
  .page-privacy-policy__intro-text {
    font-size: 0.9em;
  }
  .page-privacy-policy__section-title {
    font-size: 1.6em;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.2em;
  }
}

/* Ensure content area images are not too small */
.page-privacy-policy__content-area img,
.page-privacy-policy__text-block img,
.page-privacy-policy__image-block img {
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* No CSS filters for images */
.page-privacy-policy img {
  filter: none !important;
}