/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--dark-bg-1); /* Inherited from shared, assuming dark for contrast logic */
}

/* Ensure body padding-top is handled by shared.css, no duplicate here */
/* .page-gdpr should not have padding-top: var(--header-offset); */

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 400px; /* Minimum height for hero */
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #26A9E0; /* Use brand color for hero section background */
  color: #FFFFFF; /* White text for dark background */
}

.page-gdpr__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-gdpr__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Make image subtle background */
  display: block;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-gdpr__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

/* Call to Action Buttons */
.page-gdpr__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  width: 100%; /* Ensure container takes full width for responsive wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
}

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

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

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

.page-gdpr__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.page-gdpr__btn-primary--contact {
  margin-top: 20px;
}

/* General Section Styles */
.page-gdpr__section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Default light background */
  color: #333333; /* Default dark text */
}

.page-gdpr__section-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #26A9E0; /* Brand color for section titles */
}

.page-gdpr__sub-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-gdpr__section p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #333333;
}

.page-gdpr__dark-section {
  background-color: #26A9E0; /* Brand primary color for dark sections */
  color: #FFFFFF; /* White text for dark background */
}

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section .page-gdpr__sub-title {
  color: #FFFFFF; /* White titles for dark background */
}

.page-gdpr__dark-section p,
.page-gdpr__dark-section strong,
.page-gdpr__dark-section li {
  color: #FFFFFF;
}

.page-gdpr__light-bg {
  background-color: #F8F8F8; /* Light gray background */
  color: #333333;
}

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

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

.page-gdpr__list-item strong {
  color: #26A9E0;
}

.page-gdpr__dark-section .page-gdpr__list-item strong {
  color: #FFFFFF;
}

/* Images */
.page-gdpr__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);
}

.page-gdpr__image--centered {
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 15px;
  max-width: 50%; /* Adjust as needed for layout */
}

.page-gdpr__image--left {
  float: left;
  margin-right: 30px;
  margin-bottom: 15px;
  max-width: 50%; /* Adjust as needed for layout */
}

/* Clear floats */
.page-gdpr__section::after {
  content: "";
  display: table;
  clear: both;
}

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

.page-gdpr__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark section */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFFFFF;
}

.page-gdpr__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #FFFFFF;
  user-select: none;
  list-style: none; /* Remove default marker for details summary */
}

.page-gdpr__faq-question::-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;
  margin-left: 15px;
  line-height: 1;
}

.page-gdpr__faq-answer {
  padding: 0 25px 18px;
  font-size: 1em;
  color: #F0F0F0;
}

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

/* Contact Section */
.page-gdpr__contact-section {
  text-align: center;
  background-color: #FFFFFF;
  color: #333333;
}

.page-gdpr__contact-info {
  margin-top: 30px;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.page-gdpr__contact-info p {
  margin-bottom: 10px;
}

/* Links within content */
.page-gdpr__link-text {
  color: #26A9E0; /* Brand color for links */
  text-decoration: underline;
}

.page-gdpr__link-text:hover {
  color: #1a7fb3;
  text-decoration: none;
}

.page-gdpr__dark-section .page-gdpr__link-text,
.page-gdpr__faq-item .page-gdpr__link-text {
  color: #FFFFFF; /* White links on dark background */
}

.page-gdpr__dark-section .page-gdpr__link-text:hover,
.page-gdpr__faq-item .page-gdpr__link-text:hover {
  color: #f0f0f0;
}


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

  .page-gdpr__sub-title {
    font-size: 1.4em;
  }

  .page-gdpr__image--right,
  .page-gdpr__image--left {
    float: none;
    margin: 30px auto;
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    min-height: 300px;
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-bottom: 40px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

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

  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
    font-size: 0.95em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-gdpr__section {
    padding: 40px 0;
  }

  .page-gdpr__section-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }

  .page-gdpr__sub-title {
    font-size: 1.2em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-gdpr p,
  .page-gdpr li {
    font-size: 0.95em;
  }

  /* Images responsive */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* All containers with images/content */
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-content,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-gdpr__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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