/* style/gdpr.css */

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

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.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;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

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

.page-gdpr__intro-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-gdpr__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-gdpr__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: -20px auto 40px auto;
}

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

/* Content Grid */
.page-gdpr__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-gdpr__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-gdpr__image-wrapper {
  text-align: center;
}

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

/* Card Styles */
.page-gdpr__card {
  background: rgba(255, 255, 255, 0.1); /* Light background for cards on dark sections */
  color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-gdpr__card--inverted {
  background: #ffffff; /* Inverted for dark background section */
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-gdpr__card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-gdpr__card--inverted .page-gdpr__card-title {
  color: #26A9E0;
}

/* List Styles */
.page-gdpr__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-gdpr__list li {
  margin-bottom: 10px;
  color: #ffffff; /* Default for dark background */
}

.page-gdpr__light-bg .page-gdpr__list li {
  color: #333333; /* For light background sections */
}

.page-gdpr__list--contact {
  list-style: none;
  padding-left: 0;
}

.page-gdpr__contact-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-gdpr__contact-link:hover {
  text-decoration: none;
}

/* Button Styles */
.page-gdpr__cta-area {
  text-align: center;
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

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

/* Color Contrast & Backgrounds */
.page-gdpr__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-gdpr__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-gdpr__light-bg .page-gdpr__section-title,
.page-gdpr__light-bg .page-gdpr__sub-title {
  color: #000000;
}

/* Specific section styling */
.page-gdpr__commitment-section .page-gdpr__section-title,
.page-gdpr__data-processing-section .page-gdpr__section-title,
.page-gdpr__sharing-section .page-gdpr__section-title {
  color: #ffffff;
}

.page-gdpr__commitment-section .page-gdpr__text-block p,
.page-gdpr__data-processing-section .page-gdpr__text-block p,
.page-gdpr__sharing-section .page-gdpr__text-block p {
  color: #ffffff;
}

.page-gdpr__contact-info p {
  color: #ffffff;
}

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

.page-gdpr__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-gdpr__content-grid {
    grid-template-columns: 1fr;
  }

  .page-gdpr__content-grid--reverse {
    grid-template-columns: 1fr;
  }

  .page-gdpr__content-grid .page-gdpr__image-wrapper {
    order: -1; /* Image first on mobile */
    margin-bottom: 30px;
  }

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

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

  .page-gdpr__hero-section {
    min-height: 400px;
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-gdpr__main-title {
    font-size: 2em;
  }

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

  .page-gdpr__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-gdpr__section-description {
    font-size: 1em;
    margin: -10px auto 30px auto;
  }

  .page-gdpr__container,
  .page-gdpr__commitment-section,
  .page-gdpr__rights-section,
  .page-gdpr__data-processing-section,
  .page-gdpr__security-section,
  .page-gdpr__sharing-section,
  .page-gdpr__contact-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons */
  .page-gdpr__cta-area {
    flex-direction: column;
    gap: 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;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: 1.8em;
  }
  .page-gdpr__section-title {
    font-size: 1.6em;
  }
  .page-gdpr__card {
    padding: 20px;
  }
  .page-gdpr__card-title {
    font-size: 1.2em;
  }
}

/* Accessibility - Ensure text is always readable */
.page-gdpr p,
.page-gdpr li,
.page-gdpr__intro-description,
.page-gdpr__section-description {
  color: inherit; /* Inherit from parent, which is set for contrast */
}

.page-gdpr__light-bg p,
.page-gdpr__light-bg li {
  color: #333333; /* Explicitly set for light backgrounds */
}

.page-gdpr__dark-section p,
.page-gdpr__dark-section li {
  color: #ffffff; /* Explicitly set for dark backgrounds */
}

.page-gdpr__text-block strong {
  color: inherit; /* Ensure strong tags also follow contrast */
}