/* Base styles for the GDPR page */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text on light body background */
  line-height: 1.6;
}

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

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

/* Hero Section */
.page-gdpr__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  text-align: center;
}

.page-gdpr__hero-image-container {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
}

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

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

.page-gdpr__description {
  font-size: 18px;
  color: #555;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary,
.page-gdpr__btn-login,
.page-gdpr a[class*="button"],
.page-gdpr a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-gdpr__btn-primary:hover {
  background: #005a2e;
  border-color: #005a2e;
}

.page-gdpr__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-gdpr__btn-secondary:hover {
  background: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

/* Custom button colors for Login/Register as per requirements, ensuring WCAG AA contrast */
.page-gdpr__btn-login {
  background: #C30808;
  color: #FFFFFF; /* Changed from #FFFF00 to ensure WCAG AA contrast (5.6:1) */
  border: 2px solid #C30808;
}

.page-gdpr__btn-login:hover {
  background: #9d0606;
  border-color: #9d0606;
}

.page-gdpr__btn-text {
  display: inline-block;
  margin-top: 20px;
  color: #017439;
  text-decoration: underline;
  font-weight: 600;
}

.page-gdpr__btn-text:hover {
  color: #005a2e;
}

.page-gdpr__btn-primary--center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

/* General Content Styling */
.page-gdpr__section-title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  color: #017439;
  margin-bottom: 30px;
  text-align: center;
}

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

.page-gdpr__subsection-title {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 600;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 20px;
}

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

.page-gdpr__text-block--light {
  color: #f0f0f0;
}

.page-gdpr__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-gdpr__list-item {
  font-size: 16px;
  margin-bottom: 10px;
}

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

/* Dark Section */
.page-gdpr__dark-section {
  background: #017439;
  color: #ffffff;
}

/* Principles Section */
.page-gdpr__principles-section {
  padding: 60px 0;
}

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

.page-gdpr__card {
  background: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-gdpr__card-title {
  font-size: 20px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
}

.page-gdpr__card-text {
  font-size: 15px;
  text-align: justify;
  flex-grow: 1;
}

/* Rights Section */
.page-gdpr__rights-section {
  padding: 60px 0;
}

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

.page-gdpr__right-item {
  background: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-gdpr__right-title {
  font-size: 18px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
}

.page-gdpr__right-description {
  font-size: 15px;
}

/* Security Section */
.page-gdpr__security-section {
  padding: 60px 0;
}

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

.page-gdpr__feature-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-gdpr__feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
}

.page-gdpr__feature-title--light {
  color: #ffffff;
}

.page-gdpr__feature-description {
  font-size: 15px;
  color: #333333;
}

.page-gdpr__feature-description--light {
  color: #f0f0f0;
}

/* FAQ Section */
.page-gdpr__faq-section {
  padding: 60px 0;
}

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

details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #f5f5f5;
}
.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #017439;
}
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  font-size: 15px;
}

/* Bottom CTA Section */
.page-gdpr__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
}

.page-gdpr__cta-bottom-content {
  max-width: 800px;
}

/* Responsive Design */

/* Homepage trial reset - MUST BE INCLUDED as per instructions */
@media (max-width: 1023px) {
  .page-gdpr__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-gdpr__hero-brand,
  .page-gdpr__hero-jackpot {
    display: none !important;
  }
  .page-gdpr__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-gdpr__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-gdpr__game-trial-topbar,
  .page-gdpr__game-trial-bottombar {
    display: none !important;
  }
  .page-gdpr__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-gdpr__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-gdpr__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-gdpr__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

/* PC three columns - MUST BE INCLUDED as per instructions */
@media (min-width: 1024px) {
  .page-gdpr__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-gdpr__hero-brand,
  .page-gdpr__hero-jackpot,
  .page-gdpr__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-gdpr__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-gdpr__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-gdpr__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-gdpr__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-gdpr__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  .page-gdpr__promo-strip { /* Placeholder for promo strip, if it were on this page */
    margin-top: 16px;
  }
  .page-gdpr__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
  }
  .page-gdpr__promo-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .page-gdpr__promo-card-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 15px;
  }
  .page-gdpr__hot-games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  .page-gdpr__hot-games-name,
  .page-gdpr__hot-games-rtp,
  .page-gdpr__hot-games-desc {
    display: block;
    text-align: center;
  }
}

/* Mobile Specific Styles - MUST BE INCLUDED as per checklist */
@media (max-width: 768px) {
  .page-gdpr__section {
    padding: 30px 0;
  }

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

  .page-gdpr__description {
    font-size: 16px;
    padding: 0 10px;
  }

  .page-gdpr__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-gdpr__subsection-title {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 15px;
  }

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

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary,
  .page-gdpr__btn-login,
  .page-gdpr a[class*="button"],
  .page-gdpr a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-gdpr__cards-grid,
  .page-gdpr__rights-grid,
  .page-gdpr__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__card {
    padding: 20px;
  }

  .page-gdpr__card-image,
  .page-gdpr__feature-icon {
    width: 100%;
    height: auto;
  }

  .page-gdpr img { /* Universal image responsive rule */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-gdpr__section,
  .page-gdpr__container,
  .page-gdpr__cards-grid,
  .page-gdpr__rights-grid,
  .page-gdpr__security-features,
  .page-gdpr__cta-bottom-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  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; }

  /* Placeholder for __promo-strip (if it were on this page) */
  .page-gdpr__promo-strip-track {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 2 columns or more if space */
    overflow-x: hidden;
    padding: 0 15px;
  }
  .page-gdpr__promo-card {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
  .page-gdpr__promo-card-image {
    margin-right: 0;
    margin-bottom: 10px;
  }

  /* Placeholder for __hot-games (if it were on this page) */
  .page-gdpr__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }
  .page-gdpr__hot-games-name,
  .page-gdpr__hot-games-rtp,
  .page-gdpr__hot-games-desc {
    display: none; /* Hide these details on mobile for hot games */
  }

  /* Placeholder for __brand-intro (if it were on this page) */
  .page-gdpr__brand-intro {
    padding: 30px 15px;
    text-align: center;
  }

  /* Placeholder for __winner-ticker (if it were on this page) */
  .page-gdpr__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #017439;
    color: #ffffff;
    padding: 10px 0;
    font-size: 14px;
  }
  body {
    padding-bottom: 40px; /* Adjust body padding for fixed ticker */
  }
}

/* Global image styles to prevent filter usage */
.page-gdpr img {
  filter: none !important; /* Ensure no CSS filters change image color */
}

/* Reward Modal styles (required for initGameTrial JS function) */
.page-gdpr__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-gdpr__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.page-gdpr__reward-modal-content {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.page-gdpr__reward-modal-title {
  font-size: 28px;
  color: #017439;
  margin-bottom: 15px;
}

.page-gdpr__reward-modal-text {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
}

.page-gdpr__reward-modal-cta {
  background: #C30808;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
}

/* Utility for hiding elements */
.is-hidden {
  display: none !important;
  pointer-events: none !important;
}