/* style/gdpr.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #000000; /* From body background */
  --btn-register: #C30808;
  --btn-login: #C30808;
  --font-login-register: #FFFF00;
}

/* Base styles for the GDPR page content */
.page-gdpr {
  color: var(--text-light); /* Default to light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-dark); /* Ensure background matches body */
}

.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-gdpr__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-gdpr__description {
  font-size: clamp(1em, 1.5vw, 1.25em);
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-gdpr__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background-color: var(--btn-register);
  color: var(--font-login-register);
  border: 2px solid var(--btn-register);
}

.page-gdpr__btn-primary:hover {
  background-color: darken(var(--btn-register), 10%);
  color: var(--font-login-register);
}

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

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

.page-gdpr__btn-center {
  margin: 20px auto;
  display: block;
  width: fit-content;
  text-align: center;
}

.page-gdpr__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--secondary-color); /* Light background for content */
  color: var(--text-dark); /* Dark text for light background */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-30px);
  position: relative;
  z-index: 1;
}

.page-gdpr__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-gdpr__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: left;
}

.page-gdpr__content-area p {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-gdpr__image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  object-fit: cover;
}

.page-gdpr__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-gdpr__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

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

.page-gdpr__link {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-gdpr__link:hover {
  color: darken(var(--primary-color), 10%);
}

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

.page-gdpr__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1.15em;
  color: var(--primary-color);
  cursor: pointer;
  background-color: var(--secondary-color);
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
  background-color: #f5f5f5;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
  background-color: #f5f5f5;
}

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

.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: 15px 25px 20px;
  font-size: 1em;
  color: var(--text-dark);
  background-color: #f9f9f9;
}

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

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

.page-gdpr__faq-item summary {
  list-style: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-gdpr__description {
    font-size: clamp(1em, 2vw, 1.15em);
  }
  .page-gdpr__section-title {
    font-size: 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;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-gdpr__description {
    font-size: clamp(0.9em, 2.5vw, 1em);
  }

  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .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__content-area {
    padding: 20px 15px;
    transform: translateY(-20px);
  }

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

  .page-gdpr__list {
    margin-left: 20px;
  }

  .page-gdpr__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__container,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

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

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

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-gdpr__description {
    font-size: clamp(0.85em, 3vw, 0.95em);
  }
  .page-gdpr__section-title {
    font-size: 1.6em;
  }
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    padding: 10px 20px;
  }
}