:root {
  --primary-color: #017439; /* Brand Green */
  --secondary-color: #FFFFFF; /* Brand White */
  --dark-bg-color: #121212; /* Body background from shared.css */
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --button-register-color: #C30808; /* Specific for register/login */
  --button-login-color: #C30808;
  --button-text-yellow: #FFFF00;
  --border-color: #e0e0e0;
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Default text color for the page, assuming dark body bg */
  background-color: var(--dark-bg-color); /* Inherit from body or explicitly set if needed */
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  padding: 80px 0;
  background-color: var(--primary-color); /* Using brand color for hero background */
  color: var(--light-text-color);
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-gdpr__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--light-text-color);
  line-height: 1.2;
}

.page-gdpr__intro-text {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-gdpr__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

/* Content Sections */
.page-gdpr__content-section {
  padding: 60px 0;
  background-color: var(--secondary-color); /* White background for content */
  color: var(--dark-text-color); /* Dark text for white background */
}

.page-gdpr__content-section .page-gdpr__section-title,
.page-gdpr__content-section .page-gdpr__sub-section-title {
  color: var(--primary-color); /* Use brand color for titles on light background */
}

.page-gdpr__section-title {
  font-size: 2em;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 15px;
  margin-top: 40px;
}

.page-gdpr__sub-section-title {
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--dark-text-color);
}

.page-gdpr__paragraph {
  margin-bottom: 15px;
  color: var(--dark-text-color);
}

.page-gdpr__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--dark-text-color);
}

.page-gdpr__list-item {
  margin-bottom: 10px;
  color: var(--dark-text-color);
}

.page-gdpr__list-item strong {
  color: var(--primary-color);
}

.page-gdpr__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Links within content */
.page-gdpr__content-section a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-gdpr__content-section a:hover {
  color: #005a2e; /* Darker shade of primary-color */
}

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

.page-gdpr__faq-item {
  background-color: #f9f9f9;
  border: 1px solid var(--border-color);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--dark-text-color);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: var(--secondary-color);
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--dark-text-color);
}

.page-gdpr__faq-question:hover {
  background-color: #f0f0f0;
}

.page-gdpr__faq-title {
  margin: 0;
  color: var(--dark-text-color);
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  transform: rotate(45deg); /* For '-' to become 'x' or just use '-' */
}

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--dark-text-color);
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

.page-gdpr__faq-answer p {
  margin-bottom: 0;
  color: var(--dark-text-color);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 2.2em;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
  }
  .page-gdpr__sub-section-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-gdpr__container {
    padding: 0 15px;
  }

  .page-gdpr__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-gdpr__main-title {
    font-size: 1.8em;
  }

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

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

  .page-gdpr__sub-section-title {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-gdpr__paragraph,
  .page-gdpr__list-item {
    font-size: 0.95em;
  }

  /* Image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce min size even on mobile */
    min-height: 200px !important; /* Enforce min size */
  }
  
  /* All containing elements for images/content must be responsive */
  .page-gdpr__container,
  .page-gdpr__hero-section,
  .page-gdpr__content-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* FAQ specific mobile adjustments */
  .page-gdpr__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

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

/* Ensure contrast for specific text elements on dark background if they appear */
.page-gdpr__dark-bg {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.page-gdpr__dark-bg h1,
.page-gdpr__dark-bg h2,
.page-gdpr__dark-bg h3,
.page-gdpr__dark-bg p,
.page-gdpr__dark-bg li,
.page-gdpr__dark-bg a {
  color: var(--light-text-color);
}

/* Ensure contrast for specific text elements on light background */
.page-gdpr__light-bg {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
}

.page-gdpr__light-bg h1,
.page-gdpr__light-bg h2,
.page-gdpr__light-bg h3,
.page-gdpr__light-bg p,
.page-gdpr__light-bg li {
  color: var(--dark-text-color);
}

.page-gdpr__light-bg a {
  color: var(--primary-color);
}