/* Base styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light backgrounds */
  background-color: #f9f9f9; /* Light background for the main page content */
}

/* Container for content sections, ensuring consistent width */
.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Hero Section - Main visual at the top */
.page-gdpr__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* Light text for dark background */
  text-align: center;
}

.page-gdpr__hero-image {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.page-gdpr__hero-image img {
  width: 100%;
  height: 675px; /* Fixed height for desktop hero */
  object-fit: cover; /* Cover the area, may crop */
  display: block;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 10;
  padding-top: 40px;
  padding-bottom: 60px;
}

.page-gdpr__main-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-gdpr__intro-text {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

/* CTA Buttons in Hero Section */
.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Primary Button Style */
.page-gdpr__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid #C30808;
  box-sizing: border-box;
  max-width: 250px; /* Limit button width */
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

/* Secondary Button Style */
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: transparent;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  border: 2px solid #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 250px; /* Limit button width */
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  transform: translateY(-2px);
}

/* Content Section - General */
.page-gdpr__content-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background for content */
  color: #333333; /* Dark text for light background */
}

.page-gdpr__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #017439; /* Brand primary color for titles */
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
}

.page-gdpr__section-title--white {
  color: #ffffff; /* White title for dark sections */
}

.page-gdpr__text-block {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.page-gdpr__text-block h3 {
  font-size: 24px;
  font-weight: 600;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-gdpr__text-block p {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333333;
}

.page-gdpr__text-block ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 0;
  color: #333333;
}

.page-gdpr__text-block ul li {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-gdpr__text-block strong {
  color: #017439;
}

.page-gdpr__text-block a {
  color: #017439;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-gdpr__text-block a:hover {
  color: #005a2e;
}

.page-gdpr__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Info specific styling */
.page-gdpr__contact-info {
  background-color: #f0f0f0;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-gdpr__contact-info p {
  font-size: 17px;
  margin-bottom: 10px;
  color: #333333;
}

.page-gdpr__contact-info strong {
  color: #017439;
}

.page-gdpr__contact-info .page-gdpr__btn-primary {
  margin-top: 20px;
  max-width: unset; /* Allow button to expand more if needed */
}

/* FAQ Section */
.page-gdpr__faq-section {
  padding: 60px 20px;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-gdpr__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Lighter border for dark background */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08); /* Slightly visible background */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

details.page-gdpr__faq-item summary.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #ffffff; /* White text for question */
  font-size: 18px;
  font-weight: 600;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question::-webkit-details-marker {
  display: none;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}
.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-gdpr__faq-toggle {
  font-size: 28px; /* Larger for better visibility */
  font-weight: bold;
  color: #ffffff; /* White toggle icon */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  line-height: 1;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 25px 25px;
  background: rgba(255, 255, 255, 0.05); /* Slightly darker background for answer */
  border-radius: 0 0 8px 8px;
  color: #f0f0f0; /* Light text for answer */
  font-size: 16px;
}

.page-gdpr__faq-answer p {
  margin-bottom: 10px;
}

.page-gdpr__faq-answer a {
  color: #FFFF00; /* Yellow for links in dark section */
  text-decoration: underline;
}

.page-gdpr__faq-answer a:hover {
  color: #ffcc00;
}

/* General image responsive styles */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Mobile responsive styles */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 40px;
  }
  .page-gdpr__intro-text {
    font-size: 17px;
  }
  .page-gdpr__section-title {
    font-size: 32px;
  }
  .page-gdpr__text-block h3 {
    font-size: 22px;
  }
  .page-gdpr__faq-qtext {
    font-size: 17px;
  }
  .page-gdpr__faq-toggle {
    font-size: 26px;
    width: 28px;
  }
}

@media (max-width: 768px) {
  /* General container for mobile */
  .page-gdpr__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO Section */
  .page-gdpr__hero-section {
    padding-top: 10px;
  }

  .page-gdpr__hero-image img {
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }

  .page-gdpr__hero-content {
    padding-top: 30px;
    padding-bottom: 40px;
  }

  .page-gdpr__main-title {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 15px;
  }

  .page-gdpr__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Content Section */
  .page-gdpr__content-section {
    padding: 40px 15px;
  }

  .page-gdpr__section-title {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-gdpr__text-block {
    padding: 0;
    margin-bottom: 30px;
  }

  .page-gdpr__text-block h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-gdpr__text-block p,
  .page-gdpr__text-block ul li {
    font-size: 15px;
  }

  .page-gdpr__image-content {
    margin: 20px auto;
  }

  .page-gdpr__contact-info {
    padding: 20px;
    margin: 30px auto;
  }
  .page-gdpr__contact-info p {
    font-size: 15px;
  }

  /* FAQ Section */
  .page-gdpr__faq-section {
    padding: 40px 15px;
  }

  details.page-gdpr__faq-item summary.page-gdpr__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-gdpr__faq-qtext {
    font-size: 16px;
  }
  .page-gdpr__faq-toggle {
    font-size: 24px;
    width: 26px;
    margin-left: 15px;
  }
  details.page-gdpr__faq-item .page-gdpr__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }

  /* Ensure all images are responsive */
  .page-gdpr img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    box-sizing: border-box;
  }

  /* Ensure content area containers are responsive and prevent overflow */
  .page-gdpr__content-area,
  .page-gdpr__section,
  .page-gdpr__container,
  .page-gdpr__text-block,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Specific rule for article body if it were present, ensuring no overflow */
  .page-gdpr__article-body {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* This page does not have a product grid, but if it did, this would apply as per requirements */
  .page-gdpr__products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for mobile */
    gap: 15px !important;
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}

/* Ensure all images are responsive */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Ensure content area containers are responsive and prevent overflow */
.page-gdpr__content-area,
.page-gdpr__section,
.page-gdpr__container,
.page-gdpr__text-block,
.page-gdpr__faq-list {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* This page does not have a product grid, but if it did, this would apply */
.page-gdpr__products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Example desktop grid */
  gap: 20px;
  overflow-x: hidden;
}