/* style/gdpr.css */

/* Base Styles */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #FFFFFF; /* Explicitly set body background as per shared.css */
}

/* Fixed header spacing */
.page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
}

/* Container for consistent content width */
.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styles */
.page-gdpr__section {
    padding: 60px 0;
}

.page-gdpr__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-gdpr__dark-section {
    background-color: #26A9E0; /* Main brand color */
    color: #FFFFFF;
}

.page-gdpr__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #26A9E0; /* Main brand color */
}

.page-gdpr__section-title--white {
    color: #FFFFFF;
}

.page-gdpr__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #26A9E0; /* Main brand color */
}

.page-gdpr__paragraph {
    margin-bottom: 15px;
    font-size: 1em;
}

.page-gdpr__paragraph--white {
    color: #FFFFFF;
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    background-color: #26A9E0; /* Using brand color for hero background */
    color: #FFFFFF;
    overflow: hidden; /* Ensure image doesn't overflow */
    padding-bottom: 60px; /* Add some padding at the bottom */
}

.page-gdpr__hero-section .page-gdpr__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2; /* Ensure content is above image */
}

.page-gdpr__hero-content {
    max-width: 800px;
    margin-bottom: 40px;
}

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

.page-gdpr__intro-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

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

.page-gdpr__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    filter: none; /* No filter for image color */
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
    margin-right: 15px;
}

.page-gdpr__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

.page-gdpr__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Main brand color */
    border: 2px solid #26A9E0;
}

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

/* Grid Layout for Principles/Security Measures */
.page-gdpr__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-gdpr__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333;
    filter: none; /* No filter for image color */
}

.page-gdpr__card--dark-bg {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    color: #FFFFFF;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
}

.page-gdpr__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0; /* Main brand color */
}

.page-gdpr__card--dark-bg .page-gdpr__card-title {
    color: #FFFFFF;
}

.page-gdpr__card-text {
    font-size: 0.95em;
}

/* Lists */
.page-gdpr__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

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

/* Links within content */
.page-gdpr__link {
    color: #26A9E0; /* Main brand color */
    text-decoration: underline;
}

.page-gdpr__link:hover {
    color: #1e87b7;
}

/* Images within content */
.page-gdpr__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    filter: none; /* No filter for image color */
}

.page-gdpr__image--center {
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__image--right {
    float: right;
    margin-left: 20px;
    margin-bottom: 15px;
    width: 400px; /* Example fixed width for float, will be overridden by responsive */
    height: auto;
}

/* Contact Info */
.page-gdpr__contact-info {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding-bottom: 80px;
}

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

.page-gdpr__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #FFFFFF;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f5f5f5;
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: #eaeaea;
}

.page-gdpr__faq-title {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0; /* Main brand color */
    transition: transform 0.3s ease;
}

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

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px; /* Padding for open state */
}

.page-gdpr__faq-answer .page-gdpr__paragraph:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.page-gdpr__cta-section {
    text-align: center;
    padding: 80px 0;
}

.page-gdpr__cta-container {
    max-width: 900px;
}

.page-gdpr__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: 2.8em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__hero-section {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    /* Fixed header spacing for mobile, if needed - already applied to hero-section */
    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-gdpr__main-title {
        font-size: 2em;
    }
    .page-gdpr__intro-text {
        font-size: 1.1em;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
    }
    .page-gdpr__sub-title {
        font-size: 1.5em;
    }
    .page-gdpr__section {
        padding: 40px 0;
    }
    .page-gdpr__container {
        padding: 0 15px; /* Smaller padding for mobile */
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no filter is applied */
    }
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__image,
    .page-gdpr__card,
    .page-gdpr__contact-info,
    .page-gdpr__faq-item,
    .page-gdpr__cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent overflow */
        margin-left: auto;
        margin-right: auto;
    }
    .page-gdpr__image--right {
        float: none;
        margin-left: auto;
        margin-right: auto;
        width: 100% !important;
    }

    /* Buttons responsiveness */
    .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; /* Add padding for text inside button */
        padding-right: 15px;
        margin-right: 0 !important; /* Remove right margin for stacked buttons */
        margin-bottom: 15px; /* Add bottom margin for stacked buttons */
    }
    .page-gdpr__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important; /* Adjust gap for stacked buttons */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to the button container */
    }
    .page-gdpr__cta-buttons .page-gdpr__btn-primary,
    .page-gdpr__cta-buttons .page-gdpr__btn-secondary {
        margin-bottom: 10px;
    }
    .page-gdpr__cta-buttons .page-gdpr__btn-secondary:last-child {
        margin-bottom: 0;
    }

    /* FAQ padding adjustment */
    .page-gdpr__faq-question {
        padding: 15px 20px;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px;
    }
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-gdpr__main-title {
        font-size: 1.8em;
    }
    .page-gdpr__intro-text {
        font-size: 1em;
    }
    .page-gdpr__section-title {
        font-size: 1.5em;
    }
    .page-gdpr__card {
        padding: 20px;
    }
    .page-gdpr__cta-section {
        padding: 60px 0;
    }
}