.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color, #333333); /* Default text color, adjusted by smart contrast */
  background-color: var(--background-color, #ffffff); /* Inherit from shared.css */
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
  color: #ffffff;
  overflow: hidden;
}

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

.page-gdpr__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

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

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  white-space: normal; /* Allow text wrapping for buttons */
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-gdpr__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-gdpr__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7bbd;
  transform: translateY(-2px);
}

/* Content Area */
.page-gdpr__content-area {
  padding: 60px 0;
}

.page-gdpr__section-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-gdpr__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: #26A9E0;
  border-radius: 2px;
}

.page-gdpr__text-block {
  font-size: 1.05em;
  margin-bottom: 30px;
  color: #333333;
  text-align: justify;
}

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

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

.page-gdpr__link-text:hover {
  color: #1a7bbd;
}

/* FAQ Section */
.page-gdpr__faq-section {
  background-color: #26A9E0;
  padding: 60px 0;
  color: #ffffff;
}

.page-gdpr__faq-section .page-gdpr__section-title {
  color: #ffffff;
}

.page-gdpr__faq-section .page-gdpr__section-title::after {
  background-color: #ffffff;
}

.page-gdpr__faq-list {
  margin-top: 40px;
}

.page-gdpr__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.page-gdpr__faq-item summary {
  list-style: none; /* Hide default marker for details tag */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-gdpr__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.02);
}

.page-gdpr__faq-answer p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-gdpr__hero-title {
    font-size: 2.2em;
  }

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

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

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

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

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

  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

  .page-gdpr__content-area,
  .page-gdpr__faq-section {
    padding: 40px 0;
  }

  .page-gdpr__text-block {
    font-size: 0.95em;
  }

  .page-gdpr__image-content {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    padding: 0 15px;
    box-sizing: border-box;
  }

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

  /* Ensure all content containers are responsive */
  .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;
  }
}

/* Smart Contrast Adjustments */
/* Assuming --background-color is light, use dark text. If dark, use light text. */
/* Default body background is white, so default text is dark. */
.page-gdpr__dark-section {
  color: #ffffff; /* Dark background, so light text */
}

.page-gdpr__light-bg {
  color: #333333; /* Light background, so dark text */
}

.page-gdpr p,
.page-gdpr li {
  color: #333333; /* Default for main content */
}

.page-gdpr__faq-section .page-gdpr__faq-item summary,
.page-gdpr__faq-section .page-gdpr__faq-answer {
  color: #f0f0f0; /* Light text for dark FAQ background */
}