/* style/gdpr.css */

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

/* Global styles for .page-gdpr scope */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  color: var(--page-gdpr-text-main); /* Default text color for dark background */
  background-color: var(--page-gdpr-background); /* Body background from shared.css is dark, so this is for sections */
}

/* Section spacing and layout */
.page-gdpr__hero-section,
.page-gdpr__content-area,
.page-gdpr__rights-section,
.page-gdpr__data-security-section,
.page-gdpr__faq-section,
.page-gdpr__cta-bottom-section {
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.page-gdpr__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--page-gdpr-background);
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it takes full width */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-gdpr__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  position: relative; /* Ensure content is above any potential background elements */
}

.page-gdpr__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  color: var(--page-gdpr-text-main);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-gdpr__lead-text {
  font-size: clamp(1em, 1.5vw, 1.3em);
  line-height: 1.6;
  color: var(--page-gdpr-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: var(--page-gdpr-text-main);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-gdpr__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  font-weight: 600;
  color: var(--page-gdpr-text-main);
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.page-gdpr__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--page-gdpr-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add horizontal padding for content */
  box-sizing: border-box;
}

/* Color Contrast Adjustments */
.page-gdpr__dark-bg {
  background-color: var(--page-gdpr-background);
  color: var(--page-gdpr-text-main);
}

.page-gdpr__light-bg {
  background-color: #F2FFF6; /* A very light green, close to white, for contrast */
  color: #333333; /* Dark text for light background */
}

.page-gdpr__light-bg .page-gdpr__section-title,
.page-gdpr__light-bg .page-gdpr__sub-title {
  color: var(--page-gdpr-deep-green); /* Use a darker brand green for titles on light background */
}

.page-gdpr__light-bg .page-gdpr__paragraph,
.page-gdpr__light-bg .page-gdpr__list-item {
  color: #333333; /* Ensure dark text on light background */
}

.page-gdpr__dark-bg-card {
  background-color: var(--page-gdpr-card-bg);
  color: var(--page-gdpr-text-main);
}

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

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-gdpr__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-gdpr__btn-secondary {
  background: transparent;
  color: var(--page-gdpr-glow-color); /* Lighter green for contrast */
  border: 2px solid var(--page-gdpr-glow-color);
}

.page-gdpr__btn-secondary:hover {
  background: var(--page-gdpr-glow-color);
  color: var(--page-gdpr-background);
  transform: translateY(-3px);
}

/* List styles */
.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

.page-gdpr__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.6;
  color: var(--page-gdpr-text-secondary);
}

.page-gdpr__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--page-gdpr-glow-color);
  font-weight: bold;
  font-size: 1.2em;
}

/* Cards Grid */
.page-gdpr__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-gdpr__card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-gdpr-border-color);
}

.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.5em;
  font-weight: 600;
  color: var(--page-gdpr-glow-color);
  margin-bottom: 15px;
}

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

/* Features Grid */
.page-gdpr__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
  text-align: center;
}

.page-gdpr__feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-gdpr__feature-icon {
  width: 200px; /* Enforce minimum size */
  height: 200px; /* Enforce minimum size */
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(87, 227, 141, 0.5));
}

.page-gdpr__light-bg .page-gdpr__feature-icon {
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2)); /* Darker shadow for light background */
}

.page-gdpr__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--page-gdpr-deep-green);
  margin-bottom: 10px;
}

.page-gdpr__feature-text {
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
}

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

.page-gdpr__faq-item {
  background-color: var(--page-gdpr-card-bg);
  border: 1px solid var(--page-gdpr-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-gdpr-text-main);
  background-color: var(--page-gdpr-deep-green); /* Slightly darker for question header */
  border-bottom: 1px solid var(--page-gdpr-divider-color);
  list-style: none; /* For details/summary */
}

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

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

.page-gdpr__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent text from intercepting click on details/summary */
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
  color: var(--page-gdpr-glow-color);
  pointer-events: none; /* Prevent toggle from intercepting click on details/summary */
}

.page-gdpr__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  line-height: 1.6;
  color: var(--page-gdpr-text-secondary);
  text-align: justify;
}

.page-gdpr__faq-answer p {
  margin-bottom: 0;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  content: '−'; /* Change to minus when open */
}

/* CTA Bottom Section */
.page-gdpr__cta-bottom-section {
  background-color: #F2FFF6; /* Light background for strong contrast */
  color: #333333;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-gdpr__cta-bottom-section .page-gdpr__section-title {
  color: var(--page-gdpr-deep-green);
}

.page-gdpr__cta-bottom-section .page-gdpr__paragraph {
  color: #333333;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Image specific styles */
.page-gdpr__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-width: 800px; /* Example max-width for content images */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-gdpr__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section,
  .page-gdpr__content-area,
  .page-gdpr__rights-section,
  .page-gdpr__data-security-section,
  .page-gdpr__faq-section,
  .page-gdpr__cta-bottom-section {
    padding: 40px 15px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-gdpr__lead-text {
    font-size: clamp(0.9em, 2.5vw, 1.1em);
    margin-bottom: 20px;
  }

  .page-gdpr__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 25px;
  }

  .page-gdpr__sub-title {
    font-size: clamp(1.2em, 4vw, 1.6em);
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-gdpr__paragraph,
  .page-gdpr__list-item,
  .page-gdpr__card-text,
  .page-gdpr__feature-text,
  .page-gdpr__faq-answer {
    font-size: 1em;
  }

  .page-gdpr__list-item {
    padding-left: 25px;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-gdpr__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-gdpr__cards-grid,
  .page-gdpr__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-gdpr__card {
    padding: 25px;
  }

  .page-gdpr__feature-icon {
    width: 200px !important; /* Enforce minimum size */
    height: 200px !important; /* Enforce minimum size */
  }

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

  .page-gdpr__faq-toggle {
    font-size: 1.3em;
  }

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

  /* Mobile image and video responsiveness */
  .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__hero-section,
  .page-gdpr__hero-image-wrapper,
  .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;
  }
  
  .page-gdpr__video-section {
    padding-top: 10px !important;
  }

  /* Ensure flex containers wrap */
  .page-gdpr__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-section,
  .page-gdpr__content-area,
  .page-gdpr__rights-section,
  .page-gdpr__data-security-section,
  .page-gdpr__faq-section,
  .page-gdpr__cta-bottom-section {
    padding: 30px 10px;
  }
  .page-gdpr__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-gdpr__section-title {
    font-size: clamp(1.3em, 7vw, 1.8em);
  }
  .page-gdpr__card-title {
    font-size: 1.3em;
  }
  .page-gdpr__feature-title {
    font-size: 1.2em;
  }
  .page-gdpr__faq-question {
    font-size: 1em;
  }
  .page-gdpr__faq-toggle {
    font-size: 1.2em;
  }
}