/* style/gdpr.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-button-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #26A9E0;
    --border-color: #e0e0e0;
}

.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--background-light);
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color), #4CAF50); /* A subtle gradient for hero */
    color: var(--text-light);
}

.page-gdpr__hero-section .page-gdpr__heading-primary {
    font-size: 44px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-gdpr__hero-section .page-gdpr__intro-text {
    font-size: 20px;
    max-width: 800px;
    margin-bottom: 30px;
}

.page-gdpr__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-gdpr__section:last-of-type {
    border-bottom: none;
}

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

.page-gdpr__dark-bg .page-gdpr__heading-secondary,
.page-gdpr__dark-bg .page-gdpr__heading-tertiary {
    color: var(--text-light);
}

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

.page-gdpr__heading-primary {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.page-gdpr__heading-secondary {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
}

.page-gdpr__heading-tertiary {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-gdpr__paragraph {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-gdpr__list {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

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

.page-gdpr__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px auto;
    max-width: 800px; /* Constrain content images */
    object-fit: cover;
}

.page-gdpr__link {
    color: var(--login-button-color); /* Use a distinct color for links */
    text-decoration: underline;
}

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

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-gdpr__btn-primary:hover {
    background: darken(var(--login-button-color), 10%); /* Darken on hover */
    border-color: darken(var(--login-button-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FAQ Styles */
.page-gdpr__faq-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}

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

.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: 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;
  padding: 0 15px;
  opacity: 0;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  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;
}

.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-gdpr {
        font-size: 15px;
        line-height: 1.5;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-gdpr__container {
        padding: 0 15px;
    }

    .page-gdpr__hero-section {
        padding: 60px 15px;
    }

    .page-gdpr__hero-section .page-gdpr__heading-primary {
        font-size: 32px;
    }

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

    .page-gdpr__heading-primary {
        font-size: 30px;
    }

    .page-gdpr__heading-secondary {
        font-size: 26px;
    }

    .page-gdpr__heading-tertiary {
        font-size: 20px;
    }

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

    .page-gdpr__image {
        margin: 20px auto;
    }

    /* Images and containers must be responsive */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-gdpr__section,
    .page-gdpr__container,
    .page-gdpr__faq-section,
    .page-gdpr__faq-list,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons must be 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: 15px;
        padding-right: 15px;
    }
    
    .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;
    }
}