:root {
  --primary-color: #0A2A5B;
  --secondary-color: #FFD700;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark: #000000; /* Body background from shared.css */
  --background-light: #f9f9f9;
  --border-color: #e0e0e0;
}

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Default to light text for dark body background */
  background-color: var(--background-dark); /* Should match body background */
}

/* Ensure padding-top for fixed header */
.page-gdpr__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default, mobile updated by shared.js */
}

/* General section styling */
.page-gdpr__section {
  padding: 80px 20px;
  text-align: center;
}

.page-gdpr__section-title {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--secondary-color); /* Gold for titles */
}

.page-gdpr__description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

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

/* Hero Section */
.page-gdpr__hero-section {
  background-color: var(--primary-color);
  background-image: url('[GALLERY:hero:1920x1080:gdpr,privacy,security,kubet_compliance]');
  background-size: cover;
  background-position: center;
  color: var(--text-color-light);
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-gdpr__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-gdpr__hero-section .page-gdpr__container {
  position: relative;
  z-index: 2;
}

.page-gdpr__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-section .page-gdpr__description {
  font-size: 20px;
  max-width: 900px;
  margin-bottom: 40px;
}

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

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: #000000; /* Changed to black for contrast on gold background */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  min-width: 200px;
}

.page-gdpr__cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-gdpr__cta-button--secondary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-gdpr__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: #000000; /* Changed to black for contrast on gold background */
  border-color: var(--primary-color);
}

/* Content Grid Layout */
.page-gdpr__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}

.page-gdpr__content-grid--reverse {
  grid-template-areas: "image text"; /* Default order */
}

.page-gdpr__content-grid--reverse .page-gdpr__text-block {
  grid-area: text;
}

.page-gdpr__content-grid--reverse .page-gdpr__image-wrapper {
  grid-area: image;
}

.page-gdpr__text-block p {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-gdpr__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-gdpr__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-gdpr__feature-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-color-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-gdpr__feature-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-gdpr__feature-card p {
  font-size: 16px;
  line-height: 1.7;
}

/* Rights List */
.page-gdpr__rights-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
  margin-top: 40px;
}

.page-gdpr__right-item {
  background: #ffffff; /* Light background for light section */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-color-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__right-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-gdpr__right-item p {
  font-size: 16px;
  line-height: 1.7;
}

/* Security List */
.page-gdpr__security-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-gdpr__security-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid var(--secondary-color);
  border-radius: 5px;
  font-size: 17px;
  color: var(--text-color-light);
  line-height: 1.7;
}

.page-gdpr__security-list li strong {
  color: var(--secondary-color);
}

/* FAQ Section */
.page-gdpr__faq-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--background-light); /* Light background */
  color: var(--text-color-dark);
}

.page-gdpr__faq-section .page-gdpr__section-title {
  color: var(--primary-color); /* Dark title for light background */
}

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

/* FAQ item styles */
.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important; /* Use !important and sufficiently large value */
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff; /* White background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark); /* Dark text for answer */
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-color-dark); /* Dark text for question */
}

.page-gdpr__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-gdpr__faq-question:active {
  background: #eeeeee;
}

.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--primary-color); /* Primary color for question title */
}

.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent toggle from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change to X or rotate for minus */
}

/* Contact Section */
.page-gdpr__contact-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--primary-color); /* Primary color background */
  color: var(--text-color-light);
}

.page-gdpr__contact-section .page-gdpr__section-title {
  color: var(--secondary-color);
}

.page-gdpr__contact-info {
  max-width: 700px;
  margin: 40px auto 0 auto;
}

.page-gdpr__contact-info p {
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-gdpr__contact-info a {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-gdpr__contact-info a:hover {
  color: #ffffff;
}

.page-gdpr__contact-info .page-gdpr__cta-button {
  margin-top: 30px;
  background: var(--secondary-color);
  color: #000000; /* Changed to black for contrast on gold background */
  border: none;
}

.page-gdpr__contact-info .page-gdpr__cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
}

/* Color Contrast Enforcement */
.page-gdpr__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

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

.page-gdpr__light-bg .page-gdpr__section-title {
  color: var(--primary-color);
}

.page-gdpr__light-bg .page-gdpr__description {
  color: var(--text-color-dark);
}

/* Links in content */
.page-gdpr p a,
.page-gdpr li a {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-gdpr p a:hover,
.page-gdpr li a:hover {
  color: var(--primary-color);
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 40px;
  }
  .page-gdpr__section-title {
    font-size: 32px;
  }
  .page-gdpr__description {
    font-size: 17px;
  }
  .page-gdpr__content-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-gdpr__main-title {
    font-size: 32px;
  }
  .page-gdpr__description {
    font-size: 16px;
  }
  .page-gdpr__section {
    padding: 60px 15px;
  }
  .page-gdpr__section-title {
    font-size: 28px;
  }
  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-gdpr__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-gdpr__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-gdpr__content-grid--reverse {
    grid-template-areas: unset; /* Reset order for mobile */
  }
  .page-gdpr__content-grid--reverse .page-gdpr__text-block,
  .page-gdpr__content-grid--reverse .page-gdpr__image-wrapper {
    grid-area: unset;
  }
  .page-gdpr__features-grid,
  .page-gdpr__rights-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-gdpr__feature-card,
  .page-gdpr__right-item {
    padding: 25px;
  }
  .page-gdpr__feature-title,
  .page-gdpr__right-title {
    font-size: 20px;
  }
  .page-gdpr__security-list {
    margin: 30px auto;
  }
  .page-gdpr__security-list li {
    font-size: 16px;
    padding: 15px;
  }
  .page-gdpr__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-gdpr__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-gdpr__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-gdpr__faq-answer {
    padding: 0 15px;
  }
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px !important;
  }
  .page-gdpr__contact-section {
    padding: 60px 15px;
  }

  /* Image and video responsive rules */
  .page-gdpr img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce min size even on mobile */
    min-height: 200px !important; /* Enforce min size even on mobile */
  }
  .page-gdpr video,
  .page-gdpr__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__image-wrapper,
  .page-gdpr__video-section,
  .page-gdpr__video-container,
  .page-gdpr__video-wrapper,
  .page-gdpr__cta-buttons,
  .page-gdpr__button-group,
  .page-gdpr__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-gdpr__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-gdpr__cta-buttons {
    flex-direction: column; /* For single column buttons on mobile */
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: 28px;
  }
  .page-gdpr__section-title {
    font-size: 24px;
  }
  .page-gdpr__cta-button {
    font-size: 15px !important;
    padding: 10px 15px !important;
  }
}