/* style/gdpr.css */

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

.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;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
  background: linear-gradient(135deg, #26A9E0, #0a0a0a 80%); /* Brand color gradient */
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-gdpr__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
}

.page-gdpr__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__intro-text {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-gdpr__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  min-width: 200px;
  min-height: 48px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-gdpr__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.3;
}

.page-gdpr__light-bg {
  background-color: #FFFFFF;
  color: #333333;
  padding: 60px 0;
}

.page-gdpr__dark-section {
  background-color: #26A9E0; /* Main brand color */
  color: #FFFFFF;
  padding: 60px 0;
}

.page-gdpr__intro-section p,
.page-gdpr__principles-section p,
.page-gdpr__rights-section p,
.page-gdpr__data-processing-section p,
.page-gdpr__cookies-section p,
.page-gdpr__contact-support-section p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.page-gdpr__principles-grid,
.page-gdpr__data-processing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-gdpr__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark body bg */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-height: 200px; /* Ensure min size for cards */
}

.page-gdpr__light-bg .page-gdpr__card {
  background: #f8f8f8;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: inherit;
}

.page-gdpr__rights-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-gdpr__right-item {
  background: #f8f8f8;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-height: 200px; /* Ensure min size for items */
}

.page-gdpr__right-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-gdpr__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

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

.page-gdpr__faq-item {
  background: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
  background-color: #e0e0e0;
}

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

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

.page-gdpr__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

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

/* Details element specific styling */
details.page-gdpr__faq-item[open] > .page-gdpr__faq-question {
  background-color: #e0e0e0;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-gdpr__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-gdpr__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

  .page-gdpr__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-gdpr__intro-text {
    font-size: 1rem;
  }

  .page-gdpr__btn-primary {
    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__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-gdpr__light-bg,
  .page-gdpr__dark-section {
    padding: 40px 0;
  }

  .page-gdpr__principles-grid,
  .page-gdpr__data-processing-grid,
  .page-gdpr__rights-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__card,
  .page-gdpr__right-item {
    padding: 20px;
    min-height: unset; /* Allow height to adjust */
  }

  .page-gdpr__card-title,
  .page-gdpr__right-title {
    font-size: 1.4rem;
  }

  .page-gdpr__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 30px auto;
  }

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

  .page-gdpr__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 0.95rem;
  }
}

/* Ensure all images within .page-gdpr are responsive and meet min size */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Enforce min width */
  min-height: 200px; /* Enforce min height */
  object-fit: cover; /* Helps with various aspect ratios */
}

/* Override min-width/height for hero image specifically for larger views, while maintaining responsiveness */
.page-gdpr__hero-image {
  min-width: unset;
  min-height: unset;
}

/* Ensure content section images are at least 200px */
.page-gdpr__intro-section img,
.page-gdpr__principles-section img,
.page-gdpr__rights-section img,
.page-gdpr__data-processing-section img,
.page-gdpr__cookies-section img,
.page-gdpr__contact-support-section img,
.page-gdpr__faq-section img {
  min-width: 200px;
  min-height: 200px;
}

/* CSS for buttons and their containers to prevent overflow */
.page-gdpr__cta-buttons,
.page-gdpr__button-group,
.page-gdpr__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .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; */ /* Removed as button itself might be full width */
    /* padding-right: 15px; */
  }
  
  .page-gdpr__cta-buttons,
  .page-gdpr__button-group,
  .page-gdpr__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    align-items: center;
  }

  /* If buttons are direct children of a section that already has padding */
  .page-gdpr__hero-content .page-gdpr__btn-primary {
    margin-left: auto;
    margin-right: auto;
  }
}