:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg: #08160F; /* Main background, matching body */
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Base styles for the GDPR page content */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for light on dark */
  background-color: var(--bg); /* Dark background from shared.css */
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-gdpr__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  padding: 20px;
  color: var(--text-main); /* Light text for dark background */
}

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

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

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-gdpr__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-gdpr__btn-secondary:hover {
  background: var(--border);
  color: var(--bg); /* Dark text on green background */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 122, 78, 0.4);
}

/* General Section Styling */
.page-gdpr__section {
  padding: 60px 0;
  position: relative;
}

.page-gdpr__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-gdpr__introduction p,
.page-gdpr__rights p,
.page-gdpr__contact p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-gdpr__introduction,
.page-gdpr__rights,
.page-gdpr__contact {
  background-color: var(--bg); /* Dark background */
  color: var(--text-secondary);
}

/* Dark Section Specifics */
.page-gdpr__dark-section {
  background-color: var(--card-bg); /* Darker green background */
  color: var(--text-main);
}

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

.page-gdpr__dark-section p {
  color: var(--text-secondary);
}

/* List styles */
.page-gdpr__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-gdpr__list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

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

.page-gdpr__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  max-width: 800px; /* Constrain width */
}

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

.page-gdpr__security-item {
  background-color: var(--deep-green); /* Slightly different dark background */
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.page-gdpr__security-item img {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-gdpr__security-item p {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Contact Section */
.page-gdpr__contact-list {
  list-style-type: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-gdpr__contact-list li {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.page-gdpr__contact-list li strong {
  color: var(--text-main);
}

.page-gdpr__link {
  color: var(--glow); /* Use glow color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-gdpr__link:hover {
  color: var(--gold); /* Gold on hover */
  text-decoration: underline;
}

.page-gdpr__btn-contact {
  margin-top: 20px;
}

/* FAQ Section */
.page-gdpr__faq {
  background-color: var(--bg); /* Dark background */
  color: var(--text-secondary);
}

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

.page-gdpr__faq-item {
  background-color: var(--card-bg); /* Darker green for FAQ items */
  border: 1px solid var(--divider);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-gdpr__faq-item[open] {
  background-color: var(--deep-green); /* Slightly change color when open */
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  user-select: none;
  list-style: none; /* Remove default marker for summary */
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-gdpr__faq-question:hover {
  background-color: rgba(var(--primary-color-rgb), 0.1); /* Subtle hover effect */
}

.page-gdpr__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--glow);
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X */
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary);
  max-height: 0; /* For JS fallback, if not using <details> */
  overflow: hidden; /* For JS fallback */
  transition: max-height 0.3s ease-out, padding-top 0.3s ease-out; /* For JS fallback */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
  max-height: 500px; /* Arbitrary large value for <details> or JS open state */
  padding-top: 10px;
}

/* Call to Action Section */
.page-gdpr__call-to-action .page-gdpr__container {
  text-align: center;
  padding: 60px 20px;
  border-radius: 15px;
  background-color: var(--card-bg); /* Darker green */
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.page-gdpr__call-to-action .page-gdpr__section-title {
  color: var(--text-main);
  margin-bottom: 25px;
}

.page-gdpr__call-to-action p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Image Responsive Styles */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-gdpr__hero-content {
    max-width: 90%;
  }

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

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

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

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

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

  .page-gdpr__hero-image-wrapper {
    max-height: 250px; /* Adjust height for mobile */
  }

  .page-gdpr__hero-content {
    position: static; /* Remove absolute positioning on mobile */
    transform: none;
    padding: 20px;
    background-color: rgba(8, 22, 15, 0.8); /* Dark overlay for text if image is too bright */
    width: 100%;
    box-sizing: border-box;
  }

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

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

  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

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

  .page-gdpr__section-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .page-gdpr__introduction p,
  .page-gdpr__rights p,
  .page-gdpr__contact p,
  .page-gdpr__list li,
  .page-gdpr__security-item p,
  .page-gdpr__call-to-action p {
    font-size: 0.95rem;
  }

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

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

  /* Force image responsiveness on 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__security-item,
  .page-gdpr__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__hero-section {
    padding-top: 10px !important; /* body already handles header-offset */
  }

  /* Button container mobile adaptation */
  .page-gdpr__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-gdpr__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical arrangement */
  }
}

/* Emergency contrast fix classes */
.page-gdpr__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-gdpr__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}