/* style/gdpr.css */

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

/* Base styles for the GDPR page content */
.page-gdpr {
  font-family: Arial, sans-serif;
  color: var(--color-text-main); /* Default text color for dark background (body background is light, but sections are dark) */
  background-color: var(--color-background); /* Specific background for the page main content */
  line-height: 1.6;
  font-size: 16px;
}

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

.page-gdpr__section--intro {
  background-color: #f4f4f4; /* Light background for intro, matching body */
  color: #333333; /* Dark text for light background */
}

.page-gdpr__section--data-collection,
.page-gdpr__section--cookie-policy,
.page-gdpr__section--data-protection,
.page-gdpr__section--contact {
  background-color: var(--color-card-bg); /* Dark background for these sections */
  color: var(--color-text-main); /* Light text for dark background */
}

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

.page-gdpr__section-title {
  font-size: 2.5em;
  color: var(--color-gold);
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-gdpr__sub-title {
  font-size: 1.8em;
  color: var(--color-secondary);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-gdpr__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__keyword {
  color: var(--color-gold);
  font-weight: bold;
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--color-deep-green);
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of image wrapper */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text contrast if text was overlaid, but not for changing color */
}

.page-gdpr__hero-content {
  position: relative; /* Ensure content is above the image but not absolutely positioned over it */
  z-index: 2;
  text-align: center;
  padding: 40px 20px 60px;
  max-width: 900px;
  color: var(--color-text-main);
}

.page-gdpr__main-title {
  color: var(--color-gold);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  /* No fixed font-size for H1 as per rules */
}

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

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, 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: var(--color-button-gradient);
  color: #ffffff;
  border: none;
}

.page-gdpr__btn-primary:hover {
  opacity: 0.9;
}

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

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

.page-gdpr__cta-wrapper {
  margin-top: 40px;
}

/* Lists */
.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 800px;
  text-align: left;
}

.page-gdpr__list-item {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--color-text-main);
}

.page-gdpr__list-item::before {
  content: '✓';
  color: var(--color-gold);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-gdpr__list--columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  text-align: left;
}

/* Grid Layout */
.page-gdpr__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-gdpr__grid-layout--reverse {
  grid-template-columns: 1fr 1fr; /* Default order */
}

.page-gdpr__grid-item {
  text-align: left;
}

.page-gdpr__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__image-center {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

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

.page-gdpr__right-card {
  background-color: var(--color-card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease;
  color: var(--color-text-main);
}

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

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

/* Links */
.page-gdpr__link {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

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

/* Contact List */
.page-gdpr__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

.page-gdpr__contact-list .page-gdpr__list-item {
  margin-bottom: 15px;
  font-size: 1.1em;
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-gdpr__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--color-text-main);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: var(--color-primary);
  background-color: var(--color-deep-green);
}

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

.page-gdpr__faq-question::marker {
  display: none;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--color-gold);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  content: '−';
}

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

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-gdpr__section-title {
    font-size: 2em;
  }
  .page-gdpr__sub-title {
    font-size: 1.5em;
  }
  .page-gdpr__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-gdpr__grid-layout--reverse {
    grid-template-columns: 1fr; /* Stack on mobile */
  }
  .page-gdpr__grid-item:first-child {
    order: 1; /* Reverse order for image on top for reverse layout */
  }
  .page-gdpr__grid-item:last-child {
    order: 2;
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-gdpr__hero-content {
    padding: 30px 15px 40px;
  }

  .page-gdpr__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Responsive font size for H1 */
  }
  .page-gdpr__description {
    font-size: 1.1em;
  }

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

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

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

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

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

  /* Image/Video containers mobile adaptation */
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__grid-item,
  .page-gdpr__image-center,
  .page-gdpr__rights-grid,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow for containers */
  }
  
  /* Button responsiveness */
  .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; /* Add padding to text inside button */
    padding-right: 15px;
  }
  
  .page-gdpr__cta-wrapper,
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex; /* Ensure flex for wrapping if multiple buttons */
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* Video section top padding */
  .page-gdpr__video-section {
    padding-top: 10px !important;
  }
}

/* Color contrast enforcement (based on body background #f4f4f4, which is light) */
/* The general .page-gdpr has a dark background var(--color-background), so text is light.
   The intro section uses the light body background, so text is dark. */
.page-gdpr__section--intro {
  color: #333333; /* Dark text for light background */
}

.page-gdpr__section--intro .page-gdpr__section-title {
  color: var(--color-primary); /* Use primary brand color for title on light background */
}

.page-gdpr__section--intro .page-gdpr__text-block {
  color: #333333;
}

.page-gdpr__section--intro .page-gdpr__keyword {
  color: var(--color-primary); /* Use primary brand color for keywords on light background */
}

/* Ensure link visibility on light background */
.page-gdpr__section--intro .page-gdpr__link {
  color: var(--color-primary);
}

/* For dark background sections, text is already light (var(--color-text-main)) */
.page-gdpr__dark-bg {
  color: var(--color-text-main);
}
.page-gdpr__dark-bg .page-gdpr__section-title {
  color: var(--color-gold);
}
.page-gdpr__dark-bg .page-gdpr__sub-title {
  color: var(--color-secondary);
}
.page-gdpr__dark-bg .page-gdpr__text-block {
  color: var(--color-text-secondary);
}
.page-gdpr__dark-bg .page-gdpr__link {
  color: var(--color-secondary);
}
.page-gdpr__dark-bg .page-gdpr__keyword {
  color: var(--color-gold);
}
.page-gdpr__dark-bg .page-gdpr__list-item {
  color: var(--color-text-secondary);
}

/* FAQ question on dark background */
.page-gdpr__faq-question {
  color: var(--color-primary);
  background-color: var(--color-deep-green);
}
.page-gdpr__faq-toggle {
  color: var(--color-gold);
}
.page-gdpr__faq-answer {
  color: var(--color-text-secondary);
}