/* style/gdpr.css */

/* --- Base Styles --- */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--primary-color, #1A202C); /* Ensure dark background */
}

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

.page-gdpr__section-title {
  font-size: 2.5rem;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-gdpr__section-title--light {
  color: #FFD700; /* Gold for titles on dark background */
}

.page-gdpr__sub-title {
  font-size: 1.8rem;
  color: #FFD700; /* Gold for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-gdpr p {
  margin-bottom: 15px;
  color: #f0f0f0; /* Default light text */
}

.page-gdpr__content-area p {
  color: #333333; /* Dark text for paragraphs in light content area */
}

.page-gdpr__description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-gdpr__description--light {
  color: #f0f0f0;
}

/* --- Hero Section --- */
.page-gdpr__hero-section {
  background-color: #1A202C; /* Fallback color */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Increased min-height for hero with background image */
  position: relative;
  z-index: 1; /* Ensure content is above overlay */
}

.page-gdpr__hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: -1; /* Place behind content */
}

.page-gdpr__hero-section .page-gdpr__container {
  position: relative;
  z-index: 2; /* Ensure container content is above overlay */
}

.page-gdpr__hero-title {
  font-size: 3.5rem;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-gdpr__hero-description {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* --- Buttons --- */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box; /* Responsive button */
  white-space: normal; /* Responsive button text */
  word-wrap: break-word; /* Responsive button text */
}

.page-gdpr__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #1A202C; /* Dark text */
}

.page-gdpr__btn-primary:hover {
  background-color: #e6c200; /* Darker gold */
}

.page-gdpr__btn-secondary {
  background-color: #1A202C; /* Dark blue-gray */
  color: #FFD700; /* Gold text */
  border-color: #FFD700;
}

.page-gdpr__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* Responsive button container */
  max-width: 100%; /* Responsive button container */
  box-sizing: border-box; /* Responsive button container */
  overflow: hidden; /* Responsive button container */
}

/* --- Content Area --- */
.page-gdpr__content-area {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for content */
  color: #333333; /* Dark text for light background */
}

/* Image Section */
.page-gdpr__image-section {
  background-color: #1A202C;
  padding: 60px 0;
  color: #ffffff;
}

.page-gdpr__image-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-gdpr__content-image {
  flex: 1;
  min-width: 300px; /* Ensure image is not too small */
  border-radius: 10px;
  object-fit: cover;
  max-width: 100%; /* Responsive image */
  height: auto; /* Responsive image */
  display: block; /* Responsive image */
}

.page-gdpr__image-text {
  flex: 1;
  min-width: 300px; /* Ensure text block is not too small */
}

.page-gdpr__image-title {
  font-size: 2rem;
  color: #FFD700;
  margin-bottom: 20px;
}

/* Video Section */
.page-gdpr__video-section {
  background-color: #1A202C;
  padding: 60px 0;
  text-align: center;
}

.page-gdpr__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  width: 100%; /* Responsive video container */
  box-sizing: border-box; /* Responsive video container */
}

.page-gdpr__video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  max-width: 100%; /* Responsive video */
  display: block; /* Responsive video */
}

.page-gdpr__video-caption {
  margin-top: 20px;
  font-style: italic;
  color: #f0f0f0;
}

.page-gdpr__video-link {
  display: block;
  position: absolute; /* Cover the video to make the whole area clickable */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}


/* --- FAQ Section --- */
.page-gdpr__faq-section {
  background-color: #1A202C;
  padding: 60px 0;
  color: #ffffff;
}

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

.page-gdpr__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-gdpr__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  transform: rotate(45deg);
}

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 20px;
}

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

/* --- CTA Section --- */
.page-gdpr__cta-section {
  background-color: #ffffff;
  padding: 60px 0;
  text-align: center;
  color: #333333;
}

.page-gdpr__cta-section .page-gdpr__section-title {
  color: #1A202C; /* Dark title on light background */
}

.page-gdpr__cta-section .page-gdpr__description {
  color: #333333;
}

/* --- Register Section --- */
.page-gdpr__register-section {
  background-color: #1A202C;
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-gdpr__hero-title {
    font-size: 3rem;
  }
  .page-gdpr__section-title {
    font-size: 2.2rem;
  }
  .page-gdpr__sub-title {
    font-size: 1.6rem;
  }
  .page-gdpr__image-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-gdpr__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    min-height: 400px; /* Adjust min-height for mobile hero */
  }
  .page-gdpr__hero-title {
    font-size: 2.5rem;
  }
  .page-gdpr__hero-description {
    font-size: 1.1rem;
  }
  .page-gdpr__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-gdpr__sub-title {
    font-size: 1.4rem;
  }
  .page-gdpr__container {
    padding: 0 15px;
  }
  
  /* Responsive Images */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-gdpr__image-container,
  .page-gdpr__image-text {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Responsive Videos */
  .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;
  }
  /* Ensure video wrapper maintains aspect ratio without overflow */
  .page-gdpr__video-wrapper {
    padding-bottom: 56.25% !important; /* Keep 16:9 aspect ratio */
    height: 0 !important;
  }
  
  /* Responsive Buttons */
  .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; /* Add padding to prevent text touching edges */
  }
  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-gdpr__faq-item {
    margin-bottom: 10px;
  }
  .page-gdpr__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-gdpr__faq-answer {
    padding: 0 15px;
  }
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-title {
    font-size: 2rem;
  }
  .page-gdpr__hero-description {
    font-size: 1rem;
  }
  .page-gdpr__section-title {
    font-size: 1.5rem;
  }
  .page-gdpr__sub-title {
    font-size: 1.2rem;
  }
}