/* style/gdpr.css */

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

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

.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;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
  background-color: #26A9E0; /* Brand color as background for hero content area */
  color: #ffffff;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of the image wrapper */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly dim the image for text readability if needed */
}

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

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

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

/* Section Titles */
.page-gdpr__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: bold;
  color: #26A9E0; /* Brand color for section titles */
  text-align: center;
  margin-bottom: 40px;
}

.page-gdpr__intro-section .page-gdpr__section-title,
.page-gdpr__rights-section .page-gdpr__section-title,
.page-gdpr__contact-section .page-gdpr__section-title,
.page-gdpr__updates-section .page-gdpr__section-title,
.page-gdpr__cta-section .page-gdpr__section-title {
  color: #26A9E0; /* Ensure title color for light background sections */
}

.page-gdpr__protection-section .page-gdpr__section-title {
  color: #ffffff; /* Title color for dark background section */
}

/* Text Blocks */
.page-gdpr__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: #333333; /* Dark text for light background sections */
  text-align: justify;
}

.page-gdpr__intro-section .page-gdpr__text-block,
.page-gdpr__rights-section .page-gdpr__text-block,
.page-gdpr__contact-section .page-gdpr__text-block,
.page-gdpr__updates-section .page-gdpr__text-block,
.page-gdpr__cta-section .page-gdpr__text-block {
  color: #333333;
}

.page-gdpr__protection-section .page-gdpr__text-block {
  color: #ffffff; /* Light text for dark background section */
}

/* Card Grid for Rights Section */
.page-gdpr__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-gdpr__card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
  color: #333333; /* Dark text for cards */
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
}

.page-gdpr__card-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #26A9E0; /* Brand color for card titles */
  margin-bottom: 15px;
}

.page-gdpr__card-text {
  font-size: 0.95em;
  color: #555555;
}

/* Dark Section */
.page-gdpr__dark-section {
  background-color: #26A9E0; /* Main brand color for a distinct section */
  color: #ffffff;
}

/* List Styles */
.page-gdpr__protection-list,
.page-gdpr__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-gdpr__list-item {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-size: 1em;
}

.page-gdpr__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #EA7C07; /* Highlight color for list markers */
  font-weight: bold;
}

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

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
}

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

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

.page-gdpr__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand color */
  border: 2px solid #26A9E0;
  margin: 10px;
}

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

.page-gdpr__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Images within content */
.page-gdpr__image-full {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-gdpr__image-centered {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Color Contrast Fixes (as per instructions) */
/* Assuming body background is dark (var(--dark-bg)) */
.page-gdpr__intro-section,
.page-gdpr__rights-section,
.page-gdpr__contact-section,
.page-gdpr__updates-section,
.page-gdpr__cta-section {
  background-color: #ffffff; /* Light background for content sections */
  color: #333333; /* Dark text for light background */
}

/* Ensure headings and paragraphs in light sections have dark text */
.page-gdpr__intro-section h2, .page-gdpr__intro-section p,
.page-gdpr__rights-section h2, .page-gdpr__rights-section p,
.page-gdpr__contact-section h2, .page-gdpr__contact-section p,
.page-gdpr__updates-section h2, .page-gdpr__updates-section p,
.page-gdpr__cta-section h2, .page-gdpr__cta-section p {
  color: #333333;
}

.page-gdpr__card {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

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

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

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

/* Responsive Styles */
@media (max-width: 992px) {
  .page-gdpr__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-gdpr__section {
    padding: 40px 15px;
  }

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

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

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

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

  .page-gdpr__text-block,
  .page-gdpr__card-text,
  .page-gdpr__list-item {
    font-size: 0.95em;
  }

  .page-gdpr__card {
    padding: 25px;
  }

  /* Mobile image, video, button adaptation - IMPORTANT */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .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;
  }

  .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;
    margin: 10px 0 !important; /* Stack buttons vertically */
    padding-left: 15px; /* Add padding to prevent text from touching edges */
    padding-right: 15px;
  }
  
  .page-gdpr__cta-container {
    flex-direction: column;
    gap: 10px;
  }

  .page-gdpr__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-section {
    padding-top: 10px;
  }
  .page-gdpr__hero-image-wrapper {
    max-height: 300px;
  }
  .page-gdpr__card-grid {
    grid-template-columns: 1fr;
  }
}