/* style/privacy-policy.css */

/* --- Base Styles & Layout --- */
.page-privacy-policy {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Ensure consistency with body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-privacy-policy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --- Hero Section --- */
.page-privacy-policy__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #017439; /* Primary brand color for hero background */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-height: 400px; /* Limit height to prevent image from being too tall */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px; /* Space between image and text */
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-privacy-policy__hero-content {
  text-align: center;
  padding: 0 20px 40px;
  max-width: 900px;
  z-index: 1; /* Ensure content is above any background effects */
}

.page-privacy-policy__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size */
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.page-privacy-policy__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* --- Content Area --- */
.page-privacy-policy__content-area {
  display: flex;
  gap: 40px;
  padding: 60px 0;
}

.page-privacy-policy__article {
  flex: 3;
  min-width: 0; /* Allow flex item to shrink */
}

.page-privacy-policy__sidebar {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  padding-top: 10px; /* Align sidebar content with article */
}

.page-privacy-policy__section-title {
  font-size: 2.2em;
  color: #017439; /* Primary color for main section titles */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-privacy-policy__section-title--center {
  text-align: center;
}

.page-privacy-policy__sub-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-privacy-policy__paragraph {
  margin-bottom: 15px;
  color: #f0f0f0;
}

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

.page-privacy-policy__list-item {
  margin-bottom: 8px;
}

.page-privacy-policy__link {
  color: #017439; /* Primary color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

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

.page-privacy-policy__brand-name {
  color: #FFFF00; /* Custom color for brand name */
  font-weight: bold;
}

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

.page-privacy-policy__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

/* --- Sidebar Cards --- */
.page-privacy-policy__card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

.page-privacy-policy__card-text {
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-privacy-policy__sidebar-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.page-privacy-policy__sidebar-list-item {
  margin-bottom: 10px;
}

.page-privacy-policy__sidebar-list-item:last-child {
  margin-bottom: 0;
}

/* --- Buttons --- */
.page-privacy-policy__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 1.1em;
  box-sizing: border-box;
}

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

.page-privacy-policy__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  font-size: 1em;
  box-sizing: border-box;
}

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

/* --- FAQ Section --- */
.page-privacy-policy__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

.page-privacy-policy__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-privacy-policy__faq-item {
  background: rgba(255, 255, 255, 0.05); /* Lighter background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #f0f0f0;
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly darker header for question */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-privacy-policy__faq-item[open] > .page-privacy-policy__faq-question {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-privacy-policy__faq-question::-webkit-details-marker {
  display: none;
}

.page-privacy-policy__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00; /* Custom color for toggle icon */
}

.page-privacy-policy__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #cccccc;
  line-height: 1.7;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .page-privacy-policy__content-area {
    flex-direction: column;
    padding: 40px 20px;
  }

  .page-privacy-policy__sidebar {
    max-width: 100%;
    margin-top: 40px;
  }

  .page-privacy-policy__article {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__hero-content {
    padding: 0 15px 30px;
  }

  .page-privacy-policy__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
    margin-bottom: 10px;
  }

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

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

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

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

  /* Mobile image responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure width is 100% on mobile */
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size on mobile */
    min-height: 200px !important; /* Enforce minimum size on mobile */
  }
  
  /* Mobile container responsiveness for images/videos/buttons */
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container,
  .page-privacy-policy__hero-image-wrapper,
  .page-privacy-policy__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Mobile button responsiveness */
  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary,
  .page-privacy-policy a[class*="button"],
  .page-privacy-policy a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add spacing between stacked buttons */
  }

  .page-privacy-policy__cta-buttons,
  .page-privacy-policy__button-group,
  .page-privacy-policy__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex; /* Ensure flex context for wrap */
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-privacy-policy__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-privacy-policy__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-privacy-policy__faq-answer {
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-privacy-policy__section-title {
    font-size: 1.6em;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.2em;
  }
  .page-privacy-policy__card-title {
    font-size: 1.3em;
  }
}

/* --- Color Contrast Fixes (as per instructions) --- */
/* If body is dark, main text is light. Card backgrounds are slightly transparent dark, text is light. */
/* Titles use brand colors but must have good contrast. */
/* Buttons use custom colors with specified text colors. */
.page-privacy-policy__dark-bg {
  background-color: #121212; /* Explicitly set dark background */
  color: #ffffff; /* Light text for dark background */
}

.page-privacy-policy__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  color: #ffffff; /* Light text */
}

.page-privacy-policy__btn-primary {
  background: #C30808; /* Register/Login button background */
  color: #FFFF00; /* Register/Login button text */
}

.page-privacy-policy__btn-primary:hover {
  background-color: #a00606; /* Darker red on hover */
  color: #ffffff; /* White text on hover for better contrast */
}

.page-privacy-policy__btn-secondary {
  background: transparent;
  color: #017439; /* Primary brand color for text */
  border-color: #017439; /* Primary brand color for border */
}

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

/* Ensure all links have sufficient contrast */
.page-privacy-policy__link {
  color: #017439; /* Primary brand color */
}
.page-privacy-policy__link:hover {
  color: #FFFF00; /* Yellow on hover for visibility */
}

/* Specific contrast for brand name if embedded in text */
.page-privacy-policy__brand-name {
  color: #FFFF00; /* Yellow on dark background for high contrast */
}

/* Ensure content area p and li tags have light color on dark background */
.page-privacy-policy__content-area p,
.page-privacy-policy__content-area li,
.page-privacy-policy__faq-answer p {
  color: #f0f0f0; /* Slightly off-white for readability */
}