/* style/gdpr.css */

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

/* Base styles for the page content */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-gdpr-text-main); /* Light text for dark body background */
  background-color: var(--page-gdpr-background); /* Deep Green background */
  padding-bottom: 40px; /* Ensure space above footer */
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: var(--page-gdpr-deep-green); /* Slightly different dark green for hero background */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 20px; /* Space between image and text */
}

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

.page-gdpr__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-gdpr__main-title {
  color: var(--page-gdpr-text-main);
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-gdpr__subtitle {
  color: var(--page-gdpr-text-secondary);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
}

/* Section Titles */
.page-gdpr__section-title {
  color: var(--page-gdpr-gold); /* Gold for section titles */
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

/* Text Blocks */
.page-gdpr__text-block {
  color: var(--page-gdpr-text-main);
  margin-bottom: 20px;
  font-size: 1.05rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.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;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding is included in width */
}

.page-gdpr__btn-primary {
  background: var(--page-gdpr-button-gradient);
  color: #ffffff; /* White text for contrast */
  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: transparent;
  color: var(--page-gdpr-primary-color);
  border: 2px solid var(--page-gdpr-primary-color);
}

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

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Sections */
.page-gdpr__introduction-section,
.page-gdpr__protection-section,
.page-gdpr__data-collection-section,
.page-gdpr__cookies-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section,
.page-gdpr__cta-section {
  padding: 60px 0;
}

/* Dark background sections */
.page-gdpr__dark-section {
  background-color: var(--page-gdpr-card-bg); /* Slightly lighter dark green */
  color: var(--page-gdpr-text-main);
}

/* Rights Grid (Cards) */
.page-gdpr__rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-gdpr__card {
  background-color: var(--page-gdpr-card-bg); /* Card background color */
  border: 1px solid var(--page-gdpr-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--page-gdpr-text-main); /* Card text color */
}

.page-gdpr__card-title {
  color: var(--page-gdpr-gold); /* Gold for card titles */
  font-size: 1.5rem;
  margin-bottom: 15px;
}

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

/* Protection Section with Image */
.page-gdpr__protection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-gdpr__image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-gdpr__content-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-gdpr__security-list,
.page-gdpr__data-list,
.page-gdpr__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__security-list li,
.page-gdpr__data-list li,
.page-gdpr__contact-list li {
  margin-bottom: 10px;
  color: var(--page-gdpr-text-main);
  display: flex;
  align-items: flex-start;
  font-size: 1.05rem;
}

.page-gdpr__list-icon {
  color: var(--page-gdpr-glow); /* Glow color for checkmark */
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
  line-height: 1;
}

.page-gdpr__data-list strong {
  color: var(--page-gdpr-gold);
}

.page-gdpr__contact-list a {
  color: var(--page-gdpr-glow);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-gdpr__contact-list a:hover {
  color: var(--page-gdpr-primary-color);
  text-decoration: underline;
}

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

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

.page-gdpr__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  list-style: none; /* Hide default marker */
  outline: none;
  background-color: var(--page-gdpr-deep-green); /* Slightly darker for summary */
  color: var(--page-gdpr-text-main);
  font-weight: bold;
  font-size: 1.15rem;
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-item summary:hover {
  background-color: var(--page-gdpr-primary-color);
}

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

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

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

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

.page-gdpr__faq-answer {
  padding: 20px 25px 25px;
  border-top: 1px solid var(--page-gdpr-border);
  color: var(--page-gdpr-text-secondary);
  font-size: 1rem;
}

.page-gdpr__faq-answer p {
  margin-bottom: 0;
  color: var(--page-gdpr-text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__protection-grid {
    grid-template-columns: 1fr;
  }
  .page-gdpr__image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-gdpr__container {
    padding: 0 15px; /* Smaller side padding on mobile */
  }

  /* Mobile responsive for images */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile responsive for videos (if any) */
  .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;
  }
  
  .page-gdpr__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Mobile responsive for buttons */
  .page-gdpr__cta-button,
  .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;
  }
  
  .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;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    align-items: stretch; /* Stretch buttons to full width */
  }

  .page-gdpr__hero-section,
  .page-gdpr__introduction-section,
  .page-gdpr__rights-section,
  .page-gdpr__protection-section,
  .page-gdpr__data-collection-section,
  .page-gdpr__cookies-section,
  .page-gdpr__contact-section,
  .page-gdpr__faq-section,
  .page-gdpr__cta-section {
    padding: 40px 0;
  }

  .page-gdpr__main-title {
    font-size: 2rem;
  }

  .page-gdpr__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .page-gdpr__rights-grid {
    grid-template-columns: 1fr;
  }

  .page-gdpr__card {
    padding: 25px;
  }
  
  .page-gdpr__card-title {
    font-size: 1.3rem;
  }

  .page-gdpr__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

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