/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default body background is white, so dark text */
}

/* Hero Section */
.page-gdpr__hero-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
  padding: 80px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px; /* Minimum height for hero section */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-gdpr__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-gdpr__intro-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

/* General Container for content width */
.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Call to Action Buttons */
.page-gdpr__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-gdpr__btn-primary {
  background-color: #C30808; /* Custom color for registration/login */
  color: #FFFF00; /* Custom font color for registration/login */
  border: 2px solid #C30808;
}

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

.page-gdpr__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Brand primary color for text */
  border: 2px solid #017439;
}

.page-gdpr__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

/* Content Area */
.page-gdpr__content-area {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-gdpr__section-title {
  font-size: 2.2em;
  color: #017439; /* Brand primary color for titles */
  margin-bottom: 30px;
  text-align: center;
}

.page-gdpr__sub-title {
  font-size: 1.8em;
  color: #017439; /* Brand primary color for subtitles */
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-gdpr p {
  margin-bottom: 15px;
  color: #333333;
}

/* Links within content */
.page-gdpr a {
  color: #017439; /* Brand primary color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-gdpr a:hover {
  color: #005a2e;
}

/* Lists */
.page-gdpr__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

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

.page-gdpr__list-item strong {
  color: #017439; /* Emphasize list item titles with brand color */
}

/* Images */
.page-gdpr__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto; /* Center images */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  box-sizing: border-box; /* Ensure padding doesn't cause overflow */
}

.page-gdpr__image--full-width {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.page-gdpr__image--centered {
  margin-left: auto;
  margin-right: auto;
}

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

.page-gdpr__grid-item {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  box-sizing: border-box; /* Ensure padding doesn't cause overflow */
}

/* FAQ Section */
.page-gdpr__faq-section {
  background-color: #017439; /* Brand primary color for FAQ background */
  color: #ffffff; /* White text for dark background */
  padding: 60px 0;
}

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

.page-gdpr__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-gdpr__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  position: relative;
  list-style: none; /* Remove default marker for details summary */
}

.page-gdpr__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Allow click on entire summary, not just text */
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  pointer-events: none; /* Allow click on entire summary */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0; /* Slightly off-white for body text */
}

.page-gdpr__faq-answer p {
  color: #f0f0f0;
}

/* Bottom CTA buttons */
.page-gdpr__cta-buttons--bottom {
  margin-top: 50px;
  margin-bottom: 20px;
}

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

@media (max-width: 768px) {
  /* Ensure main content area respects padding and overflow */
  .page-gdpr__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important; /* Ensure padding doesn't cause overflow */
  }

  .page-gdpr__image-grid {
    grid-template-columns: 1fr; /* Stack images on mobile */
  }

  /* Buttons responsive */
  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-gdpr__main-title {
    font-size: 2.2em;
  }
  .page-gdpr__intro-description {
    font-size: 1em;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
  }
  .page-gdpr__sub-title {
    font-size: 1.4em;
  }
  .page-gdpr p,
  .page-gdpr li,
  .page-gdpr__faq-answer {
    font-size: 15px;
  }

  .page-gdpr__hero-section {
    padding: 60px 15px;
    min-height: 350px;
  }
  .page-gdpr__content-area,
  .page-gdpr__faq-section {
    padding: 40px 0;
  }
  .page-gdpr__faq-question {
    padding: 15px 20px;
  }
  .page-gdpr__faq-answer {
    padding: 0 20px 15px 20px;
  }
}