/* style/gdpr.css */

/* Variables */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
  --login-button-color: #EA7C07;
  --background-color-light: #FFFFFF;
  --background-color-dark: #0a0a0a; /* Inherited from body */
  --dark-text-color: #000000;
}

/* Base styles for page-gdpr, considering body background is #0a0a0a (dark) */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  background-color: var(--background-color-dark); /* Ensure consistency if section doesn't override */
}

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

.page-gdpr__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.2;
}

.page-gdpr__sub-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-gdpr__description {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.8;
  margin-bottom: 25px;
}

.page-gdpr__text-center {
  text-align: center;
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body already handles top padding */
  min-height: 500px;
  overflow: hidden;
  color: var(--text-color-dark-bg);
  text-align: center;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-gdpr__main-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--text-color-dark-bg);
}

/* Button Styles */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

.page-gdpr__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

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

.page-gdpr__btn-large {
  padding: 18px 35px;
  font-size: 20px;
}

/* Section Backgrounds and Text Colors */
.page-gdpr__dark-bg {
  background-color: var(--background-color-dark);
  color: var(--text-color-dark-bg);
}

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

.page-gdpr__light-bg .page-gdpr__section-title,
.page-gdpr__light-bg .page-gdpr__sub-title {
  color: var(--dark-text-color);
}

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

.page-gdpr__light-bg a:hover {
  text-decoration: underline;
}

/* General Section Padding */
.page-gdpr__introduction-section,
.page-gdpr__principles-section,
.page-gdpr__user-rights-section,
.page-gdpr__data-security-section,
.page-gdpr__cookie-policy-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section,
.page-gdpr__cta-section {
  padding: 80px 0;
}

/* Image in content sections */
.page-gdpr__image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-gdpr__image--left {
  float: left;
  margin-right: 30px;
  margin-bottom: 15px;
}

.page-gdpr__image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 15px;
}

/* Clearfix for floated images */
.page-gdpr__principles-section .page-gdpr__container::after,
.page-gdpr__user-rights-section .page-gdpr__container::after,
.page-gdpr__cookie-policy-section .page-gdpr__container::after,
.page-gdpr__contact-section .page-gdpr__container::after {
  content: "";
  display: table;
  clear: both;
}

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

.page-gdpr__list li {
  margin-bottom: 10px;
  font-size: 17px;
}

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

.page-gdpr__faq-item {
  background-color: var(--background-color-light);
  color: var(--text-color-light-bg);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-gdpr__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--dark-text-color);
  list-style: none;
  user-select: none;
}

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

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-gdpr__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg);
}

.page-gdpr__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color-light-bg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__image--left,
  .page-gdpr__image--right {
    float: none;
    margin: 0 auto 30px auto;
    display: block;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 10px 0 40px 0;
    min-height: 400px;
  }

  .page-gdpr__hero-image {
    max-height: 400px;
  }

  .page-gdpr__main-title {
    font-size: clamp(28px, 6vw, 42px);
  }

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

  .page-gdpr__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }

  .page-gdpr__sub-title {
    font-size: clamp(18px, 4vw, 24px);
  }

  .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: 15px; /* Add 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;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }

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

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

  .page-gdpr__hero-section,
  .page-gdpr__introduction-section,
  .page-gdpr__principles-section,
  .page-gdpr__user-rights-section,
  .page-gdpr__data-security-section,
  .page-gdpr__cookie-policy-section,
  .page-gdpr__contact-section,
  .page-gdpr__faq-section,
  .page-gdpr__cta-section {
    padding: 40px 0;
  }

  .page-gdpr__faq-item summary {
    font-size: 16px;
    padding: 15px;
  }

  .page-gdpr__faq-answer {
    padding: 0 15px 15px 15px;
  }

  .page-gdpr__image {
    min-width: 200px; /* Ensure images are not too small even on mobile */
  }

  .page-gdpr__list {
    margin-left: 15px;
  }

  .page-gdpr__list li {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: clamp(24px, 8vw, 36px);
  }

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

  .page-gdpr__btn-large {
    font-size: 16px;
    padding: 12px 20px;
  }
}