/* style/gdpr.css */

/* --- Base Styles & Variables --- */
:root {
  --color-primary: #11A84E; /* Main color */
  --color-secondary: #22C768; /* Auxiliary color */
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;

  /* Text contrast defaults based on body background (assuming dark from --color-background) */
  --text-color-default: var(--color-text-main);
  --heading-color-default: var(--color-text-main);
  --link-color-default: var(--color-secondary);
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-default); /* Default text color for the page */
  background-color: var(--color-background); /* Page background */
}

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

/* --- Hero Section --- */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Padding for content below image */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--color-deep-green); /* Background for the hero section */
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for better text contrast if text were overlaid, but here text is below */
}

.page-gdpr__hero-content {
  position: relative; /* Ensure content is above image if needed, but here it's below */
  z-index: 2;
  margin-top: 40px; /* Space between image and text */
  max-width: 900px;
  padding: 0 20px;
}

.page-gdpr__main-title {
  font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size for H1 */
  font-weight: bold;
  color: var(--heading-color-default);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__hero-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  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;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  text-align: center;
  max-width: 100%; /* Ensure buttons don't exceed container width */
  box-sizing: border-box;
}

.page-gdpr__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.page-gdpr__btn-secondary:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Content Sections --- */
.page-gdpr__content-section {
  padding: 80px 0;
}

.page-gdpr__dark-bg {
  background-color: var(--color-card-bg); /* Use card background for dark sections */
  color: var(--color-text-main);
}

.page-gdpr__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--heading-color-default);
  text-align: center;
  margin-bottom: 40px;
}

.page-gdpr__sub-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-primary);
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.page-gdpr__text-block {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-gdpr__highlight {
  color: var(--color-gold);
  font-weight: bold;
}

.page-gdpr__image-full {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* --- List Styles --- */
.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.page-gdpr__list-item {
  background-color: var(--color-deep-green); /* Slightly different dark background */
  border-left: 5px solid var(--color-primary);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-gdpr__list-title {
  font-size: 1.25rem;
  color: var(--color-text-main);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-gdpr__list-item p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* --- FAQ Section --- */
.page-gdpr__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--color-text-main);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--color-deep-green); /* Darker background for question */
  color: var(--color-text-main);
  list-style: none; /* Remove default marker for summary */
}

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

.page-gdpr__faq-qtext {
  flex-grow: 1;
  font-size: 1.1rem;
}

.page-gdpr__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--color-primary);
}

.page-gdpr__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* Details element native open state */
.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
  max-height: fit-content; /* Allow content to expand naturally */
  padding-top: 20px;
}

.page-gdpr__contact-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: var(--color-deep-green);
  border-radius: 8px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-gdpr__hero-content {
    margin-top: 20px;
  }
  .page-gdpr__main-title {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  }
  .page-gdpr__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }
  .page-gdpr__sub-title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-bottom: 40px;
  }
  .page-gdpr__hero-content {
    margin-top: 20px;
  }
  .page-gdpr__main-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  .page-gdpr__hero-description {
    font-size: 1rem;
  }
  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-gdpr__content-section {
    padding: 60px 0;
  }
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-gdpr__section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-bottom: 30px;
  }
  .page-gdpr__sub-title {
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-gdpr__text-block,
  .page-gdpr__list-item p,
  .page-gdpr__faq-answer {
    font-size: 0.9rem;
  }
  .page-gdpr__list-item {
    padding: 15px;
  }
  .page-gdpr__list-title {
    font-size: 1.1rem;
  }

  /* Mobile image adaptation */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__content-section,
  .page-gdpr__faq-list,
  .page-gdpr__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Ensure no CSS filter on images */
.page-gdpr img {
  filter: none; /* Explicitly remove any filter */
}