/* style/gdpr.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-color: #1a1a1a; /* Body background from shared.css */
  --text-light: #ffffff;
  --text-dark: #333333;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --card-background-light: #ffffff;
}

.page-gdpr {
  color: var(--text-light); /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-gdpr__section {
  padding: 60px 0;
  text-align: center;
}

.page-gdpr__dark-section {
  background-color: var(--background-color);
  color: var(--text-light);
}

.page-gdpr__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-gdpr__hero-content {
  max-width: 800px;
  text-align: center;
  z-index: 1;
}

.page-gdpr__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive font size */
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__hero-description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.page-gdpr__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-gdpr__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-gdpr__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-gdpr__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-gdpr__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-gdpr__paragraph {
  font-size: 1.05rem;
  margin-bottom: 15px;
  text-align: left;
}

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

.page-gdpr__list-item {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-gdpr__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-gdpr__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-gdpr__image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-gdpr__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-gdpr__faq-item {
  background-color: var(--card-background-dark);
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
  box-sizing: border-box;
  color: var(--text-light);
}

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

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-gdpr__faq-question::-webkit-details-marker {
  display: none;
}

.page-gdpr__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

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

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

.page-gdpr__faq-answer {
  padding-top: 15px;
  font-size: 1rem;
  line-height: 1.5;
}

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

.page-gdpr__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.page-gdpr__link:hover {
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-gdpr__section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }
}

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

  .page-gdpr__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

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

  .page-gdpr__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
  }

  .page-gdpr__content-grid--reverse {
    grid-template-columns: 1fr;
  }

  .page-gdpr__content-grid .page-gdpr__image-container:nth-child(2) {
    order: -1; /* Image first on mobile for reverse grid */
  }

  /* All images */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All image containers */
  .page-gdpr__image-container,
  .page-gdpr__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* All sections and containers */
  .page-gdpr__section,
  .page-gdpr__container,
  .page-gdpr__hero-section,
  .page-gdpr__cta-buttons,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* All buttons */
  .page-gdpr__cta-button,
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary,
  .page-gdpr a[class*="button"],
  .page-gdpr a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button groups, ensure wrap */
  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-gdpr__paragraph,
  .page-gdpr__list-item,
  .page-gdpr__faq-question {
    font-size: 1rem;
  }
  .page-gdpr__faq-answer {
    font-size: 0.95rem;
  }
}

/* Ensure contrast for light background sections */
.page-gdpr__light-bg .page-gdpr__section-title,
.page-gdpr__light-bg .page-gdpr__paragraph,
.page-gdpr__light-bg .page-gdpr__list-item,
.page-gdpr__light-bg .page-gdpr__link {
  color: var(--text-dark);
}

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

/* Dark background sections should have light text */
.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section .page-gdpr__paragraph,
.page-gdpr__dark-section .page-gdpr__list-item,
.page-gdpr__dark-section .page-gdpr__link,
.page-gdpr__dark-section .page-gdpr__faq-question {
  color: var(--text-light);
}

.page-gdpr__dark-section .page-gdpr__link {
  color: var(--primary-color);
}

/* Ensure no image filters are used */
.page-gdpr img {
  filter: none !important;
}