/* Colors from custom palette */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-color: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background-color); /* Default background for the page */
}

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

.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding as shared.css handles body padding */
  padding-bottom: 60px;
  background-color: var(--primary-color);
}

.page-gdpr__hero-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -150px; /* Overlap slightly for visual interest, but not text on image */
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-gdpr__main-title {
  font-size: 2.8em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__hero-description {
  font-size: 1.1em;
  color: var(--text-main);
  margin-bottom: 30px;
}

.page-gdpr__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px var(--glow-color);
}

.page-gdpr__section {
  padding: 60px 0;
}

.page-gdpr__section-title {
  font-size: 2.2em;
  color: var(--text-black);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-gdpr__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-gdpr__introduction p,
.page-gdpr__data-protection p,
.page-gdpr__contact-us p {
  font-size: 1.05em;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-gdpr__introduction strong,
.page-gdpr__data-protection strong {
  color: var(--primary-color);
}

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

.page-gdpr__principle-card,
.page-gdpr__right-item,
.page-gdpr__protection-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-gdpr__principle-card:hover,
.page-gdpr__right-item:hover,
.page-gdpr__protection-item:hover {
  transform: translateY(-5px);
}

.page-gdpr__principle-image,
.page-gdpr__right-image,
.page-gdpr__protection-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-gdpr__card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-gdpr__principle-card p,
.page-gdpr__right-item p,
.page-gdpr__protection-item p {
  color: var(--text-main);
  font-size: 0.95em;
}

.page-gdpr__dark-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-gdpr__dark-section .page-gdpr__section-title {
  color: #ffffff;
}

.page-gdpr__dark-section .page-gdpr__section-title::after {
  background-color: #ffffff;
}

.page-gdpr__dark-section .page-gdpr__principle-card,
.page-gdpr__dark-section .page-gdpr__right-item,
.page-gdpr__dark-section .page-gdpr__protection-item {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

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

.page-gdpr__dark-section .page-gdpr__principle-card p,
.page-gdpr__dark-section .page-gdpr__right-item p,
.page-gdpr__dark-section .page-gdpr__protection-item p {
  color: #f0f0f0;
}

.page-gdpr__light-bg {
  background-color: var(--background-color);
  color: var(--text-main);
}

.page-gdpr__contact-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #ffffff;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary-color);
}

.page-gdpr__link {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-gdpr__link:hover {
  color: var(--secondary-color);
}

.page-gdpr__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--primary-color);
  list-style: none; /* Remove default marker for details */
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg);
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--text-main);
  font-size: 1em;
}

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

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-gdpr__hero-content {
    margin-top: -100px;
    padding: 30px 20px;
  }

  .page-gdpr__main-title {
    font-size: 2.2em;
  }

  .page-gdpr__hero-description {
    font-size: 1em;
  }

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

  .page-gdpr__principles-grid,
  .page-gdpr__rights-list,
  .page-gdpr__protection-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-gdpr__principle-image,
  .page-gdpr__right-image,
  .page-gdpr__protection-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-bottom: 40px;
  }

  .page-gdpr__hero-image {
    height: 350px;
  }

  .page-gdpr__hero-content {
    margin-top: -80px;
    padding: 20px 15px;
  }

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

  .page-gdpr__hero-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  .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__contact-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px;
  }

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

  .page-gdpr__section-title {
    font-size: 1.5em;
    margin-bottom: 30px;
  }

  .page-gdpr__container {
    padding: 0 15px;
  }

  .page-gdpr__principles-grid,
  .page-gdpr__rights-list,
  .page-gdpr__protection-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-gdpr__principle-image,
  .page-gdpr__right-image,
  .page-gdpr__protection-image {
    height: 180px;
  }

  /* Images and containers for mobile */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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