/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background is white */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-gdpr__section-title {
  color: #26A9E0; /* Brand primary color for titles */
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-gdpr__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
}

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

.page-gdpr__ordered-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-gdpr__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-gdpr a {
  color: #26A9E0;
  text-decoration: none;
}

.page-gdpr a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 600px; /* Adjust height as needed */
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
  background-color: #26A9E0; /* Primary brand color as background */
}

.page-gdpr__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Subtle background image */
}

.page-gdpr__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no filter is applied */
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.page-gdpr__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-gdpr__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

/* Buttons */
.page-gdpr__btn-primary {
  display: inline-block;
  background: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-gdpr__btn-primary:hover {
  background-color: #d66f06;
  text-decoration: none;
}

/* Section specific styling */
.page-gdpr__introduction-section,
.page-gdpr__user-rights-section,
.page-gdpr__cookie-policy-section,
.page-gdpr__contact-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
}

.page-gdpr__data-collection-section,
.page-gdpr__data-security-section,
.page-gdpr__faq-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background (brand primary) */
  color: #FFFFFF; /* White text for contrast */
}

.page-gdpr__data-collection-section .page-gdpr__section-title,
.page-gdpr__data-security-section .page-gdpr__section-title,
.page-gdpr__faq-section .page-gdpr__section-title {
  color: #FFFFFF; /* Titles in dark sections should be white */
}

.page-gdpr__data-collection-section a,
.page-gdpr__data-security-section a,
.page-gdpr__faq-section a {
  color: #f0f0f0; /* Lighter link color for dark background */
  text-decoration: underline;
}

.page-gdpr__data-collection-section a:hover,
.page-gdpr__data-security-section a:hover,
.page-gdpr__faq-section a:hover {
  color: #FFFFFF;
}

/* Content images */
.page-gdpr__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  filter: none; /* Ensure no filter is applied */
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 40px;
}

.page-gdpr__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items on dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-gdpr__faq-question h3 {
  margin: 0;
  color: inherit; /* Inherit color from parent */
  font-size: 1em; /* Ensure h3 inside is not too large */
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFFFF;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  transform: rotate(45deg);
}

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFFFFF; /* Text color for answers on dark background */
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to reveal content */
  padding: 15px 25px 20px;
}

.page-gdpr__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__hero-title {
    font-size: 3em;
  }
  .page-gdpr__section-title {
    font-size: 2em;
  }
}

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

  .page-gdpr__hero-section {
    height: auto;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px) !important; /* Apply if shared doesn't do it on body */
  }

  .page-gdpr__hero-title {
    font-size: 2.2em;
  }

  .page-gdpr__hero-description {
    font-size: 1em;
  }

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

  .page-gdpr__container {
    padding: 0 15px;
  }

  /* Images responsive */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure image containers are also responsive */
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__content-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-gdpr__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 20px;
    font-size: 1em;
  }

  /* Video responsive - though not used on this page, include for robustness */
  .page-gdpr video,
  .page-gdpr__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__video-section,
  .page-gdpr__video-container,
  .page-gdpr__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-gdpr__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-gdpr__faq-answer {
    padding: 0 20px;
  }

  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 10px 20px 15px;
  }

  .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;
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-title {
    font-size: 1.8em;
  }
  .page-gdpr__section-title {
    font-size: 1.5em;
  }
  .page-gdpr__list-item,
  .page-gdpr__text-block,
  .page-gdpr__hero-description {
    font-size: 0.95em;
  }
}

/* Color contrast fixes (if needed, based on body background) */
/* Assuming default light background for body, so deep text color is fine */
.page-gdpr__dark-section {
  color: #FFFFFF;
  background: #26A9E0;
}

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

/* Ensure no filter property is used for images */
.page-gdpr img {
  filter: none;
}