/* style/gdpr.css */

/* Variables */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #26A9E0; /* Using primary color as a dark background for contrast sections */
  --button-login-color: #EA7C07;
  --border-light: #e0e0e0;
}

/* Base styles for the page content */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--background-light); /* Default light background */
  padding-bottom: 40px; /* Ensure space above footer */
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 10px 0 40px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
  background-color: var(--primary-color); /* Background for hero section */
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 20px auto 0 auto;
  padding: 0 20px;
  color: var(--text-light); /* Light text for dark background */
  text-align: center;
}

.page-gdpr__main-title {
  font-size: clamp(2rem, 4vw, 2.8rem); /* Responsive font size, not fixed large */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

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

/* CTA Buttons in Hero */
.page-gdpr__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 15px;
  width: 100%;
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure button does not exceed container */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-gdpr__btn-primary {
  background-color: var(--button-login-color); /* Login color for primary action */
  color: var(--text-light);
  border: 2px solid var(--button-login-color);
}

.page-gdpr__btn-primary:hover {
  background-color: #d16e06; /* Manual darken */
  border-color: #d16e06;
}

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

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

/* General Content Section */
.page-gdpr__content-section {
  padding: 60px 20px;
  background-color: var(--background-light); /* Default light background */
}

.page-gdpr__dark-section {
  background-color: var(--background-dark); /* Primary color as dark background */
  color: var(--text-light);
}

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section .page-gdpr__paragraph,
.page-gdpr__dark-section .page-gdpr__list-item,
.page-gdpr__dark-section .page-gdpr__link {
  color: var(--text-light);
}

.page-gdpr__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px; /* Inner padding for container */
}

.page-gdpr__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-color); /* Primary color for titles on light background */
}

.page-gdpr__dark-section .page-gdpr__section-title {
  color: var(--secondary-color); /* White for titles on dark background */
}

.page-gdpr__paragraph {
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-gdpr__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

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

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

.page-gdpr__dark-section .page-gdpr__list-item strong {
  color: var(--secondary-color);
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 30px;
}

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

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-bottom-color: var(--primary-color);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-qtext {
  color: var(--text-light);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  color: var(--text-light);
}

.page-gdpr__faq-question:hover {
  background-color: #f0f0f0;
}

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

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  color: var(--secondary-color);
}

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

/* Ensure summary marker is hidden for details tag */
.page-gdpr__faq-item summary {
  list-style: none;
}
.page-gdpr__faq-item summary::-webkit-details-marker {
  display: none;
}

/* Contact Info */
.page-gdpr__contact-info {
  background-color: var(--secondary-color);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 30px;
  margin-top: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.page-gdpr__contact-info p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.page-gdpr__contact-info strong {
  color: var(--primary-color);
}

.page-gdpr__link {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-gdpr__link:hover {
  color: #2087c2; /* Manual darken */
}

/* Footer */
.page-gdpr__footer {
  background-color: #333333; /* Dark footer */
  color: #f0f0f0;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

.page-gdpr__copyright {
  margin: 0;
}

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

  /* Hero Section */
  .page-gdpr__hero-section {
    padding: 10px 0 30px 0;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-gdpr__intro-text {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Add padding to button container */
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    width: 100% !important; /* Force full width */
    max-width: 100% !important;
    padding: 12px 15px; /* Adjust padding for mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Content */
  .page-gdpr__content-section {
    padding: 40px 15px;
  }

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

  .page-gdpr__paragraph,
  .page-gdpr__list-item,
  .page-gdpr__faq-qtext,
  .page-gdpr__faq-answer p,
  .page-gdpr__contact-info p {
    font-size: 1rem;
  }

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

  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__hero-content,
  .page-gdpr__contact-info,
  .page-gdpr__footer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow */
  }

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

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

  .page-gdpr__faq-toggle {
    font-size: 1.3rem;
  }

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

  .page-gdpr__contact-info {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-gdpr__section-title {
    font-size: 1.5rem;
  }
  .page-gdpr__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
}