/* style/gdpr.css */

/* Variables and general styling for .page-gdpr scope */
.page-gdpr {
    --primary-color: #017439;
    --secondary-color: #C30808; /* For register/login buttons */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #017439; /* Using primary color for dark sections */
    --border-color: #e0e0e0;
    --font-highlight: #FFFF00; /* For register/login font */

    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light backgrounds */
}

/* 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); /* Ensures content is not hidden by fixed header */
    background: var(--bg-dark); /* Dark background for hero */
    color: var(--text-color-light);
    overflow: hidden; /* Prevent image overflow */
}

.page-gdpr__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row; /* Desktop: image and content side-by-side */
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.page-gdpr__hero-content {
    flex: 1;
    text-align: left;
    padding-right: 20px;
    z-index: 2;
}

.page-gdpr__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-light);
}

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

.page-gdpr__hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px; /* Enforce min-width for image container */
}

.page-gdpr__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min-width for image */
    min-height: 200px; /* Enforce min-height for image */
}

/* Call to Action Button */
.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Ensure button adapts to container */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-gdpr__btn-primary {
    background: var(--secondary-color); /* Use #C30808 for primary action (register/login) */
    color: var(--font-highlight); /* Use #FFFF00 for font */
    border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
    background: #a30606; /* Example: a darker shade on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-gdpr__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* General Content Sections */
.page-gdpr__content-section,
.page-gdpr__data-processing-section,
.page-gdpr__security-measures-section,
.page-gdpr__cookie-policy-section,
.page-gdpr__faq-section {
    padding: 60px 20px;
}

.page-gdpr__container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%; /* Ensure container takes full width up to max-width */
    box-sizing: border-box;
}

.page-gdpr__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.2;
}

.page-gdpr__sub-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-gdpr__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-gdpr__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-gdpr__text-block a:hover {
    color: #005a2e; /* Darken primary color */
}

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

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

.page-gdpr__image-content {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min-width for image */
    min-height: 200px; /* Enforce min-height for image */
}

/* Color contrast enforcement */
.page-gdpr__dark-section {
    background: var(--bg-dark);
    color: var(--text-color-light);
}

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section .page-gdpr__sub-title {
    color: var(--text-color-light);
}

.page-gdpr__dark-section .page-gdpr__text-block a {
    color: var(--font-highlight); /* Highlight links on dark background */
}

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

/* FAQ Section */
.page-gdpr__faq-section {
    background: var(--bg-light);
    color: var(--text-color-dark);
}

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

.page-gdpr__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.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; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    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: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--text-color-dark);
}

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

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


/* Responsive Design */
@media (max-width: 992px) {
    .page-gdpr__hero-container {
        flex-direction: column;
        gap: 20px;
    }

    .page-gdpr__hero-content {
        padding-right: 0;
        text-align: center;
    }

    .page-gdpr__hero-title {
        font-size: 2.5em;
    }

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

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

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

    .page-gdpr__hero-title {
        font-size: 2.2em;
    }

    .page-gdpr__hero-description {
        font-size: 1em;
    }

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

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

    .page-gdpr__text-block,
    .page-gdpr__list-item {
        font-size: 1em;
    }

    /* Mobile image responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Still enforce min-width */
        min-height: 200px; /* Still enforce min-height */
    }

    .page-gdpr__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile button responsiveness */
    .page-gdpr__cta-button,
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        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-top: 15px; /* Adjust margin for stacked buttons */
    }

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

/* Ensure no filter on images */
.page-gdpr img {
    filter: none;
}