.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background: var(--background, #f5f5f5); /* Use shared background variable, fallback to light gray */
}

.page-gdpr__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom text color */
  text-align: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-gdpr__hero-content {
  max-width: 900px;
  margin: 0 auto 30px;
  padding: 0 20px;
  z-index: 2;
}

.page-gdpr__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFF5E1;
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF5E1;
}

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

.page-gdpr__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
  color: #7A0E0E; /* Deep Red for contrast */
  border: none;
}

.page-gdpr__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
  background: transparent;
  color: #FFF5E1;
  border: 2px solid #F2B544; /* Custom border color */
}

.page-gdpr__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-gdpr__hero-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-top: 30px;
}

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

.page-gdpr__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #ffffff; /* Explicitly set light background for content area */
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.page-gdpr__section-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-gdpr__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #C91F17; /* Main brand color */
  margin-bottom: 15px;
}

.page-gdpr__text-block {
  font-size: 17px;
  margin-bottom: 25px;
  line-height: 1.7;
  text-align: justify;
}

.page-gdpr__principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-gdpr__card {
  background: #D32F2F; /* Custom card background */
  color: #FFF5E1; /* Custom text color for card */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-gdpr__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold color for card titles */
}

.page-gdpr__card-text {
  font-size: 15px;
  line-height: 1.6;
  color: #FFF5E1;
}

.page-gdpr__dark-section {
  background: #B71C1C; /* Custom background color */
  color: #FFF5E1;
  padding: 40px 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.page-gdpr__dark-section .page-gdpr__section-title {
  color: #F4D34D; /* Gold color for titles on dark background */
}

.page-gdpr__dark-section .page-gdpr__text-block {
  color: #FFF5E1;
}

.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-gdpr__list-item {
  background: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #F4D34D;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 16px;
  color: #FFF5E1;
}

.page-gdpr__list-item strong {
  color: #F4D34D;
}

.page-gdpr__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-gdpr__process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-gdpr__process-item {
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  background: #D32F2F; /* Custom card background */
  color: #FFF5E1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.page-gdpr__item-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F4D34D;
}

.page-gdpr__item-text {
  font-size: 15px;
  line-height: 1.5;
  color: #FFF5E1;
}

.page-gdpr__faq-list {
  margin-top: 30px;
}

details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Custom border color */
  overflow: hidden;
  background: #B71C1C; /* Custom background color */
  color: #FFF5E1;
}

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;
  transition: background-color 0.3s ease;
}

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

details.page-gdpr__faq-item summary.page-gdpr__faq-question:hover {
  background: #7A0E0E; /* Deep Red for hover */
}

.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1;
}

.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F4D34D; /* Gold color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 20px 20px;
  background: #7A0E0E; /* Deep Red for answer background */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1;
}

.page-gdpr__faq-answer p {
  color: #FFF5E1;
}

.page-gdpr__faq-answer a {
  color: #F4D34D; /* Gold color for links in FAQ answer */
  text-decoration: underline;
}

.page-gdpr__contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
  text-align: center;
  background: #ffffff; /* Light background */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-gdpr__contact-content {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-gdpr__contact-content .page-gdpr__section-title {
  color: #C91F17;
}

.page-gdpr__contact-content .page-gdpr__text-block {
  color: #333333;
}

.page-gdpr__contact-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-top: 30px;
}

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

/* General image responsiveness */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
    padding-bottom: 30px;
  }

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

  .page-gdpr__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    width: 100% !important;
    margin: 10px 0 !important;
    padding: 12px 15px;
  }

  .page-gdpr__hero-image-container,
  .page-gdpr__contact-image-container {
    padding: 0 15px;
  }

  .page-gdpr__content-area,
  .page-gdpr__dark-section,
  .page-gdpr__contact-section {
    padding: 30px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__section-title {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .page-gdpr__text-block {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-gdpr__principles-grid,
  .page-gdpr__list,
  .page-gdpr__process-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__card,
  .page-gdpr__process-item {
    padding: 20px;
  }

  .page-gdpr__card-title,
  .page-gdpr__item-title {
    font-size: 20px;
  }

  .page-gdpr__card-text,
  .page-gdpr__item-text {
    font-size: 14px;
  }

  details.page-gdpr__faq-item summary.page-gdpr__faq-question {
    padding: 15px;
  }

  .page-gdpr__faq-qtext {
    font-size: 15px;
  }

  details.page-gdpr__faq-item .page-gdpr__faq-answer {
    padding: 0 15px 15px;
  }

  /* Ensure all images are responsive */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Button containers mobile adaptation */
  .page-gdpr__hero-content .page-gdpr__btn-primary,
  .page-gdpr__hero-content .page-gdpr__btn-secondary,
  .page-gdpr__contact-section .page-gdpr__btn-primary,
  .page-gdpr__contact-section .page-gdpr__btn-secondary {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 15px !important;
    width: calc(100% - 30px) !important; /* Account for padding */
  }

  .page-gdpr__contact-section .page-gdpr__btn-primary:last-child,
  .page-gdpr__contact-section .page-gdpr__btn-secondary:last-child {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 1024px) {
  .page-gdpr__hero-section {
    flex-direction: column;
  }
  .page-gdpr__hero-content {
    margin-bottom: 20px;
  }
  .page-gdpr__hero-image-container {
    margin-top: 20px;
  }
  .page-gdpr__principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-gdpr__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-gdpr__process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-gdpr__contact-section {
    flex-direction: column;
  }
  .page-gdpr__contact-content {
    margin-bottom: 20px;
  }
  .page-gdpr__contact-image-container {
    margin-top: 20px;
  }
}