/* style/gdpr.css */

/* Variables */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
  --background-dark: #000000;
  --background-light: #FFFFFF;
  --button-login: #EA7C07;
}

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Should match body background from shared.css */
}

/* Section styling */
.page-gdpr__section {
  padding: 60px 20px;
  text-align: center;
}

.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
  background-color: var(--background-dark); /* Ensure background is dark */
}

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

.page-gdpr__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent light background for text on dark body */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  color: var(--text-color-dark-bg);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: 1.1em;
  color: #E0E0E0; /* Slightly off-white for description */
  margin-bottom: 30px;
}

.page-gdpr__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 600;
  color: var(--primary-color); /* Use primary color for section titles */
  margin-bottom: 30px;
  line-height: 1.3;
  text-align: center;
}

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

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

.page-gdpr__text-block {
  font-size: 1em;
  color: var(--text-color-dark-bg);
  margin-bottom: 20px;
  text-align: left;
}

.page-gdpr__text-center {
  text-align: center;
}

.page-gdpr__small-text {
  font-size: 0.9em;
  color: #BBBBBB;
  margin-top: 15px;
}

/* Card layout for data collection */
.page-gdpr__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__card {
  background: var(--background-light); /* White background for cards */
  color: var(--text-color-light-bg); /* Dark text for cards */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease;
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
}

.page-gdpr__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

.page-gdpr__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-gdpr__card-text {
  font-size: 0.95em;
  color: var(--text-color-light-bg);
}

/* Rights list */
.page-gdpr__rights-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__list-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent background for list items */
  border-left: 4px solid var(--primary-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 4px;
  color: var(--text-color-dark-bg);
  font-size: 1.05em;
}

.page-gdpr__list-item strong {
  color: var(--primary-color);
}

/* Full width image */
.page-gdpr__image-full-width {
  width: 100%;
  height: auto;
  max-width: 1000px;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
}

/* FAQ section */
.page-gdpr__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__faq-item {
  background: var(--background-light); /* White background for FAQ items */
  color: var(--text-color-light-bg); /* Dark text for FAQ items */
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
}

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

.page-gdpr__faq-question::-webkit-details-marker {
  display: none;
}

.page-gdpr__faq-question::marker {
  display: none;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg); /* Rotate for minus sign */
}

.page-gdpr__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-color-light-bg);
  line-height: 1.7;
}

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
}

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

.page-gdpr__btn-primary:hover {
  background-color: #1a8cc7; /* Slightly darker primary */
  border-color: #1a8cc7;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(38, 169, 224, 0.3);
}

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

.page-gdpr__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(38, 169, 224, 0.3);
}

/* Links */
.page-gdpr__link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-gdpr__link:hover {
  color: #1a8cc7;
}

/* Background color variants for sections/cards */
.page-gdpr__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-color-dark-bg);
}

.page-gdpr__light-bg {
  background-color: var(--background-light);
  color: var(--text-color-light-bg);
}

.page-gdpr__dark-section {
  background-color: rgba(255, 255, 255, 0.03); /* Slightly lighter dark for contrast */
  color: var(--text-color-dark-bg);
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-gdpr__hero-content {
    max-width: 700px;
  }
}

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

  .page-gdpr__hero-image {
    margin-bottom: 30px;
  }

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

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

  .page-gdpr__description {
    font-size: 1em;
  }

  .page-gdpr__section {
    padding: 40px 15px;
  }

  .page-gdpr__section-title {
    font-size: 1.8em;
  }

  .page-gdpr__sub-title {
    font-size: 1.4em;
  }

  .page-gdpr__content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__card {
    padding: 20px;
  }

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

  .page-gdpr__list-item {
    font-size: 0.95em;
  }

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

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

  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Images and video responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-section,
  .page-gdpr__content-grid,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video responsiveness (if any, though none for this page) */
  .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;
  }
}

/* Ensure no filter on images */
.page-gdpr img {
  filter: none !important;
}