/* 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: #121212; /* Inherited from body, explicit for context */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-gdpr__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Slightly dim the image for text readability */
}

.page-gdpr__main-title {
    font-size: 3em;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-gdpr__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    max-width: 800px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__btn-primary {
    background-color: #C30808; /* Custom color for register/login type */
    color: #FFFF00; /* Custom font color for register/login type */
    border: 2px solid #C30808;
}

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

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: #ffffff; /* White text on dark background for secondary button */
    border: 2px solid #017439;
}

.page-gdpr__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Content Sections */
.page-gdpr__content-section {
    padding: 60px 0;
}

.page-gdpr__dark-bg {
    background-color: #0d0d0d; /* Slightly darker than body for contrast */
    color: #ffffff;
}

.page-gdpr__light-bg {
    background-color: #f8f8f8; /* Light background for specific cards/elements */
    color: #333333;
}

.page-gdpr__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for main titles */
    margin-bottom: 30px;
    text-align: center;
}

.page-gdpr__dark-bg .page-gdpr__section-title {
    color: #FFFF00; /* Yellow for titles on dark sections for better visibility */
}

.page-gdpr__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-gdpr__dark-bg .page-gdpr__sub-title {
    color: #FFFF00; /* Yellow for sub-titles on dark sections */
}

.page-gdpr__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: inherit; /* Inherit from parent section for dark/light bg */
}

.page-gdpr__paragraph a {
    color: #FFFF00; /* Link color for paragraphs */
    text-decoration: underline;
}

.page-gdpr__paragraph a:hover {
    color: #e02020;
}

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

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

.page-gdpr__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

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

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-gdpr__card-title {
    font-size: 1.5em;
    color: #FFFF00; /* Highlight for card titles */
    margin-bottom: 15px;
}

.page-gdpr__card.page-gdpr__light-bg .page-gdpr__card-title {
    color: #017439;
}

.page-gdpr__card-text {
    font-size: 1em;
    color: inherit;
    flex-grow: 1;
}

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

.page-gdpr__right-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 180px;
    color: #e0e0e0;
}

.page-gdpr__right-title {
    font-size: 1.4em;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-gdpr__right-description {
    font-size: 1em;
    color: inherit;
}

/* List styles */
.page-gdpr__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: inherit;
}

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

.page-gdpr__list-item strong {
    color: #FFFF00;
}

/* Contact Section */
.page-gdpr__contact-section {
    text-align: center;
    padding: 80px 0;
    background-color: #017439; /* Brand color background */
    color: #ffffff;
}

.page-gdpr__contact-section .page-gdpr__section-title {
    color: #ffffff; /* White title on brand color background */
}

.page-gdpr__contact-section .page-gdpr__paragraph {
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for FAQ */
}

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

.page-gdpr__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-gdpr__faq-toggle {
    font-size: 1.8em;
    color: #FFFF00; /* Highlight for toggle icon */
    font-weight: bold;
    line-height: 1;
    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 value */
    padding: 15px 25px 25px 25px;
}

.page-gdpr__faq-answer .page-gdpr__paragraph {
    margin-bottom: 0;
    color: #e0e0e0;
}

/* Changes Section */
.page-gdpr__changes-section {
    padding: 60px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: 2.5em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__sub-title {
        font-size: 1.6em;
    }
    .page-gdpr__card-title,
    .page-gdpr__right-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-gdpr__hero-section {
        padding: 80px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
    }
    .page-gdpr__main-title {
        font-size: 2em;
    }
    .page-gdpr__hero-description {
        font-size: 1em;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
    }
    .page-gdpr__sub-title {
        font-size: 1.4em;
    }
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !important;
        margin: 10px 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-gdpr__hero-section .page-gdpr__container {
        padding: 0 15px;
    }
    .page-gdpr__content-section .page-gdpr__container,
    .page-gdpr__contact-section .page-gdpr__container,
    .page-gdpr__faq-section .page-gdpr__container,
    .page-gdpr__changes-section .page-gdpr__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure content containers don't cause overflow */
    .page-gdpr__principles-grid,
    .page-gdpr__rights-list,
    .page-gdpr__faq-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .page-gdpr__card,
    .page-gdpr__right-item,
    .page-gdpr__faq-item {
        padding: 20px;
    }
    .page-gdpr__faq-question {
        padding: 15px 20px;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px;
    }
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px 20px 20px 20px;
    }
}

/* Ensure content area images don't go below 200px (desktop) */
.page-gdpr__content-area img,
.page-gdpr__content-section img {
    min-width: 200px;
    min-height: 200px;
}
@media (max-width: 768px) {
    .page-gdpr__content-area img,
    .page-gdpr__content-section img {
        min-width: unset; /* Allow it to scale down, but max-width 100% will prevent it from being too small in layout */
        min-height: unset;
    }
}