/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding for the first section */
  background-color: #FFFFFF; /* Light background for hero */
  color: #333333;
  text-align: center;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
  max-width: 1200px; /* Constrain image wrapper */
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-gdpr__hero-content {
  max-width: 800px;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 20px;
  color: #017439; /* Brand color for main title */
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

/* General Section Styles */
.page-gdpr__section {
  padding: 60px 0;
}

.page-gdpr__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-gdpr__dark-section {
  background-color: #017439; /* Brand primary color for dark section */
  color: #FFFFFF; /* White text for dark background */
}

.page-gdpr__section-title {
  font-size: 2.2em;
  font-weight: 600;
  margin-bottom: 40px;
  text-align: center;
  color: inherit; /* Inherit color from section (dark or light) */
}

.page-gdpr__content-block {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 30px;
}

.page-gdpr__content-block--reverse {
  flex-direction: row-reverse;
}

.page-gdpr__image {
  flex: 0 0 40%;
  max-width: 40%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-gdpr__image--right {
  margin-left: 0;
  margin-right: auto;
}

.page-gdpr__image--left {
  margin-right: 0;
  margin-left: auto;
}

.page-gdpr__text {
  flex: 1;
  font-size: 1.05em;
  margin-bottom: 20px;
  color: inherit;
}

.page-gdpr__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: inherit;
}

.page-gdpr__list-item {
  margin-bottom: 10px;
  font-size: 1em;
  color: inherit;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__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;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-gdpr__btn-primary {
  background-color: #017439; /* Primary brand color */
  color: #FFFFFF; /* White text */
  border: 2px solid #017439;
}

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

.page-gdpr__btn-secondary {
  background-color: #FFFFFF; /* White background */
  color: #017439; /* Primary brand color text */
  border: 2px solid #017439;
}

.page-gdpr__btn-secondary:hover {
  background-color: #f0f0f0; /* Light gray background */
  color: #005a2e; /* Slightly darker green */
  border-color: #005a2e;
}

/* Privacy Footer */
.page-gdpr__privacy-footer {
  padding: 30px 0;
  text-align: center;
  background-color: #FFFFFF;
  color: #555555;
  border-top: 1px solid #eeeeee;
}

.page-gdpr__copyright {
  font-size: 0.9em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__hero-section {
    padding: 40px 0;
    padding-top: 10px;
  }

  .page-gdpr__section {
    padding: 40px 0;
  }

  .page-gdpr__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-gdpr__content-block {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .page-gdpr__content-block--reverse {
    flex-direction: column; /* Stack vertically for smaller screens */
  }

  .page-gdpr__image {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 300px; /* Ensure images are not too small on tablets */
    min-height: 200px;
  }
  .page-gdpr__image--right,
  .page-gdpr__image--left {
    margin: 0; /* Remove specific margins for stacking */
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-gdpr__container {
    padding: 0 15px;
  }

  .page-gdpr__hero-section {
    padding: 30px 0;
    padding-top: 10px !important; /* body already handles offset */
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-gdpr__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-gdpr__section {
    padding: 30px 0;
  }

  .page-gdpr__section-title {
    font-size: 1.5em;
    margin-bottom: 25px;
  }

  .page-gdpr__content-block {
    gap: 20px;
  }

  .page-gdpr__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Enforce minimum size on mobile */
    min-height: 200px !important;
  }

  .page-gdpr__text {
    font-size: 0.95em;
  }

  .page-gdpr__list {
    padding-left: 20px;
  }

  /* Buttons mobile responsiveness */
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    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;
  }

  /* Button groups if any */
  .page-gdpr__cta-buttons,
  .page-gdpr__button-group,
  .page-gdpr__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-gdpr__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* Ensure all content containers are responsive */
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Contrast emergency fix for any accidental low contrast elements */
.page-gdpr__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-gdpr__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}