/* style/gdpr.css */

/* General page styling */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Use shared background, default to white */
}

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

.page-gdpr__section-title {
    font-size: 32px;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-gdpr__sub-title {
    font-size: 24px;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-gdpr__text-block {
    margin-bottom: 30px;
}

.page-gdpr__text-block p {
    margin-bottom: 15px;
}

.page-gdpr__text-block ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-gdpr__text-block li {
    margin-bottom: 8px;
}

.page-gdpr__text-block a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

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

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

/* Color contrast classes */
.page-gdpr__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-gdpr__dark-bg .page-gdpr__section-title,
.page-gdpr__dark-bg .page-gdpr__sub-title {
    color: #ffffff;
}

.page-gdpr__dark-bg a {
    color: #ffffff;
}

.page-gdpr__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #26A9E0; /* Ensure dark background for hero */
    color: #FFFFFF;
    overflow: hidden; /* Prevent image overflow */
}

.page-gdpr__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-gdpr__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-gdpr__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-gdpr__main-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

.page-gdpr__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login/Register color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-gdpr__cta-button:hover {
    background: #d46e06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Contact CTA Section */
.page-gdpr__contact-cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-gdpr__cta-title {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-gdpr__cta-description {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #ffffff;
}

.page-gdpr__btn-secondary:hover {
    background: #f0f0f0;
    color: #1e86b4;
    border-color: #f0f0f0;
}


/* FAQ Section */
.page-gdpr__faq-section {
    background-color: #f9f9f9;
}

.page-gdpr__faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ container styles */
.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.page-gdpr__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height to ensure it expands */
.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #e9f5ff; /* Light blue background for active answer */
  border-radius: 0 0 5px 5px;
  color: #333333;
}

/* Question styles */
.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-gdpr__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-gdpr__faq-question:active {
  background: #eeeeee;
}

/* Question title styles */
.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #333333;
}

/* Toggle icon */
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: #26A9E0; /* Brand color for active toggle */
  transform: rotate(45deg); /* Rotate for minus sign effect */
}


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

    .page-gdpr__sub-title {
        font-size: 20px;
    }

    .page-gdpr__main-title {
        font-size: 36px;
    }

    .page-gdpr__intro-text {
        font-size: 16px;
    }

    .page-gdpr__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .page-gdpr__cta-title {
        font-size: 30px;
    }

    .page-gdpr__cta-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__main-title {
        font-size: 28px;
    }

    .page-gdpr__intro-text {
        font-size: 15px;
    }

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

    .page-gdpr__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .page-gdpr__sub-title {
        font-size: 18px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-gdpr__text-block p,
    .page-gdpr__text-block li {
        font-size: 15px;
    }

    /* Mobile image responsive */
    .page-gdpr img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-gdpr__section,
    .page-gdpr__hero-container,
    .page-gdpr__faq-container,
    .page-gdpr__contact-cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Mobile button responsive */
    .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: 0; /* Adjust padding for full width buttons */
      padding-right: 0; /* Adjust padding for full width 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; /* Container padding */
      padding-right: 15px; /* Container padding */
      flex-wrap: wrap !important;
      gap: 10px;
    }
    
    .page-gdpr__cta-buttons {
      display: flex;
      flex-direction: column;
    }

    /* FAQ mobile */
    .page-gdpr__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-gdpr__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-gdpr__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-gdpr__faq-answer {
        padding: 0 15px;
    }
    
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px !important;
    }

    .page-gdpr__contact-cta-section {
        padding: 50px 15px;
    }

    .page-gdpr__cta-title {
        font-size: 26px;
    }

    .page-gdpr__cta-description {
        font-size: 15px;
    }
}