/* style/gdpr.css */

/* Base styles for the 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 from shared.css */
}

/* Section spacing and container */
.page-gdpr__section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for sections */
  margin-bottom: 20px; /* Space between sections */
}

.page-gdpr__section:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.03); /* Alternate section background for visual separation */
}

.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;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #0a0a0a; /* Ensure hero has a dark background */
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 400px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.page-gdpr__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-gdpr__description {
  font-size: 1.2rem;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* General Titles */
.page-gdpr__section-title {
  font-size: 2.2rem;
  color: #26A9E0; /* Brand primary color for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

/* Text blocks */
.page-gdpr__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #ffffff; /* Light text for dark background */
}

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

/* Cards */
.page-gdpr__card {
  background: rgba(38, 169, 224, 0.1); /* Semi-transparent brand color for cards */
  color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px; /* Ensure cards have some height */
}

.page-gdpr__card-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-gdpr__card-text {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Lists */
.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-gdpr__list-item {
  background: rgba(38, 169, 224, 0.05); /* Subtle background for list items */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid #26A9E0;
  border-radius: 4px;
  font-size: 1.1rem;
  color: #ffffff;
}

.page-gdpr__list-item strong {
  color: #26A9E0;
}

/* Buttons */
.page-gdpr__button-group {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsive buttons */
  text-align: center;
}

.page-gdpr__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-gdpr__btn-primary:hover {
  background: #1e87b5;
  border-color: #1e87b5;
}

.page-gdpr__btn-secondary {
  background: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

/* Inline links */
.page-gdpr__inline-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-gdpr__inline-link:hover {
  color: #1e87b5;
}

/* Image and Text Layout (for security section) */
.page-gdpr__flex-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-gdpr__image-container,
.page-gdpr__text-content {
  flex: 1;
  min-width: 300px; /* Ensure content doesn't get too narrow */
}

.page-gdpr__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-gdpr__faq-item {
  background: rgba(38, 169, 224, 0.08); /* Slightly darker background for FAQ items */
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(38, 169, 224, 0.2);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: #26A9E0;
  background: rgba(38, 169, 224, 0.15);
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker for summary */
}

.page-gdpr__faq-question:hover {
  background: rgba(38, 169, 224, 0.25);
}

.page-gdpr__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  content: "−"; /* Changed by JS, but for visual consistency */
}

.page-gdpr__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.8;
}

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

.page-gdpr__faq-image-container {
  margin-top: 40px;
  text-align: center;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .page-gdpr__hero-content {
    padding: 0 15px;
  }
  .page-gdpr__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-gdpr__section-title {
    font-size: 1.8rem;
  }
  .page-gdpr__grid {
    grid-template-columns: 1fr;
  }
  .page-gdpr__flex-wrapper {
    flex-direction: column;
  }
  .page-gdpr__image-container,
  .page-gdpr__text-content {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-gdpr__section {
    padding: 40px 0;
  }
  .page-gdpr__container {
    padding: 0 15px;
  }
  .page-gdpr__hero-content {
    margin-top: 20px;
  }
  .page-gdpr__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-gdpr__description {
    font-size: 1rem;
  }
  .page-gdpr__section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  .page-gdpr__text-block,
  .page-gdpr__card-text,
  .page-gdpr__list-item,
  .page-gdpr__faq-answer {
    font-size: 1rem;
  }
  .page-gdpr__card-title {
    font-size: 1.2rem;
  }
  .page-gdpr__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-gdpr__button-group {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }
  
  /* --- Mobile Image Responsive Adaption --- */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images take full width of container */
    height: auto !important;
    display: block !important;
  }
  
  /* All containers that might hold images */
  .page-gdpr__section,
  .page-gdpr__container,
  .page-gdpr__card,
  .page-gdpr__image-container,
  .page-gdpr__faq-image-container,
  .page-gdpr__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Add padding to containers if needed to prevent edge-to-edge content */
    /* padding-left: 15px; */
    /* padding-right: 15px; */
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Specific padding for sections/containers to avoid content touching screen edges */
  .page-gdpr__section,
  .page-gdpr__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Hero section top padding */
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* --- Mobile Button Responsive Adaption --- */
  .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; /* Ensure buttons take full width of container */
    box-sizing: border-box !important;
    white-space: normal !important; /* Allow text to wrap */
    word-wrap: break-word !important;
    padding-left: 15px !important; /* Ensure text inside button has padding */
    padding-right: 15px !important;
  }
  
  /* Button containers */
  .page-gdpr__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important; /* Ensure button group has padding */
    padding-right: 15px !important;
    overflow: hidden !important;
    flex-wrap: wrap !important; /* Ensure buttons wrap if they were horizontal */
    gap: 10px !important; /* Adjust gap for stacked buttons */
  }
}