/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color from custom palette */
  background-color: var(--background); /* Overall dark background */
}

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

/* Section styling */
.page-gdpr__section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-gdpr__section--intro {
  background-color: var(--background);
  color: var(--text-main);
}

.page-gdpr__section--rights,
.page-gdpr__section--data-protection,
.page-gdpr__section--data-retention,
.page-gdpr__section--faq {
  background-color: var(--deep-green); /* Darker green for contrast */
  color: var(--text-main);
}

.page-gdpr__section--third-party,
.page-gdpr__section--contact {
  background-color: var(--background);
  color: var(--text-main);
}

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

.page-gdpr__container--flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-gdpr__container--reverse {
  flex-direction: row-reverse;
}

.page-gdpr__content-block {
  flex: 1;
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--background);
  color: var(--text-main);
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-gdpr__hero-image {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and text */
}

.page-gdpr__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

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

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

/* Headings */
.page-gdpr__section-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
}

.page-gdpr__section--rights .page-gdpr__section-title,
.page-gdpr__section--data-protection .page-gdpr__section-title,
.page-gdpr__section--data-retention .page-gdpr__section-title,
.page-gdpr__section--faq .page-gdpr__section-title {
  color: var(--gold-color); /* Gold titles on dark green sections */
}

/* Text elements */
.page-gdpr__text-block {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
}

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

.page-gdpr__list-item strong {
  color: var(--text-secondary); /* Highlight list item titles */
}

.page-gdpr__list-item::before {
  content: "✅"; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.1em;
  line-height: 1;
}

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

/* Buttons */
.page-gdpr__btn-primary {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-main); /* White text on button */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-gdpr__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-secondary);
  background-color: var(--card-bg);
  user-select: none;
}

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

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

.page-gdpr__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-gdpr__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X or simply change to minus */
  content: "−"; /* Change to minus on open */
}

.page-gdpr__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__container--flex {
    flex-direction: column;
    text-align: center;
  }

  .page-gdpr__container--reverse {
    flex-direction: column;
  }

  .page-gdpr__image-block {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-gdpr__section {
    padding: 40px 15px;
  }

  .page-gdpr__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* Small top padding for mobile */
  }

  .page-gdpr__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }

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

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

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

  .page-gdpr__text-block,
  .page-gdpr__list-item,
  .page-gdpr__faq-question,
  .page-gdpr__faq-answer {
    font-size: 0.95rem;
  }

  /* Mobile image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size on mobile */
    min-height: 200px !important;
  }
  
  /* Mobile video responsiveness (if any) */
  .page-gdpr video,
  .page-gdpr__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__video-section,
  .page-gdpr__video-container,
  .page-gdpr__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-gdpr__video-section {
    padding-top: 10px !important;
  }

  /* Mobile button responsiveness */
  .page-gdpr__cta-button,
  .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;
    padding-right: 15px;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }
  
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex; /* Ensure flex container for button wrapping */
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}