/* style/gdpr.css */

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

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

.page-gdpr__section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-gdpr__section-title {
  font-size: 3em;
  color: #ffffff; /* Light text for dark background */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-gdpr__sub-title {
  font-size: 1.8em;
  color: #017439; /* Brand color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-gdpr__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Slightly off-white for body text */
}

.page-gdpr__paragraph a {
  color: #017439; /* Brand color for links */
  text-decoration: underline;
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background-color: rgba(1, 116, 57, 0.8); /* Semi-transparent brand color for hero overlay */
  padding: 120px 0 60px; /* Default desktop padding, header offset handled by shared.css body padding */
  text-align: center;
  overflow: hidden;
}

.page-gdpr__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)); /* Dark overlay for text readability */
  z-index: 1;
}

.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.5); /* Darken image for better contrast with text, not changing color */
}

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

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

.page-gdpr__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Buttons */
.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  cursor: pointer;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box; /* For responsive buttons */
  white-space: normal; /* For responsive buttons */
  word-wrap: break-word; /* For responsive buttons */
}

.page-gdpr__btn-primary {
  background-color: #017439; /* Main brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-gdpr__btn-primary:hover {
  background-color: #005a2d; /* Darker shade for hover */
  border-color: #005a2d;
}

.page-gdpr__btn-secondary {
  background-color: transparent;
  color: #017439; /* Main brand color */
  border: 2px solid #017439;
}

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

/* Specific button colors from requirements */
.page-gdpr__btn-download {
  background-color: #C30808; /* Red for download/register/login */
  border-color: #C30808;
  color: #FFFF00; /* Yellow font for download/register/login */
}

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

.page-gdpr__btn-register {
  background-color: #C30808; /* Red for download/register/login */
  border-color: #C30808;
  color: #FFFF00; /* Yellow font for download/register/login */
}

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

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

/* CTA Download Section */
.page-gdpr__container--flex {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-gdpr__cta-content {
  flex: 1;
  min-width: 300px;
}

.page-gdpr__cta-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 30px;
}

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

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(1, 116, 57, 0.5); /* Brand color for FAQ question background */
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
  background-color: rgba(1, 116, 57, 0.7);
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  width: 25px;
  text-align: center;
  color: #ffffff;
}

.page-gdpr__faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: rgba(255, 255, 255, 0.02); /* Very subtle background for answer */
  color: #f0f0f0;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 20px;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
  background-color: #017439; /* Darker brand color when open */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  content: '−';
}

/* Details element specific styling */
.page-gdpr__faq-item details > summary {
  list-style: none;
}
.page-gdpr__faq-item details > summary::-webkit-details-marker {
  display: none;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-gdpr__hero-title {
    font-size: 3em;
  }
  .page-gdpr__section-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    min-height: 400px;
  }

  .page-gdpr__hero-title {
    font-size: 2.2em;
  }

  .page-gdpr__hero-description {
    font-size: 1.1em;
  }

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

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

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

  .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;
    margin: 10px 0; /* Stack buttons vertically */
  }
  
  .page-gdpr__container--flex {
    flex-direction: column;
    gap: 20px;
  }

  .page-gdpr__cta-content,
  .page-gdpr__cta-image-wrapper {
    width: 100%;
    min-width: unset;
  }

  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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;
  }

  /* Specific for video sections if any, though not present here */
  .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;
  }
}