/* style/gdpr.css */

:root {
  --page-gdpr-primary-color: #0A2463;
  --page-gdpr-secondary-color: #E3B505;
  --page-gdpr-text-light: #ffffff;
  --page-gdpr-text-dark: #333333;
  --page-gdpr-bg-dark: #0a0a0a; /* From body background */
  --page-gdpr-card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --page-gdpr-card-bg-light-mode: #ffffff;
}

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

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-gdpr-primary-color);
  color: var(--page-gdpr-text-light);
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-gdpr__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--page-gdpr-secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-gdpr__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-gdpr-text-light);
}

.page-gdpr__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-gdpr__section-title {
  font-size: 2.2em;
  color: var(--page-gdpr-secondary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-gdpr__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

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

/* Light Background Section */
.page-gdpr__light-bg {
  background-color: var(--page-gdpr-card-bg-light-mode);
  color: var(--page-gdpr-text-dark);
  padding: 60px 0;
}

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

.page-gdpr__light-bg .page-gdpr__paragraph,
.page-gdpr__light-bg .page-gdpr__list-text {
  color: var(--page-gdpr-text-dark);
}

/* Dark Background Section */
.page-gdpr__dark-section {
  background-color: var(--page-gdpr-primary-color);
  color: var(--page-gdpr-text-light);
  padding: 60px 0;
}

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

.page-gdpr__dark-section .page-gdpr__paragraph,
.page-gdpr__dark-section .page-gdpr__list-text {
  color: var(--page-gdpr-text-light);
}

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

.page-gdpr__card {
  background-color: var(--page-gdpr-card-bg-dark-mode);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-gdpr-secondary-color);
}

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

/* Rights Section List */
.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-gdpr__list-item {
  background-color: var(--page-gdpr-card-bg-light-mode);
  border-left: 5px solid var(--page-gdpr-primary-color);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.page-gdpr__list-title {
  font-size: 1.4em;
  color: var(--page-gdpr-primary-color);
  margin-bottom: 10px;
}

.page-gdpr__list-text {
  font-size: 1em;
  color: var(--page-gdpr-text-dark);
}

/* CTA Buttons */
.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.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.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

/* FAQ Section */
.page-gdpr__faq-section {
  padding: 60px 0;
  background-color: var(--page-gdpr-primary-color);
  color: var(--page-gdpr-text-light);
}

.page-gdpr__faq-item {
  background-color: var(--page-gdpr-card-bg-dark-mode);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-gdpr-secondary-color);
  transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--page-gdpr-text-light);
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px 25px 25px;
}

.page-gdpr__faq-text {
  margin-bottom: 0;
  font-size: 1em;
}

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

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

  .page-gdpr__intro-text {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-gdpr__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-gdpr__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-gdpr__paragraph,
  .page-gdpr__card-text,
  .page-gdpr__list-text,
  .page-gdpr__faq-text {
    font-size: 0.95em;
  }

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

  .page-gdpr__card {
    padding: 25px;
  }

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

  .page-gdpr__list-item {
    padding: 15px 20px;
  }

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

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

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

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

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

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

  /* Image responsive */
  .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-section,
  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__contact-section,
  .page-gdpr__commitment-section,
  .page-gdpr__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: 1.8em;
  }

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

  .page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}