/* style/gdpr.css */

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

/* Ensure content is centered and has max-width */
.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-gdpr__section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
}

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

/* Dark background sections */
.page-gdpr__dark-section {
  background-color: #26A9E0; /* Primary brand color for dark sections */
  color: #ffffff;
}

/* 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;
  overflow: hidden; /* Ensure image doesn't overflow */
  width: 100%; /* Ensure full width on desktop for hero section */
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 40px; /* Space between image and content */
  max-width: 100%; /* Ensure responsiveness */
}

.page-gdpr__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

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

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

/* Headings */
.page-gdpr__heading {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: #ffffff; /* Default for sections */
  margin-bottom: 30px;
  text-align: center;
}

.page-gdpr__dark-section .page-gdpr__heading {
  color: #ffffff; /* White text for headings on primary brand color background */
}

/* Paragraphs */
.page-gdpr__paragraph {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light gray for paragraphs on dark body */
}

.page-gdpr__dark-section .page-gdpr__paragraph {
  color: #ffffff; /* White text for paragraphs on primary brand color background */
}

/* Lists */
.page-gdpr__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light gray for lists on dark body */
}

.page-gdpr__dark-section .page-gdpr__list {
  color: #ffffff; /* White text for lists on primary brand color background */
}

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

/* Images within content */
.page-gdpr__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Buttons */
.page-gdpr__button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

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

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

.page-gdpr__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Primary brand color for secondary action */
  border: 2px solid #26A9E0;
}

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

/* Links within text */
.page-gdpr a {
  color: #26A9E0; /* Primary brand color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-gdpr a:hover {
  color: #1a7fb3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-gdpr__section {
    padding: 40px 0;
  }

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

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

  .page-gdpr__hero-image {
    margin-bottom: 30px;
  }

  .page-gdpr__main-title {
    font-size: 2.2rem;
  }

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

  .page-gdpr__heading {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .page-gdpr__paragraph,
  .page-gdpr__list-item {
    font-size: 1rem;
  }

  /* Mobile image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size on mobile */
    min-height: 200px !important; /* Enforce minimum size on mobile */
  }

  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* 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;
    margin-right: 0 !important; /* Remove right margin for stacked buttons */
    margin-bottom: 15px !important; /* Add bottom margin for stacked buttons */
  }

  .page-gdpr__contact-us .page-gdpr__btn-primary,
  .page-gdpr__contact-us .page-gdpr__btn-secondary {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }

  .page-gdpr__button-group {
    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;
    flex-direction: column; /* Stack buttons vertically */
  }
}

/* Accessibility: ensure focus states are visible */
.page-gdpr a:focus,
.page-gdpr button:focus,
.page-gdpr input:focus,
.page-gdpr select:focus,
.page-gdpr textarea:focus {
  outline: 2px solid #EA7C07; /* Highlight with login color */
  outline-offset: 3px;
}