:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B; /* Body background color from shared.css */
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Light text for dark body background */
  background-color: var(--deep-navy); /* Ensure consistency if not inherited */
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--primary-color); /* Fallback/additional styling */
  overflow: hidden;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__main-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); /* Responsive H1 font size */
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* General Sections */
.page-gdpr__content-section,
.page-gdpr__data-collection-section,
.page-gdpr__user-rights-section,
.page-gdpr__security-measures-section,
.page-gdpr__contact-info-section {
  padding: 60px 0;
}

.page-gdpr__light-bg {
  background-color: var(--deep-navy); /* Using deep-navy for light section means text needs to be light */
  color: var(--text-main); /* Ensure light text on deep-navy */
}

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

.page-gdpr__section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-gdpr__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
  text-align: justify;
}

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

.page-gdpr__card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
}

.page-gdpr__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-gdpr__card-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* User Rights List */
.page-gdpr__rights-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-gdpr__list-item {
  background-color: var(--card-bg); /* Use card background for list items for contrast */
  color: var(--text-secondary);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid var(--secondary-color);
  border-radius: 5px;
  font-size: 1rem;
}

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

/* CTA Buttons */
.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

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

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

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

/* Full Width Image */
.page-gdpr__image-full-width {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-gdpr__hero-content {
    padding: 30px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }

  .page-gdpr__section-title {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
  }

  .page-gdpr__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset, small top padding for section */
  }

  .page-gdpr__hero-content {
    padding: 20px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  .page-gdpr__description {
    font-size: 1rem;
  }

  .page-gdpr__content-section,
  .page-gdpr__data-collection-section,
  .page-gdpr__user-rights-section,
  .page-gdpr__security-measures-section,
  .page-gdpr__contact-info-section {
    padding: 40px 0;
  }

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

  .page-gdpr__card-grid {
    grid-template-columns: 1fr;
  }

  .page-gdpr__card {
    padding: 20px;
  }

  .page-gdpr__card-title {
    font-size: 1.2rem;
  }

  .page-gdpr__text-block {
    font-size: 0.95rem;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Ensure padding for text */
    padding-right: 15px;
  }

  /* Images responsive rules */
  .page-gdpr img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__hero-image,
  .page-gdpr__card-image,
  .page-gdpr__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Remove min-width for mobile */
    min-height: unset !important;
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-content {
    padding: 15px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.3rem, 6vw, 2rem);
  }

  .page-gdpr__section-title {
    font-size: clamp(1.2rem, 4.5vw, 1.8rem);
  }
}