/* style/gdpr.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #26A9E0;
}

.page-gdpr {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Default text color for light backgrounds */
  line-height: 1.6;
}

.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;
  color: var(--text-light);
  background: var(--bg-dark);
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-gdpr__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-gdpr__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

.page-gdpr__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-gdpr__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-gdpr__btn-primary {
  display: inline-block;
  background: var(--login-color);
  color: var(--text-light);
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
}

.page-gdpr__btn-primary:hover {
  background: #D66D06; /* Darkened version of --login-color */
}

/* Section Titles */
.page-gdpr__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

/* General Content Sections */
.page-gdpr__introduction,
.page-gdpr__your-rights,
.page-gdpr__data-collection,
.page-gdpr__security-measures,
.page-gdpr__contact,
.page-gdpr__faq {
  padding: 60px 0;
}

.page-gdpr__dark-section {
  background: var(--bg-dark);
  color: var(--text-light);
}

.page-gdpr__dark-section .page-gdpr__section-title {
  color: var(--secondary-color);
}

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

.page-gdpr__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-gdpr__image--centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-gdpr__card {
  background: var(--secondary-color);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-gdpr__dark-section .page-gdpr__card {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.page-gdpr__dark-section .page-gdpr__card-title {
  color: var(--secondary-color);
}

/* Lists */
.page-gdpr__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-gdpr__list li {
  margin-bottom: 10px;
}

/* Secondary Button */
.page-gdpr__btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 20px;
}

.page-gdpr__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

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

.page-gdpr__faq-item {
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-gdpr__faq-item[open] {
  background: #f9f9f9;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none;
}

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

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  content: '−';
}

.page-gdpr__faq-answer {
  padding: 0 20px 20px 20px;
  color: var(--text-dark);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__section-title {
    font-size: 1.8em;
  }
  .page-gdpr__main-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-gdpr__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }
  .page-gdpr__hero-content {
    padding: 15px;
  }
  .page-gdpr__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-gdpr__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-gdpr__section-title {
    font-size: 1.5em;
    margin-bottom: 30px;
  }
  .page-gdpr__rights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-gdpr__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .page-gdpr__card-title {
    font-size: 1.2em;
  }
  .page-gdpr__introduction,
  .page-gdpr__what-is-gdpr,
  .page-gdpr__your-rights,
  .page-gdpr__data-collection,
  .page-gdpr__security-measures,
  .page-gdpr__contact,
  .page-gdpr__faq {
    padding: 40px 0;
  }

  /* Mobile responsive for images */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-gdpr__container,
  .page-gdpr__card,
  .page-gdpr__hero-section,
  .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-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-gdpr__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile responsive for 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;
    text-align: center;
  }
  .page-gdpr__hero-content .page-gdpr__btn-primary { /* Specific override for hero button */
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* Ensure contrast for dark background elements */
.page-gdpr__dark-bg {
  color: var(--text-light); /* Deep dark background requires light text */
}

.page-gdpr__dark-bg .page-gdpr__section-title {
  color: var(--secondary-color);
}

.page-gdpr__dark-bg p,
.page-gdpr__dark-bg li {
  color: var(--text-light);
}

/* Ensure contrast for light background elements */
.page-gdpr__light-bg {
  color: var(--text-dark); /* Light background requires dark text */
}

.page-gdpr__light-bg .page-gdpr__section-title {
  color: var(--primary-color);
}

.page-gdpr__light-bg p,
.page-gdpr__light-bg li {
  color: var(--text-dark);
}

/* Placeholder for darken function */
/* This should be handled by a preprocessor or hardcoded for simple colors */
/* For example, if var(--login-color) is #EA7C07, darken it to #D66D06 */
.page-gdpr__btn-primary:hover {
  background: #D66D06;
}