:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --register-login-btn: #C30808;
  --register-login-font: #FFFF00;
  --border-color: #e0e0e0;
  --background-light: #f9f9f9;
}

.page-gdpr {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark);
  line-height: 1.6;
  background-color: var(--secondary-color); /* Body background is white, so main text is dark */
}

/* Hero Section */
.page-gdpr__hero-section {
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  text-align: center;
  padding: 10px 0 40px; /* Small top padding for the first section */
  background-color: var(--background-light);
  color: var(--text-color-dark);
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-gdpr__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px; /* Space between image and text */
}

.page-gdpr__hero-content {
  max-width: 900px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-gdpr__main-title {
  font-size: clamp(28px, 4vw, 48px); /* H1 font size with clamp */
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-gdpr__hero-description {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--text-color-dark);
}

/* General Section Styling */
.page-gdpr__section {
  padding: 60px 0;
  background-color: var(--secondary-color);
  border-bottom: 1px solid var(--border-color);
}

.page-gdpr__section:last-of-type {
  border-bottom: none;
}

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

.page-gdpr__section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-gdpr__content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 20px;
}

.page-gdpr__content-wrapper:last-child {
  margin-bottom: 0;
}

.page-gdpr__content-wrapper img {
  flex-shrink: 0;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__content-wrapper .page-gdpr__text-block {
  flex-grow: 1;
}

.page-gdpr__section-image--right {
  order: 1; /* Move image to right for specific sections */
}

.page-gdpr__text-block h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-gdpr__text-block p {
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--text-color-dark);
}

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

.page-gdpr__text-block ul li {
  margin-bottom: 8px;
  font-size: 16px;
}

.page-gdpr__text-block strong {
  color: var(--primary-color);
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to wrap */
}

.page-gdpr__btn-primary {
  background: var(--register-login-btn); /* Using specific color for primary button */
  color: var(--text-color-light); /* White text for contrast */
  border: 2px solid var(--register-login-btn);
}

.page-gdpr__btn-primary:hover {
  background: #a40606; /* Darken on hover */
  border-color: #a40606;
}

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

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

.page-gdpr__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-gdpr__cta-buttons .page-gdpr__btn-primary,
.page-gdpr__cta-buttons .page-gdpr__btn-secondary {
    flex: 1 1 auto; /* Allow buttons to grow/shrink */
    min-width: 180px; /* Minimum width for buttons */
}

/* Contact Links */
.page-gdpr__contact-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

.page-gdpr__contact-link:hover {
  color: #005a2e;
}

/* FAQ Section Styling (using <details>) */
details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none; /* Hide default marker */
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question:hover {
  background: var(--background-light);
}
.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color-dark);
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question:hover .page-gdpr__faq-qtext {
  color: var(--primary-color);
}

.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}
details.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar on open */
}

details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 20px 20px;
  background: var(--background-light);
  border-radius: 0 0 8px 8px;
  color: var(--text-color-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__content-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .page-gdpr__content-wrapper img {
    max-width: 80%;
    margin-bottom: 30px;
  }
  .page-gdpr__section-image--right {
    order: unset; /* Reset order for smaller screens */
  }
  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-gdpr__cta-buttons .page-gdpr__btn-primary,
  .page-gdpr__cta-buttons .page-gdpr__btn-secondary {
    width: 100%;
    max-width: 300px; /* Limit button width even when stacked */
  }
}

@media (max-width: 768px) {
  /* 1. Top Section: __top-text (or hero-section) */
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* Small top padding, not --header-offset */
    padding-bottom: 30px !important;
  }
  .page-gdpr__hero-content {
    padding: 0 15px !important;
  }
  .page-gdpr__main-title {
    font-size: 28px !important;
    margin-bottom: 10px !important;
  }
  .page-gdpr__hero-description {
    font-size: 16px !important;
  }

  /* 2. Landing Page Two-Column Modules (not explicitly present as two-column in this page, but general content-wrapper applies) */
  .page-gdpr__content-wrapper {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .page-gdpr__content-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px !important;
  }
  .page-gdpr__section-image--right {
    order: unset !important;
  }

  /* 3. General Images & Containers */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-gdpr__section,
  .page-gdpr__container,
  .page-gdpr__content-wrapper,
  .page-gdpr__text-block,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-gdpr__section-title {
    font-size: 24px !important;
    margin-bottom: 30px !important;
  }
  .page-gdpr__text-block h3 {
    font-size: 20px !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
  }
  .page-gdpr__text-block p,
  .page-gdpr__text-block ul li {
    font-size: 15px !important;
  }
  .page-gdpr__section {
    padding: 40px 0 !important;
  }

  /* 4. Buttons: start-btn, reg-button (general btn classes apply) */
  .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 !important;
    padding-right: 15px !important;
  }
  .page-gdpr__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px !important; /* Padding handled by individual buttons */
    padding-right: 0px !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
  }
  .page-gdpr__cta-buttons .page-gdpr__btn-primary,
  .page-gdpr__cta-buttons .page-gdpr__btn-secondary {
    min-width: unset !important; /* Remove min-width for full flexibility */
  }

  /* FAQ specific mobile styles */
  details.page-gdpr__faq-item summary.page-gdpr__faq-question {
    padding: 15px !important;
  }
  .page-gdpr__faq-qtext {
    font-size: 16px !important;
  }
  .page-gdpr__faq-toggle {
    font-size: 20px !important;
    width: 24px !important;
    height: 24px !important;
  }
  details.page-gdpr__faq-item .page-gdpr__faq-answer {
    padding: 0 15px 15px !important;
  }
  .page-gdpr__faq-answer p {
    font-size: 14px !important;
  }
}