/* style/gdpr.css */

/* Custom Colors from config */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding for content */
  text-align: center;
  overflow: hidden;
  background-color: var(--color-deep-green); /* Example dark background for hero */
}

.page-gdpr__hero-image {
  width: 100%;
  max-width: 1920px; /* Max width for large screens */
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
}

.page-gdpr__hero-content {
  position: relative; /* Ensure content is above any potential background elements */
  z-index: 2;
  max-width: 900px;
  width: 100%; /* Ensure width: 100% for flex child */
  padding: 0 15px;
  box-sizing: border-box;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 100%; /* Ensure H1 does not overflow */
  word-wrap: break-word; /* Allow long words to break */
}

.page-gdpr__intro-text {
  font-size: clamp(1em, 1.5vw, 1.25em);
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styling */
.page-gdpr__content-section,
.page-gdpr__principles-section,
.page-gdpr__rights-section,
.page-gdpr__implementation-section,
.page-gdpr__faq-section,
.page-gdpr__contact-section {
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%; /* Ensure container width */
  box-sizing: border-box;
}

.page-gdpr__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--color-gold); /* Using gold for section titles */
  line-height: 1.3;
}

.page-gdpr__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

/* Background Color Handling (Contrast) */
.page-gdpr__dark-bg {
  background-color: var(--color-card-bg); /* Dark background */
  color: var(--color-text-main); /* Light text */
}

.page-gdpr__light-bg {
  background-color: #ffffff; /* Explicitly white for contrast */
  color: #333333; /* Dark text */
}

.page-gdpr__light-bg .page-gdpr__section-title,
.page-gdpr__light-bg .page-gdpr__card-title {
  color: var(--color-primary); /* Use primary brand color for titles on light background */
}

.page-gdpr__light-bg .page-gdpr__text-block,
.page-gdpr__light-bg p,
.page-gdpr__light-bg li {
  color: #333333; /* Dark text on light background */
}

.page-gdpr__dark-bg .page-gdpr__text-block,
.page-gdpr__dark-bg p,
.page-gdpr__dark-bg li {
  color: var(--color-text-secondary); /* Secondary light text for dark background */
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons adapt to width */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
}

.page-gdpr__btn-primary {
  background: var(--color-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* Card Styling */
.page-gdpr__principles-grid,
.page-gdpr__implementation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-gdpr__card {
  background-color: var(--color-card-bg); /* Card background for dark sections */
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--color-text-main); /* Light text for dark cards */
}

.page-gdpr__light-bg .page-gdpr__card {
  background-color: #ffffff;
  color: #333333;
  border-color: #e0e0e0;
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-gdpr__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--color-gold); /* Gold for card titles */
}

.page-gdpr__light-bg .page-gdpr__card-title {
  color: var(--color-primary); /* Primary color for card titles on light background */
}

.page-gdpr__card-text {
  font-size: 1em;
  color: var(--color-text-secondary);
}

.page-gdpr__light-bg .page-gdpr__card-text {
  color: #555555; /* Darker text for light cards */
}


/* Lists */
.page-gdpr__rights-list {
  list-style-type: disc;
  margin: 20px auto 40px;
  max-width: 900px;
  padding-left: 30px;
}

.page-gdpr__rights-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-gdpr__rights-list strong {
  color: var(--color-primary); /* Highlight strong text with primary color */
}

/* Images within content */
.page-gdpr__feature-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

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

.page-gdpr__faq-item {
  background-color: #ffffff; /* White background for FAQ items */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-gdpr__faq-item summary {
  list-style: none; /* Remove default marker for details summary */
}
.page-gdpr__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--color-primary); /* Primary color for FAQ questions */
  cursor: pointer;
  background-color: #f9f9f9; /* Light background for question */
  border-bottom: 1px solid #e0e0e0;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
  border-bottom: 1px solid var(--color-border);
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--color-gold); /* Gold for toggle icon */
}

.page-gdpr__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555; /* Darker text for answer */
  background-color: #ffffff;
  border-top: none;
}

/* Contact Section */
.page-gdpr__contact-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-gdpr__contact-info {
  font-size: 1.1em;
  margin-top: 30px;
  color: var(--color-text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__hero-image {
    width: 100%;
    height: auto;
    max-height: 500px; /* Adjust hero image height for tablets */
  }

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

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

  .page-gdpr__hero-image {
    max-height: 350px;
    margin-bottom: 20px;
  }

  .page-gdpr__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-gdpr__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-gdpr__content-section,
  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__implementation-section,
.page-gdpr__faq-section,
  .page-gdpr__contact-section {
    padding: 40px 15px;
  }

  .page-gdpr__principles-grid,
  .page-gdpr__implementation-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__card {
    padding: 25px;
  }

  .page-gdpr__card-title {
    font-size: 1.2em;
  }

  .page-gdpr__rights-list {
    padding-left: 20px;
    font-size: 1em;
  }

  .page-gdpr__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-gdpr__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image and video responsive adaptation */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr video,
  .page-gdpr__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__video-section,
  .page-gdpr__video-container,
  .page-gdpr__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-gdpr__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  
  /* Buttons responsive adaptation */
  .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-bottom: 10px; /* Space between stacked buttons */
  }

  /* If buttons are in a flex row, make them stack */
  .page-gdpr__hero-content .page-gdpr__btn-primary {
    margin-left: auto;
    margin-right: auto;
    display: block; /* Ensure it takes full width */
  }

  .page-gdpr__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}

/* No CSS filters on images */
.page-gdpr img {
  filter: none !important;
}

/* Content area images should not be smaller than 200px */
.page-gdpr__content-section img,
.page-gdpr__principles-section img,
.page-gdpr__rights-section img,
.page-gdpr__implementation-section img,
.page-gdpr__faq-section img,
.page-gdpr__contact-section img {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure color contrast for light background text */
.page-gdpr__light-bg p,
.page-gdpr__light-bg li,
.page-gdpr__light-bg .page-gdpr__text-block,
.page-gdpr__light-bg .page-gdpr__card-text,
.page-gdpr__light-bg .page-gdpr__faq-answer {
  color: #333333; /* Dark text for light background */
}
.page-gdpr__light-bg h1, .page-gdpr__light-bg h2, .page-gdpr__light-bg h3, .page-gdpr__light-bg h4 {
  color: var(--color-primary); /* Primary color for headings on light background */
}

/* Ensure color contrast for dark background text */
.page-gdpr__dark-bg p,
.page-gdpr__dark-bg li,
.page-gdpr__dark-bg .page-gdpr__text-block,
.page-gdpr__dark-bg .page-gdpr__card-text,
.page-gdpr__dark-bg .page-gdpr__faq-answer {
  color: var(--color-text-secondary); /* Secondary light text for dark background */
}
.page-gdpr__dark-bg h1, .page-gdpr__dark-bg h2, .page-gdpr__dark-bg h3, .page-gdpr__dark-bg h4 {
  color: var(--color-gold); /* Gold for headings on dark background */
}

/* Specific for FAQ item on light background */
.page-gdpr__faq-item {
  background-color: #ffffff; /* White background for FAQ items */
  border: 1px solid #e0e0e0;
}
.page-gdpr__faq-question {
  background-color: #f9f9f9; /* Light background for question */
  color: var(--color-primary); /* Primary color for FAQ questions */
}
.page-gdpr__faq-answer {
  background-color: #ffffff;
  color: #555555; /* Darker text for answer */
}