/* 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(--secondary-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Ensure text color contrasts with section backgrounds */
.page-gdpr__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-gdpr__dark-bg {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff; /* White text for contrast */
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom for content separation */
  overflow: hidden; /* Prevent content overflow */
}

.page-gdpr__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  width: 100%; /* Ensure image takes full width of its container */
}

.page-gdpr__hero-content {
  max-width: 900px;
  margin: 40px auto 0 auto; /* Space below image, centered */
  padding: 0 20px;
  position: relative; /* Ensure content is in normal flow below image */
  z-index: 1;
}

.page-gdpr__main-title {
  font-size: 2.5em; /* Using em for relative sizing */
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 100%; /* Ensure it doesn't overflow */
  word-wrap: break-word; /* Allow long titles to wrap */
}

.page-gdpr__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: inherit; /* Inherit from section, either #333333 or #ffffff */
}

/* General Content Section */
.page-gdpr__content-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-gdpr__content-section:last-of-type {
  border-bottom: none;
}

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

.page-gdpr__section-title {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit from section background */
}

.page-gdpr__content-section p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: inherit; /* Inherit from section background */
}

.page-gdpr__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: inherit; /* Inherit from section background */
}

.page-gdpr__list li {
  margin-bottom: 10px;
  color: inherit; /* Inherit from section background */
}

/* Data Collection Grid */
.page-gdpr__data-collection-grid,
.page-gdpr__rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-gdpr__data-card,
.page-gdpr__right-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff; /* White text for dark background */
  text-align: left;
}

.page-gdpr__light-bg .page-gdpr__data-card,
.page-gdpr__light-bg .page-gdpr__right-card {
  background-color: #f9f9f9;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}


.page-gdpr__card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: inherit; /* Inherit from card background */
}

/* Images within content */
.page-gdpr__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-gdpr__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin-top: 20px;
}

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

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

.page-gdpr__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a8cc7;
  border-color: #1a8cc7;
}

/* Contact Section specific styling */
.page-gdpr__contact-section {
  text-align: center;
}

.page-gdpr__contact-image {
  max-width: 600px; /* Adjust max-width for contact image */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 2em;
  }

  .page-gdpr__section-title {
    font-size: 1.8em;
  }

  .page-gdpr__data-collection-grid,
  .page-gdpr__rights-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 10px 0 40px 0;
  }

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

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

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

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

  .page-gdpr__container {
    padding: 0 15px;
    max-width: 100% !important; /* Enforce full width */
    width: 100% !important; /* Enforce full width */
    box-sizing: border-box !important;
  }

  .page-gdpr__section-title {
    font-size: 1.5em;
  }

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

  /* Mobile button responsiveness */
  .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;
  }
  
  /* Button containers mobile adaptation */
  .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; /* Allow buttons to wrap */
    gap: 10px; /* Space between wrapped buttons */
    display: flex; /* Ensure flex context for wrapping */
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-gdpr__data-collection-grid,
  .page-gdpr__rights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: 1.5em;
  }

  .page-gdpr__section-title {
    font-size: 1.3em;
  }

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

  .page-gdpr__container {
    padding: 0 10px;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    padding: 12px 20px;
  }
}