/* style/gdpr.css */

/* Variables */
:root {
  --page-gdpr-primary-color: #0A2239;
  --page-gdpr-secondary-color: #E5A400;
  --page-gdpr-text-dark: #333333;
  --page-gdpr-text-light: #ffffff;
  --page-gdpr-bg-light: #f8f8f8;
  --page-gdpr-border-color: #e0e0e0;
}

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

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

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

.page-gdpr__content-section,
.page-gdpr__rights-section,
.page-gdpr__exercise-rights-section,
.page-gdpr__cta-section {
  padding: 60px 20px;
  background-color: var(--page-gdpr-bg-light);
  color: var(--page-gdpr-text-dark);
}

.page-gdpr__principles-section,
.page-gdpr__measures-section,
.page-gdpr__faq-section {
  padding: 60px 20px;
  background-color: var(--page-gdpr-primary-color);
  color: var(--page-gdpr-text-light);
}

/* Headings */
.page-gdpr__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-gdpr-text-light);
}

.page-gdpr__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit color from parent section */
}

.page-gdpr h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: inherit;
}

/* Paragraphs */
.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__paragraph {
  margin-bottom: 20px;
  font-size: 1.1em;
}

/* Lists */
.page-gdpr__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-gdpr__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-gdpr__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--page-gdpr-secondary-color);
  font-weight: bold;
  font-size: 1.2em;
}

/* Images */
.page-gdpr__image-wrapper {
  margin: 40px auto;
  text-align: center;
}

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

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary,
.page-gdpr__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-gdpr__btn-primary:hover {
  background-color: darken(var(--page-gdpr-secondary-color), 10%);
  border-color: darken(var(--page-gdpr-secondary-color), 10%);
}

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

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

.page-gdpr__btn-link {
  color: var(--page-gdpr-secondary-color);
  padding: 0;
  border: none;
  background: none;
  text-decoration: underline;
  margin-top: 10px;
  display: block;
  text-align: left;
}

.page-gdpr__btn-link:hover {
  color: darken(var(--page-gdpr-secondary-color), 10%);
}

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

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

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

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-gdpr__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--page-gdpr-secondary-color);
}

.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: rgba(255, 255, 255, 0.8);
}

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

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

/* Color Contrast Specifics (using BEM for clarity) */
.page-gdpr__dark-section {
  background-color: var(--page-gdpr-primary-color);
  color: var(--page-gdpr-text-light);
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-gdpr__main-title {
    font-size: 2.2em;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
  }
  .page-gdpr__intro-text {
    font-size: 1.1em;
  }
  .page-gdpr__paragraph,
  .page-gdpr__list-item {
    font-size: 1em;
  }
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    padding: 10px 20px;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header */
  }
  .page-gdpr__content-section,
  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__measures-section,
  .page-gdpr__exercise-rights-section,
  .page-gdpr__faq-section,
  .page-gdpr__cta-section {
    padding: 40px 15px;
  }
  .page-gdpr__container {
    padding: 0 15px;
  }
  .page-gdpr__main-title {
    font-size: 2em;
  }
  .page-gdpr__section-title {
    font-size: 1.6em;
  }
  .page-gdpr__image-full-width {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }
  .page-gdpr__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary,
  .page-gdpr__btn-link {
    width: 100% !important;
    margin-right: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-gdpr__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-gdpr__faq-answer {
    padding: 0 20px;
  }
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 10px 20px 20px;
  }
  /* Content area images */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}