/* style/gdpr.css */
.page-gdpr {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Body background from shared.css */
}

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

.page-gdpr__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 550px;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439; /* Brand primary color for hero */
  padding-top: var(--header-offset, 120px); /* Apply header offset here */
}

.page-gdpr__hero-section .page-gdpr__container {
  position: relative;
  z-index: 2;
}

.page-gdpr__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
  filter: none; /* Ensure no CSS filter changes image color */
}

.page-gdpr__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-gdpr__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  cursor: pointer;
}

.page-gdpr__btn-primary {
  background-color: #C30808; /* Specific color for CTA */
  color: #FFFF00; /* Specific font color for CTA */
  border: 2px solid #C30808;
}

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

.page-gdpr__content-section {
  padding: 60px 0;
}

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

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

.page-gdpr__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-gdpr__light-bg .page-gdpr__section-title {
  color: #017439;
}

.page-gdpr__dark-bg .page-gdpr__section-title {
  color: #ffffff;
}

.page-gdpr__sub-title {
  font-size: 1.6em;
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: bold;
  color: inherit;
}

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

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

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

.page-gdpr__highlight {
  font-weight: bold;
  color: #C30808; /* Ensure good contrast */
}

.page-gdpr__link {
  color: #C30808;
  text-decoration: underline;
}

.page-gdpr__link:hover {
  color: #a00606;
}

.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 CSS filter changes image color */
}

.page-gdpr__faq-section {
  padding: 60px 0;
}

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

.page-gdpr__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-title {
  font-size: 1.1em;
  font-weight: bold;
  margin: 0;
  color: #ffffff;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #FFFF00;
}

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

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-gdpr__faq-answer .page-gdpr__paragraph {
  margin-bottom: 0;
  color: #f0f0f0;
}

.page-gdpr__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #ffffff;
  color: #333333;
}

.page-gdpr__cta-section .page-gdpr__section-title {
  color: #017439;
}

.page-gdpr__cta-section .page-gdpr__paragraph {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-gdpr__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

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

.page-gdpr__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

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

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

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-gdpr__hero-section {
    padding: 60px 0;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
  .page-gdpr__main-title {
    font-size: 1.8em;
    padding: 0 15px;
  }
  .page-gdpr__intro-text {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-gdpr__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-gdpr__content-section {
    padding: 40px 0;
  }
  .page-gdpr__section-title {
    font-size: 1.6em;
    padding: 0 15px;
  }
  .page-gdpr__sub-title {
    font-size: 1.4em;
    padding: 0 15px;
  }
  .page-gdpr__paragraph, .page-gdpr__list-item {
    padding: 0 15px;
  }
  .page-gdpr__list {
    padding-left: 35px; /* Adjust for padding on li */
  }
  .page-gdpr__faq-question {
    padding: 15px;
  }
  .page-gdpr__faq-title {
    font-size: 1em;
  }
  .page-gdpr__faq-answer {
    padding: 0 15px;
  }
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px;
  }
  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-gdpr__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  /* Mobile image and video responsive adaptation */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-gdpr video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-gdpr__section, .page-gdpr__card, .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-gdpr__content-image {
    margin-left: 0;
    margin-right: 0;
    width: calc(100% - 30px); /* Adjust for padding */
  }
}

/* Ensure text contrast for the main .page-gdpr element if body background is dark */
/* This is handled by setting .page-gdpr color to #ffffff at the top */

/* Specific contrast adjustments for light background sections */
.page-gdpr__light-bg .page-gdpr__paragraph,
.page-gdpr__light-bg .page-gdpr__list-item,
.page-gdpr__light-bg .page-gdpr__faq-title {
  color: #333333;
}

.page-gdpr__dark-bg .page-gdpr__paragraph,
.page-gdpr__dark-bg .page-gdpr__list-item,
.page-gdpr__dark-bg .page-gdpr__faq-title {
  color: #f0f0f0;
}

/* Button specific colors */
.page-gdpr__btn-register {
  background-color: #C30808;
  color: #FFFF00;
}

.page-gdpr__btn-login {
  background-color: #C30808;
  color: #FFFF00;
}

/* No filter on images (redundant but explicit for safety) */
.page-gdpr img {
  filter: none;
}