:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --card-bg: #D32F2F;
  --page-bg: #B71C1C;
  --text-main: #FFF5E1;
  --border-color: #F2B544;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
}

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

.page-gdpr__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

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

.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--deep-red-color);
  overflow: hidden;
}

.page-gdpr__hero-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-gdpr__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  color: var(--text-main);
  z-index: 1;
  max-width: 100%;
  box-sizing: border-box;
}

.page-gdpr__hero-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--gold-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  margin: 10px;
  box-sizing: border-box;
}

.page-gdpr__btn-primary {
  background: var(--button-gradient);
  color: #333333; /* Dark text for light button */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-gdpr__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-gdpr__btn-secondary {
  background-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--deep-red-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-gdpr__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-gdpr__text-block {
  font-size: 1.1em;
  color: var(--text-main);
  margin-bottom: 20px;
  text-align: justify;
}

.page-gdpr__image-content {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 30px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-gdpr__list {
  list-style-type: none;
  padding: 0;
  margin: 20px 0;
}

.page-gdpr__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--gold-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: var(--text-main);
  font-size: 1.05em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.page-gdpr__dark-section {
  background-color: var(--deep-red-color);
  color: var(--text-main);
}

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

.page-gdpr__faq-section {
  text-align: center;
}

.page-gdpr__faq-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-gdpr__faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-gdpr__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-gdpr__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--gold-color);
  cursor: pointer;
  background-color: var(--primary-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-gdpr__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

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

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

.page-gdpr__faq-answer {
  padding: 20px;
  font-size: 1.05em;
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
}

.page-gdpr__faq-answer p {
  margin-bottom: 0;
  color: var(--text-main);
}

/* Desktop specific styles for buttons and containers */
.page-gdpr__hero-content .page-gdpr__btn-primary,
.page-gdpr__hero-content .page-gdpr__btn-secondary {
    width: auto;
    max-width: 300px; /* Example desktop width */
}

.page-gdpr__contact-section .page-gdpr__btn-primary,
.page-gdpr__contact-section .page-gdpr__btn-secondary {
    width: auto;
    max-width: 350px; /* Example desktop width */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-gdpr__hero-title {
    font-size: 2.8em;
  }

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

@media (max-width: 768px) {
  .page-gdpr__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__hero-image {
    height: 400px;
    object-fit: contain !important; /* Mobile hero image should contain, not cover */
    filter: brightness(0.8); /* Slightly less dim on mobile */
  }

  .page-gdpr__hero-content {
    padding: 20px 15px;
    position: relative; /* Change to relative to be below image */
    background: none; /* No gradient overlay */
    background-color: var(--deep-red-color); /* Solid background color */
  }

  .page-gdpr__hero-section {
    flex-direction: column;
    padding-top: 10px !important;
  }

  .page-gdpr__hero-title {
    font-size: 2em !important;
    margin-bottom: 10px;
  }

  .page-gdpr__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .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;
    margin: 10px 0 !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__hero-content .page-gdpr__btn-primary,
  .page-gdpr__hero-content .page-gdpr__btn-secondary {
      max-width: 100% !important;
      width: 100% !important;
  }

  .page-gdpr__contact-section .page-gdpr__btn-primary,
  .page-gdpr__contact-section .page-gdpr__btn-secondary {
      max-width: 100% !important;
      width: 100% !important;
  }

  .page-gdpr__contact-section .page-gdpr__btn-primary:last-of-type {
      margin-top: 10px;
  }

  .page-gdpr__contact-section .page-gdpr__btn-primary:first-of-type {
      margin-bottom: 10px;
  }

  .page-gdpr__section-title {
    font-size: 1.8em !important;
  }

  .page-gdpr__text-block,
  .page-gdpr__list-item,
  .page-gdpr__faq-answer {
    font-size: 1em;
  }

  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* Buttons container mobile adaptation */
  .page-gdpr__hero-content,
  .page-gdpr__contact-section .page-gdpr__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .page-gdpr__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }

  .page-gdpr__faq-icon {
    width: 150px;
    height: 150px;
  }

  .page-gdpr__list-item {
    padding: 12px 15px;
    font-size: 0.95em;
  }

  /* Ensure content containers are full width and have padding */
  .page-gdpr__intro-section .page-gdpr__container,
  .page-gdpr__data-collection-section .page-gdpr__container,
  .page-gdpr__data-usage-section .page-gdpr__container,
  .page-gdpr__user-rights-section .page-gdpr__container,
  .page-gdpr__security-measures-section .page-gdpr__container,
  .page-gdpr__data-sharing-section .page-gdpr__container,
  .page-gdpr__contact-section .page-gdpr__container,
  .page-gdpr__faq-section .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}