/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--black-color); /* Inherited from shared, likely dark */
}

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

.page-gdpr__dark-section {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    padding: 60px 20px;
}

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

.page-gdpr__content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    box-sizing: border-box;
}

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

.page-gdpr__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 2;
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-gdpr__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #333333; /* Dark text for light background */
}

.page-gdpr__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555555; /* Dark text for light background */
}

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

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

.page-gdpr__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

.page-gdpr__section-description--white {
    color: #f0f0f0;
}

.page-gdpr__text-block {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
    color: #333333;
}

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

/* Cards */
.page-gdpr__card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-gdpr__card--dark {
    background-color: rgba(255, 255, 255, 0.1);
    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;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

.page-gdpr__card-text {
    font-size: 1em;
    line-height: 1.5;
}

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

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

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

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

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

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

/* Contact Section */
.page-gdpr__contact-info {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-gdpr__contact-text {
    margin-bottom: 15px;
}

.page-gdpr__contact-link {
    color: #FFFFFF; /* White for dark section */
    text-decoration: underline;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 20px;
    display: inline-block;
}

.page-gdpr__contact-link:hover {
    color: #EA7C07; /* Login color on hover */
}

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

/* Buttons */
.page-gdpr__btn-primary {
    display: inline-block;
    background-color: #26A9E0;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__btn-primary:hover {
    background-color: #1a7fb8; /* Darker shade of primary */
    transform: translateY(-2px);
}

.page-gdpr__btn-primary--contact {
    background-color: #EA7C07; /* Login color */
    margin-top: 20px;
}

.page-gdpr__btn-primary--contact:hover {
    background-color: #cc6a06; /* Darker shade of login color */
}


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

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

.page-gdpr__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.page-gdpr__faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #26A9E0;
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: #f0f8ff; /* Light hover background */
}

.page-gdpr__faq-item.active .page-gdpr__faq-question {
    background-color: #e6f7ff; /* Lighter primary color */
    color: #1a7fb8;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

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

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #555555;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Ensure it expands fully */
    padding: 15px 20px;
}

.page-gdpr__faq-answer p {
    margin-bottom: 15px;
}
.page-gdpr__faq-answer p:last-child {
    margin-bottom: 0;
}

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

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    }
    .page-gdpr__hero-content {
        padding: 30px;
        max-width: 90%;
    }
    .page-gdpr__hero-title {
        font-size: 2em;
    }
    .page-gdpr__hero-description {
        font-size: 1em;
    }
    .page-gdpr__section {
        padding: 40px 15px;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-gdpr__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-gdpr__text-block {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-gdpr__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* Hero image should cover the section */
        object-fit: cover !important;
    }
    
    /* Ensure containers are responsive */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__content-wrapper,
    .page-gdpr__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }
    .page-gdpr__section {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button responsiveness */
    .page-gdpr__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 0.95em !important;
    }
    .page-gdpr__contact-info .page-gdpr__btn-primary {
        margin-left: auto;
        margin-right: auto;
    }

    /* Grid layout adjustments */
    .page-gdpr__principles-grid,
    .page-gdpr__rights-grid,
    .page-gdpr__measures-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-gdpr__card {
        padding: 20px;
    }
    .page-gdpr__card-title {
        font-size: 1.3em;
    }
    .page-gdpr__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-gdpr__faq-answer {
        padding: 0 15px;
    }
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-section {
        height: 350px;
    }
    .page-gdpr__hero-title {
        font-size: 1.8em;
    }
    .page-gdpr__section-title {
        font-size: 1.5em;
    }
}