/* style/gdpr.css */

/* Variables and Base Styles */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --border-color: #e0e0e0;
  --background-light: #f8f8f8;
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Default text color for dark body background */
  background-color: transparent; /* Body handles actual background */
}

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

.page-gdpr__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  color: inherit; /* Inherit from parent section */
}

.page-gdpr__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 20px;
  color: inherit;
}

.page-gdpr__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: inherit;
}

.page-gdpr__highlight {
  font-weight: bold;
  color: inherit;
}

.page-gdpr a {
  color: var(--primary-color);
  text-decoration: none;
}

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

/* Section Specific Styles */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  min-height: 500px;
  overflow: hidden;
}

.page-gdpr__dark-section {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

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

.page-gdpr__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-gdpr__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

.page-gdpr__main-title {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--light-text-color);
  max-width: 100%;
}

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

.page-gdpr__btn-primary {
  display: inline-block;
  background-color: var(--login-color);
  color: var(--light-text-color);
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-gdpr__btn-primary:hover {
  background-color: #d16b06;
  text-decoration: none;
}

.page-gdpr__introduction-section {
  padding: 60px 20px;
}

.page-gdpr__principles-section {
  padding: 60px 20px;
}

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

.page-gdpr__principle-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-gdpr__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--light-text-color);
}

.page-gdpr__card-text {
  font-size: 1em;
  color: var(--light-text-color);
}

.page-gdpr__rights-section {
  padding: 60px 20px;
}

.page-gdpr__rights-list,
.page-gdpr__implementation-list,
.page-gdpr__cookies-list,
.page-gdpr__cookies-management-list,
.page-gdpr__contact-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-gdpr__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: inherit;
}

.page-gdpr__implementation-section {
  padding: 60px 20px;
}

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

.page-gdpr__cookies-section {
  padding: 60px 20px;
}

.page-gdpr__contact-section {
  padding: 60px 20px;
}

.page-gdpr__faq-section {
  padding: 60px 20px;
}

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

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

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--background-light);
  color: var(--dark-text-color);
}

.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;
  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 25px 20px;
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--dark-text-color);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.page-gdpr__conclusion-section {
  padding: 60px 20px;
  text-align: center;
}

.page-gdpr__cta-button {
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 2.8em;
  }

  .page-gdpr__section-title {
    font-size: 2em;
  }
}

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

  .page-gdpr__hero-section {
    padding-bottom: 40px;
  }

  .page-gdpr__main-title {
    font-size: 2em;
  }

  .page-gdpr__subtitle {
    font-size: 1em;
  }

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

  .page-gdpr__sub-title {
    font-size: 1.5em;
  }

  .page-gdpr__text-block,
  .page-gdpr__list-item,
  .page-gdpr__card-text,
  .page-gdpr__faq-answer p {
    font-size: 1em;
  }

  .page-gdpr__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-gdpr__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  /* Mobile specific overrides with !important */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .page-gdpr__hero-section,
  .page-gdpr__introduction-section,
  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__implementation-section,
  .page-gdpr__cookies-section,
  .page-gdpr__contact-section,
  .page-gdpr__faq-section,
  .page-gdpr__conclusion-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

  /* Buttons mobile adaptation */
  .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; /* Ensure buttons take full width */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .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 !important;
    padding-right: 15px !important;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-gdpr__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}