/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Assuming body background is light, this section will also be light */
}

/* Hero Section - Main Visual and Title */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Default to column for mobile first, then row for desktop */
  align-items: center;
  text-align: center;
  background-color: #f5f5f5; /* Light background for hero section */
  padding-bottom: 40px; /* Space below hero content */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it doesn't overflow */
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-gdpr__hero-content {
  max-width: 900px;
  padding: 30px 20px;
  background-color: #ffffff; /* White background for text block */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: -60px; /* Pull content slightly over image for visual appeal, but not overlapping text on image */
  position: relative;
  z-index: 10;
  color: #333333;
}

.page-gdpr__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: #017439; /* Brand primary color for title */
  margin-bottom: 15px;
}

.page-gdpr__description {
  font-size: 18px;
  margin-bottom: 30px;
}

/* Content Sections */
.page-gdpr__content-section {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-gdpr__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-gdpr__section-title {
  font-size: clamp(24px, 3vw, 36px); /* Responsive H2 font size */
  font-weight: 600;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.page-gdpr__content-section p {
  margin-bottom: 15px;
}

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

.page-gdpr__list li {
  margin-bottom: 10px;
  color: #333333;
}

.page-gdpr__image-wrapper {
  width: 100%;
  max-width: 800px; /* Max width for content images */
  margin: 30px auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.page-gdpr__content-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 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;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-gdpr__btn-primary {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-gdpr__btn-primary:hover {
  background-color: #005f2e; /* Darker shade on hover */
  border-color: #005f2e;
}

.page-gdpr__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  margin-left: 15px; /* Spacing between buttons */
}

.page-gdpr__btn-secondary:hover {
  background-color: #e0e0e0; /* Light grey on hover */
}

.page-gdpr__cta-wrapper {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 15px; /* Space between buttons */
  margin-top: 40px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-gdpr__hero-section {
    flex-direction: row; /* Desktop: image on left, content on right, or centered */
    justify-content: center;
    align-items: flex-start; /* Align to top for better flow */
    padding-top: 60px; /* More top padding for desktop */
    padding-bottom: 80px;
  }

  .page-gdpr__hero-image-wrapper {
    max-width: 60%; /* Image takes more space */
  }

  .page-gdpr__hero-content {
    max-width: 40%; /* Content takes less space */
    margin-top: 0; /* Remove negative margin on desktop */
    margin-left: -100px; /* Overlap content slightly on image */
    text-align: left;
    padding: 40px;
  }

  .page-gdpr__main-title {
    text-align: left;
  }

  .page-gdpr__description {
    text-align: left;
  }

  .page-gdpr__cta-wrapper {
    justify-content: flex-start;
  }
}

/* Mobile Specific Overrides */
@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-gdpr__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body handles --header-offset, small top padding */
  }

  .page-gdpr__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__hero-image,
  .page-gdpr__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    margin-top: -30px;
    margin-left: 0;
    padding: 20px 15px;
    box-sizing: border-box !important;
  }

  .page-gdpr__main-title {
    text-align: center;
    font-size: clamp(24px, 6vw, 36px); /* Adjust clamp for mobile */
  }

  .page-gdpr__description {
    text-align: center;
    font-size: 16px;
  }

  .page-gdpr__content-section {
    padding: 30px 15px;
  }

  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__section-title {
    font-size: clamp(20px, 5vw, 30px); /* Adjust clamp for mobile */
    text-align: center;
  }

  .page-gdpr__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    margin-right: 0;
  }

  .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;
    margin-left: 0 !important;
  }

  .page-gdpr__cta-wrapper {
    flex-direction: column; /* Stack buttons vertically on mobile */
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure no overflow from any section */
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-section,
  .page-gdpr__content-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

/* Color Contrast Safeguards (already integrated above, but explicitly define for clarity) */
/* Assuming a light body background for the main content area */
.page-gdpr {
  color: #333333;
}

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

.page-gdpr__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-gdpr__btn-primary {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-gdpr__btn-secondary {
  background-color: #ffffff;
  color: #017439;
}