/* style/gdpr.css */

/* Base styles for the page content area */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: var(--bg-color, #ffffff); /* Inherit from shared or default to white */
  padding-bottom: 40px;
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

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

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-gdpr__hero-content {
  max-width: 900px;
  padding: 20px;
  margin-top: 30px;
}

.page-gdpr__main-title {
  color: #26A9E0; /* Brand color for H1 */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 100%; /* Ensure H1 doesn't overflow */
  margin-bottom: 20px;
}

.page-gdpr__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-gdpr__hero-cta {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 15px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 15px; /* Add padding for mobile */
}

/* General Content Area */
.page-gdpr__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-gdpr__section-title {
  color: #26A9E0;
  font-size: 2em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-gdpr__text-block {
  margin-bottom: 20px;
  color: #333333;
}

.page-gdpr__text-block p {
  margin-bottom: 15px;
}

.page-gdpr__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-gdpr__list li {
  margin-bottom: 10px;
}

/* Image with text layout */
.page-gdpr__image-text-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.page-gdpr__image-text-block.page-gdpr__reverse-layout {
  flex-direction: row-reverse;
}

.page-gdpr__image-left,
.page-gdpr__image-right,
.page-gdpr__image-center {
  flex: 0 0 40%; /* Fixed width for image on desktop */
  max-width: 40%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size */
  min-height: 200px; /* Minimum size */
}

.page-gdpr__image-center {
  margin: 0 auto 30px auto;
  max-width: 60%;
  flex: 0 0 60%;
}

.page-gdpr__text-content {
  flex: 1;
}

/* Call to Action Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

.page-gdpr__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7fb0;
  border-color: #1a7fb0;
}

.page-gdpr__cta-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: 0 15px; /* Add padding for mobile */
}

/* Specific Section Styles */
.page-gdpr__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-gdpr__dark-section .page-gdpr__text-block,
.page-gdpr__dark-section .page-gdpr__list li {
  color: #ffffff;
}

.page-gdpr__light-bg {
  background-color: #f5faff; /* Lighter shade of blue for contrast */
  color: #333333;
}

.page-gdpr__link-email,
.page-gdpr__link-internal {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: bold;
}

.page-gdpr__link-email:hover,
.page-gdpr__link-internal:hover {
  color: #1a7fb0;
}

/* FAQ Section */
.page-gdpr__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.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;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  color: #333333;
  list-style: none; /* Remove default marker */
}

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

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: #26A9E0;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-gdpr__image-text-block {
    flex-direction: column;
    text-align: center;
  }

  .page-gdpr__image-text-block.page-gdpr__reverse-layout {
    flex-direction: column;
  }

  .page-gdpr__image-left,
  .page-gdpr__image-right,
  .page-gdpr__image-center {
    max-width: 80%;
    flex: 0 0 80%;
    margin-bottom: 30px;
  }

  .page-gdpr__image-center {
    max-width: 90%;
    flex: 0 0 90%;
  }

  .page-gdpr__hero-image {
    height: 400px; /* Adjust height for tablet */
  }
}

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

  .page-gdpr__hero-section {
    padding-bottom: 40px;
  }

  .page-gdpr__hero-image {
    height: 300px !important; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-gdpr__main-title {
    font-size: 2em; /* Adjust H1 size for mobile */
  }

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

  .page-gdpr__hero-cta,
  .page-gdpr__cta-block {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .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;
  }

  .page-gdpr__content-area {
    padding: 30px 15px;
  }

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

  .page-gdpr__image-left,
  .page-gdpr__image-right,
  .page-gdpr__image-center {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
  }

  /* Ensure all images are responsive */
  .page-gdpr img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Ensure containers with images/videos/buttons are responsive */
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-section,
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__image-text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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