/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for assumed light body background */
  background-color: var(--background-color, #ffffff); /* Fallback to white if not defined */
}

/* Sections */
.page-gdpr__section {
  padding: 60px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.page-gdpr__section:last-of-type {
  border-bottom: none;
}

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

.page-gdpr__dark-bg .page-gdpr__section-title,
.page-gdpr__dark-bg .page-gdpr__paragraph,
.page-gdpr__dark-bg .page-gdpr__list-item,
.page-gdpr__dark-bg .page-gdpr__btn-secondary {
  color: #ffffff;
}

.page-gdpr__dark-bg .page-gdpr__btn-secondary {
  border-color: #ffffff;
}

.page-gdpr__dark-bg .page-gdpr__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

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

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

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-gdpr__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over image slightly for visual flow */
  background: rgba(38, 169, 224, 0.9); /* Brand color with transparency */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  color: #ffffff;
}

/* Titles */
.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-gdpr__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em); /* Responsive font size for H2 */
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #26A9E0;
}

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

/* Paragraphs and Lists */
.page-gdpr__description-text,
.page-gdpr__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

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

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

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

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

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

.page-gdpr__btn-primary:hover {
  background-color: #d16b00;
  border-color: #d16b00;
}

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

.page-gdpr__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-gdpr__dark-bg .page-gdpr__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-gdpr__dark-bg .page-gdpr__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

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

.page-gdpr__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-gdpr__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.15em;
  color: #26A9E0;
  list-style: none; /* Remove default marker */
}

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

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: 0 25px 20px;
  font-size: 1em;
  color: #555555;
}

/* Image wrappers for content images */
.page-gdpr__image-wrapper {
  text-align: center;
  margin: 30px 0;
}

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

  .page-gdpr__hero-section {
    min-height: 400px;
    padding: 40px 15px;
  }

  .page-gdpr__hero-content {
    padding: 30px 15px;
    margin-top: -60px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
  }

  .page-gdpr__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

  .page-gdpr__description-text,
  .page-gdpr__paragraph {
    font-size: 1em;
  }

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

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-gdpr__section,
  .page-gdpr__container,
  .page-gdpr__card,
  .page-gdpr__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__hero-image,
  .page-gdpr__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-gdpr__faq-item summary {
    padding: 15px 20px;
    font-size: 1.05em;
  }

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

  /* Ensure no horizontal scroll for video containers */
  .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__video-section {
    padding-top: 10px !important;
  }
  .page-gdpr__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}