:root {
    --primary-color: #FFD700;
    --secondary-color: #0056b3;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.08);
    --card-border-dark-mode: rgba(255, 255, 255, 0.15);
    --button-hover-dark: #e6c200;
}

.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark-bg); /* Body background is dark, so text is light */
    background-color: #121212; /* Inherited from shared.css, explicitly set for context */
}

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

/* Fixed navigation bar spacing for desktop */
.page-gdpr__hero-section {
    padding-top: 120px; /* Adjust based on actual header height */
    padding-bottom: 60px;
    text-align: center;
    background-color: #1A1A1A;
    position: relative;
    overflow: hidden;
}

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

.page-gdpr__hero-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

.page-gdpr__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-gdpr__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

.page-gdpr__dark-bg {
    background-color: #1A1A1A;
    color: var(--text-color-dark-bg);
    padding: 60px 0;
}

.page-gdpr__principles-section,
.page-gdpr__user-rights-section,
.page-gdpr__implementation-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section,
.page-gdpr__cta-bottom-section {
    padding: 60px 0;
}

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

.page-gdpr__card {
    background: var(--card-bg-dark-mode);
    border: 1px solid var(--card-border-dark-mode);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark-bg);
}

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

.page-gdpr__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-gdpr__card p {
    font-size: 1em;
    color: #e0e0e0;
}

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

.page-gdpr__cta-buttons--centered {
    justify-content: center;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: #1A1A1A;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-gdpr__cta-button:hover {
    background: var(--button-hover-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-gdpr__feature-item {
    text-align: center;
    padding: 20px;
    background: var(--card-bg-dark-mode);
    border-radius: 10px;
    border: 1px solid var(--card-border-dark-mode);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-gdpr__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-gdpr__feature-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-gdpr__feature-item p {
    color: #e0e0e0;
}

.page-gdpr__contact-info {
    background: var(--card-bg-dark-mode);
    border: 1px solid var(--card-border-dark-mode);
    padding: 30px;
    border-radius: 10px;
    max-width: 700px;
    margin: 40px auto;
    text-align: left;
}

.page-gdpr__contact-info p {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #e0e0e0;
}

.page-gdpr__contact-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gdpr__contact-link:hover {
    color: var(--button-hover-dark);
    text-decoration: underline;
}

/* FAQ Section */
.page-gdpr__faq-list {
    margin-top: 40px;
}

.page-gdpr__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-border-dark-mode);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-bg-dark-mode);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-color-dark-bg);
}

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

.page-gdpr__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--primary-color);
}

.page-gdpr__faq-toggle {
    font-size: 28px;
    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 event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

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

.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.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to accommodate content */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-gdpr__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Footer placeholder text color */
.page-gdpr .shared-footer p,
.page-gdpr .shared-footer a {
    color: #cccccc; /* Ensure readability on dark footer */
}

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

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding-top: 100px !important; /* Adjust for mobile header */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-gdpr__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-gdpr__main-title {
        font-size: 2em;
        line-height: 1.3;
    }

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

    .page-gdpr__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

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

    .page-gdpr__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-gdpr__principles-section,
    .page-gdpr__user-rights-section,
    .page-gdpr__implementation-section,
    .page-gdpr__contact-section,
    .page-gdpr__faq-section,
    .page-gdpr__cta-bottom-section {
        padding: 40px 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-gdpr__grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gdpr__card {
        padding: 20px;
    }

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

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-gdpr__cta-button {
        font-size: 1em;
        padding: 12px 25px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-gdpr__feature-icon {
        width: 80px;
        height: 80px;
    }

    .page-gdpr__feature-title {
        font-size: 1.3em;
    }

    .page-gdpr__contact-info {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-gdpr__faq-question {
        padding: 15px 20px;
    }

    .page-gdpr__faq-question h3 {
        font-size: 1.1em;
    }

    .page-gdpr__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }

    .page-gdpr__faq-answer {
        padding: 15px 20px !important;
    }

    .page-gdpr img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-gdpr__main-title {
        font-size: 1.8em;
    }
    .page-gdpr__section-title {
        font-size: 1.6em;
    }
    .page-gdpr__hero-description {
        font-size: 0.9em;
    }
    .page-gdpr__cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-gdpr__card-title {
        font-size: 1.1em;
    }
    .page-gdpr__feature-icon {
        width: 60px;
        height: 60px;
    }
    .page-gdpr__faq-question h3 {
        font-size: 1em;
    }
    .page-gdpr__faq-toggle {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }
}