:root {
    --primary-color: #CC0000;
    --secondary-color: #FFD700;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f9f9f9;
    --border-color: #e0e0e0;
}

.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: #ffffff; /* Default body background is light */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a00000 100%); /* Darker red for background */
    color: var(--text-color-light);
    overflow: hidden; /* Prevent content overflow */
}

.page-gdpr__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-gdpr__hero-image {
    width: 100%;
    margin-top: 30px;
    order: 2; /* Image below content on desktop */
}

.page-gdpr__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
    order: 1; /* Content above image on desktop */
}

.page-gdpr__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-gdpr__hero-description {
    font-size: 1.25em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

.page-gdpr__hero-description a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-gdpr__hero-description a:hover {
    color: #ffd700;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-color-dark); /* Ensure contrast with gold */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__content-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-gdpr__content-section:last-of-type {
    border-bottom: none;
}

.page-gdpr__content-section p {
    margin-bottom: 1em;
    font-size: 1.05em;
}

.page-gdpr__content-section p a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-gdpr__content-section p a:hover {
    color: #a00000;
}

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

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

.page-gdpr__list li {
    margin-bottom: 0.8em;
    font-size: 1.05em;
}

.page-gdpr__list li strong {
    color: var(--primary-color);
}

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

.page-gdpr__card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-gdpr__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    flex-grow: 1; /* Ensure title takes available space */
}

.page-gdpr__card p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-color-dark);
}

.page-gdpr__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__contact-info {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
}

.page-gdpr__contact-info p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.page-gdpr__contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* FAQ styles */
.page-gdpr__faq-section {
    background-color: var(--background-light);
}

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

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

/* FAQ default state - answer hidden */
.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, opacity 0.3s ease;
    padding: 0 15px;
    opacity: 0;
    background: #ffffff; /* Ensure light background for text */
    color: var(--text-color-dark);
}

/* FAQ expanded state - \u{26A0} Use !important and sufficiently large max-height */
.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 2000px !important; /* \u{26A0} Use!important to ensure priority, value large enough to contain any content */
    padding: 20px 15px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

/* Question style */
.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-item.active .page-gdpr__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.page-gdpr__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-gdpr__faq-question:active {
    background: #eeeeee;
}

/* Question title style */
.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 events */
    color: var(--text-color-dark);
}

/* Toggle icon */
.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 events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change to X or rotate for active state */
}

/* Global image styles */
.page-gdpr img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.8em;
    }
    .page-gdpr__hero-description {
        font-size: 1.15em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__card-title {
        font-size: 1.4em;
    }
    .page-gdpr__grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-gdpr__container {
        padding: 15px;
    }

    .page-gdpr__hero-section {
        padding: 40px 15px;
    }
    
    .page-gdpr__hero-image {
        margin-top: 20px;
        order: 1; /* Image above content on mobile */
    }

    .page-gdpr__hero-content {
        order: 2; /* Content below image on mobile */
    }

    .page-gdpr__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-gdpr__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-gdpr__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        width: 100% !important; /* Mobile button full width */
        max-width: 300px !important; /* Max width for button */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-gdpr__content-section {
        padding: 40px 0;
    }

    .page-gdpr__list {
        padding-left: 15px;
    }

    .page-gdpr__list li {
        font-size: 1em;
    }

    .page-gdpr__grid-container {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 15px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .page-gdpr__card {
        padding: 20px;
    }

    .page-gdpr__card-title {
        font-size: 1.2em;
    }

    .page-gdpr__image-full-width {
        margin: 25px auto;
    }

    .page-gdpr__contact-info {
        padding: 20px;
    }

    .page-gdpr__contact-info p {
        font-size: 1em;
    }

    /* Mobile image adaptation */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ mobile adaptation */
    .page-gdpr__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-gdpr__faq-question h3 {
        font-size: 1em;
        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;
    }
}