/* style/gdpr.css */

/* Base Styles for GDPR Page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

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

.page-gdpr__dark-bg {
  background-color: #1A2E44; /* Brand primary dark blue */
  color: #ffffff;
}

.page-gdpr__light-bg {
  background-color: #f0f0f0; /* Light background for contrast sections */
  color: #333333; /* Dark text for light background */
}

.page-gdpr__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #E0B34F; /* Gold accent for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 10px;
  position: relative;
}

.page-gdpr__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #E0B34F;
  margin: 10px auto 0;
}

.page-gdpr__paragraph {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-gdpr__list--columns {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
}

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

.page-gdpr__link {
  color: #E0B34F; /* Gold for links */
  text-decoration: underline;
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  overflow: hidden;
  padding: 0; /* shared.css is assumed to handle body padding-top */
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for the hero section */
}

.page-gdpr__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Slightly dim the image to make text readable */
}

.page-gdpr__hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px;
  max-width: 900px;
  box-sizing: border-box;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-gdpr__hero-title {
  font-size: 48px;
  color: #E0B34F;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-gdpr__hero-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Primary Button Style */
.page-gdpr__btn-primary {
  background-color: #E0B34F; /* Gold accent */
  color: #1A2E44; /* Dark blue text for contrast */
  border: 2px solid #E0B34F;
}

.page-gdpr__btn-primary:hover {
  background-color: #ffc107; /* Slightly lighter gold on hover */
  color: #0a0a0a;
}

/* Image-Text Block */
.page-gdpr__image-text-block {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
}

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

.page-gdpr__image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure image has a minimum width */
  max-width: 50%;
  box-sizing: border-box;
}

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

.page-gdpr__image-text-block .page-gdpr__list {
  flex: 1;
  list-style: none; /* Remove default bullet */
  padding-left: 0;
  color: inherit; /* Inherit color from parent section */
}

.page-gdpr__image-text-block .page-gdpr__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 17px;
}

.page-gdpr__dark-bg .page-gdpr__image-text-block .page-gdpr__list-item {
    color: #f0f0f0;
}
.page-gdpr__light-bg .page-gdpr__image-text-block .page-gdpr__list-item {
    color: #333333;
}


.page-gdpr__image-text-block .page-gdpr__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #E0B34F; /* Gold checkmark */
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
}

/* Contact Block */
.page-gdpr__contact-block {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
  background-color: #ffffff; /* White background for contact info */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333; /* Dark text for white background */
}

.page-gdpr__contact-info {
  flex: 1;
}

.page-gdpr__contact-heading {
  font-size: 24px;
  color: #1A2E44; /* Dark blue heading */
  margin-bottom: 20px;
}

.page-gdpr__contact-detail {
  font-size: 16px;
  margin-bottom: 10px;
}

.page-gdpr__contact-detail strong {
  color: #1A2E44;
}

.page-gdpr__contact-button {
  margin-top: 20px;
}

/* FAQ Section */
.page-gdpr__faq-image-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.page-gdpr__faq-image-wrapper .page-gdpr__content-image {
  max-width: 600px;
  height: auto;
}

.page-gdpr__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #f9f9f9; /* Light background for FAQ items */
  color: #333333; /* Dark text for light background */
}

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important; /* Ensure it expands sufficiently */
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff; /* White background for expanded answer */
  border-radius: 0 0 5px 5px;
  color: #333333;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #333333;
}

.page-gdpr__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-gdpr__faq-question:active {
  background: #eeeeee;
}

.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #1A2E44; /* Dark blue for question heading */
}

.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #E0B34F; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: #1A2E44; /* Dark blue when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__hero-title {
    font-size: 40px;
  }
  .page-gdpr__hero-description {
    font-size: 18px;
  }
  .page-gdpr__image-text-block {
    flex-direction: column;
  }
  .page-gdpr__image-text-block--reverse {
    flex-direction: column;
  }
  .page-gdpr__image-wrapper {
    max-width: 100%;
  }
  .page-gdpr__contact-block {
    flex-direction: column;
  }
  .page-gdpr__list--columns {
      columns: 1;
      -webkit-columns: 1;
      -moz-columns: 1;
  }
}

@media (max-width: 768px) {
  /* Mobile Image Adaption - IMPORTANT */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain; /* Ensure image fits without cropping too much */
  }
  
  .page-gdpr__section,
  .page-gdpr__container,
  .page-gdpr__image-wrapper,
  .page-gdpr__contact-block,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__hero-section {
    min-height: 400px;
    padding-top: 0 !important; /* Assume shared.css handles body padding */
  }
  .page-gdpr__hero-title {
    font-size: 32px;
  }
  .page-gdpr__hero-description {
    font-size: 16px;
  }
  .page-gdpr__hero-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-gdpr__section {
    padding: 40px 0;
  }
  .page-gdpr__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-gdpr__paragraph, .page-gdpr__list-item {
    font-size: 15px;
  }

  /* Buttons in mobile - IMPORTANT */
  .page-gdpr__hero-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; /* Ensure internal padding */
    padding-right: 15px; /* Ensure internal padding */
    margin-left: auto; /* Center buttons if they are block */
    margin-right: auto;
  }

  .page-gdpr__contact-button {
    display: block; /* Make button block level on mobile */
  }

  /* FAQ Mobile Styles */
  .page-gdpr__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-gdpr__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-gdpr__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-gdpr__faq-answer {
    padding: 0 15px;
  }
  
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px !important;
  }
}