/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    color: #ffffff; /* White text for hero background */
    background-color: #26A9E0; /* Primary brand color */
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-gdpr__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(38, 169, 224, 0.8), rgba(38, 169, 224, 0.6)); /* Overlay for text readability */
    z-index: 1;
}

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

.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.page-gdpr__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF; /* White text for hero title */
    font-weight: bold;
}

.page-gdpr__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0; /* Slightly off-white for intro text */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.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;
    font-size: 1.1em;
    cursor: pointer;
    border: 2px solid transparent; /* Default transparent border */
}

.page-gdpr__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #FFFFFF;
}

.page-gdpr__btn-primary:hover {
    background-color: #d16b06; /* Darker orange on hover */
}

.page-gdpr__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Primary brand color */
    border-color: #26A9E0;
}

.page-gdpr__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* Content Sections */
.page-gdpr__content-section,
.page-gdpr__features-section,
.page-gdpr__rights-section,
.page-gdpr__security-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section {
    padding: 60px 0;
}

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

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

.page-gdpr__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
}

.page-gdpr__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-gdpr__card {
    background-color: #FFFFFF;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-gdpr__dark-bg .page-gdpr__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-gdpr__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-gdpr__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: inherit;
}

.page-gdpr__card-text {
    font-size: 1em;
    line-height: 1.7;
    color: inherit;
}

/* Rights List */
.page-gdpr__rights-list,
.page-gdpr__security-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
}

.page-gdpr__list-item {
    background-color: #f9f9f9;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #26A9E0;
    border-radius: 5px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-gdpr__dark-bg .page-gdpr__list-item {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border-left-color: #FFFFFF;
}

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

.page-gdpr__dark-bg .page-gdpr__list-item strong {
    color: #FFFFFF;
}

/* Security Section Image */
.page-gdpr__security-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Contact Info */
.page-gdpr__contact-info {
    font-size: 1.1em;
    text-align: center;
    margin-top: 30px;
}

.page-gdpr__contact-info a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-gdpr__contact-info a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-gdpr__faq-list {
    max-width: 900px;
    margin: 40px auto;
}

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    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 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    font-size: 1.1em;
    line-height: 1.7;
    color: #f0f0f0;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important;
    padding: 20px !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: 2.8em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__intro-text,
    .page-gdpr__paragraph,
    .page-gdpr__list-item,
    .page-gdpr__card-text,
    .page-gdpr__contact-info,
    .page-gdpr__faq-question,
    .page-gdpr__faq-answer {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-gdpr__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

    .page-gdpr__intro-text {
        font-size: 1em;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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: 12px 20px;
        font-size: 1em;
    }
    
    .page-gdpr__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        overflow: hidden !important;
    }

    .page-gdpr__content-section,
    .page-gdpr__features-section,
    .page-gdpr__rights-section,
    .page-gdpr__security-section,
    .page-gdpr__contact-section,
    .page-gdpr__faq-section {
        padding: 40px 0;
    }

    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-gdpr__grid {
        grid-template-columns: 1fr;
    }

    .page-gdpr__card {
        padding: 20px;
    }

    /* Images responsive */
    .page-gdpr img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-gdpr__card-image {
        height: auto;
    }

    /* All containers with images/videos should also be responsive */
    .page-gdpr__container,
    .page-gdpr__hero-section,
    .page-gdpr__content-section,
    .page-gdpr__features-section,
    .page-gdpr__rights-section,
    .page-gdpr__security-section,
    .page-gdpr__contact-section,
    .page-gdpr__faq-section,
    .page-gdpr__grid,
    .page-gdpr__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    
    .page-gdpr__faq-answer {
        padding: 0 15px;
    }
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px !important;
    }
}