/* style/privacy-policy.css */

/* --- Base Styles --- */
.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for the page, adapting to dark background */
  background-color: var(--bg-color, #08160F); /* Page background, inherited from body or fallback */
}

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

/* --- Section Styling --- */
.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  background-color: var(--deep-green, #0A4B2C); /* Darker background for hero */
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure image wrapper is full width */
  overflow: hidden;
  margin-bottom: 20px; /* Space between image and text */
}

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

.page-privacy-policy__hero-content {
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
  color: var(--text-main, #F2FFF6);
}

.page-privacy-policy__introduction-section,
.page-privacy-policy__data-usage-section,
.page-privacy-policy__security-measures-section,
.page-privacy-policy__cookies-section,
.page-privacy-policy__children-privacy-section,
.page-privacy-policy__contact-section {
  background-color: var(--card-bg, #11271B); /* Dark background for these sections */
  color: var(--text-main, #F2FFF6);
  padding: 60px 0;
}

.page-privacy-policy__data-collection-section,
.page-privacy-policy__data-sharing-section,
.page-privacy-policy__user-rights-section,
.page-privacy-policy__third-party-links-section,
.page-privacy-policy__policy-changes-section,
.page-privacy-policy__cta-section {
  background-color: var(--bg-color, #08160F); /* Main background for these sections */
  color: var(--text-main, #F2FFF6);
  padding: 60px 0;
}

/* --- Typography --- */
.page-privacy-policy__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold, #F2C14E); /* Gold for main title */
}

.page-privacy-policy__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 40px;
  color: var(--text-secondary, #A7D9B8);
}

.page-privacy-policy__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--gold, #F2C14E);
  text-align: center;
}

.page-privacy-policy__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--glow, #57E38D); /* Glow color for sub-titles */
}

.page-privacy-policy__text-block {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-privacy-policy__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
}

.page-privacy-policy__list-item {
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

.page-privacy-policy__list-item strong {
  color: var(--glow, #57E38D);
}

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

/* --- Link Styling --- */
.page-privacy-policy__link {
  color: var(--glow, #57E38D);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-privacy-policy__link:hover {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
}

/* --- Button Styling --- */
.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping on desktop */
  box-sizing: border-box;
}

.page-privacy-policy__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-privacy-policy__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__btn-secondary {
  background-color: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--glow, #57E38D);
}

.page-privacy-policy__btn-secondary:hover {
  background-color: var(--glow, #57E38D);
  color: var(--deep-green, #0A4B2C); /* Darker text on hover for contrast */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

/* --- Contact List Styling --- */
.page-privacy-policy__contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: center;
}

.page-privacy-policy__contact-item {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--text-main, #F2FFF6);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .page-privacy-policy__container {
    padding: 0 15px;
  }

  .page-privacy-policy__hero-section {
    padding: 20px 0;
    padding-top: 10px !important; /* Small top padding for hero on mobile, body already handles header offset */
  }

  .page-privacy-policy__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust H1 for mobile */
  }

  .page-privacy-policy__description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

  .page-privacy-policy__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-privacy-policy__sub-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .page-privacy-policy__text-block,
  .page-privacy-policy__list-item,
  .page-privacy-policy__contact-item {
    font-size: 0.95rem;
  }

  /* Mobile image responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; 
    min-height: unset !important;
  }

  .page-privacy-policy__hero-image {
    min-height: 200px !important; /* Ensure hero image maintains minimum height */
  }

  /* Mobile container padding to prevent overflow */
  .page-privacy-policy__introduction-section,
  .page-privacy-policy__data-collection-section,
  .page-privacy-policy__data-usage-section,
  .page-privacy-policy__data-sharing-section,
  .page-privacy-policy__security-measures-section,
  .page-privacy-policy__user-rights-section,
  .page-privacy-policy__cookies-section,
  .page-privacy-policy__third-party-links-section,
  .page-privacy-policy__children-privacy-section,
  .page-privacy-policy__policy-changes-section,
  .page-privacy-policy__contact-section,
  .page-privacy-policy__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile button responsiveness */
  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 10px; /* Adjust padding for mobile buttons */
  }

  .page-privacy-policy__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-privacy-policy__contact-list {
    text-align: left; /* Align contact list left on mobile */
  }
}

/* Color Contrast Enforcement - Using custom colors */
/* These styles ensure contrast based on the provided palette */
.page-privacy-policy__dark-bg {
  background-color: var(--card-bg, #11271B); /* Dark background */
  color: var(--text-main, #F2FFF6); /* Light text */
}

/* Default sections will inherit from .page-privacy-policy which has light text on dark background */
.page-privacy-policy__section-title {
  color: var(--gold, #F2C14E); /* Gold for titles, good contrast on dark backgrounds */
}

.page-privacy-policy__sub-title {
  color: var(--glow, #57E38D); /* Glow green for sub-titles, good contrast on dark backgrounds */
}

.page-privacy-policy__link {
  color: var(--glow, #57E38D); /* Glow green for links */
}

.page-privacy-policy__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Green gradient */
  color: #ffffff; /* White text on green */
}

.page-privacy-policy__btn-secondary {
  background-color: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--glow, #57E38D);
}

.page-privacy-policy__btn-secondary:hover {
  background-color: var(--glow, #57E38D);
  color: var(--deep-green, #0A4B2C); /* Darker text on glow green background for contrast */
}

/* Ensure content images meet minimum size in CSS */
.page-privacy-policy__image {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure no CSS filter is used */
.page-privacy-policy img {
  filter: none !important;
}

/* Ensure content area images CSS size is not less than 200px */
.page-privacy-policy__content-area img,
.page-privacy-policy__data-collection-section img,
.page-privacy-policy__data-sharing-section img,
.page-privacy-policy__security-measures-section img,
.page-privacy-policy__user-rights-section img,
.page-privacy-policy__contact-section img {
    max-width: 100%;
    height: auto;
    /* No fixed width/height that would make them smaller than 200px */
    /* If a specific layout requires smaller, it must be >200px */
}