:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg: #D32F2F;
    --section-bg: #B71C1C;
    --text-main: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
    --default-text-color: #333333; /* For light backgrounds */
    --default-light-bg: #ffffff; /* Default light background */
    --default-card-border: #e0e0e0;
}

/* General styles for the page-gdpr scope */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--default-text-color); /* Default text color for light sections */
    background-color: var(--default-light-bg); /* Default background for light sections */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: var(--section-bg);
    color: var(--text-main);
    overflow: hidden; /* Ensure no overflow from image */
}

.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%; /* Ensure width is 100% for flex item */
}

.page-gdpr__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

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

.page-gdpr__lead-paragraph {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main);
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--deep-red-color); /* Contrast with gold gradient */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-gdpr__cta-button:hover {
    background: linear-gradient(180deg, #FFE082 0%, #FFC107 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-gdpr__section {
    padding: 60px 20px;
    margin-bottom: 0; /* Sections handle their own padding */
}

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

.page-gdpr__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color); /* Default for light background */
    position: relative;
    padding-bottom: 10px;
}

.page-gdpr__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
}

.page-gdpr__section p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.8;
}

.page-gdpr__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.page-gdpr__list li {
    margin-bottom: 10px;
}

/* Principles 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: var(--default-light-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--default-card-border);
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-gdpr__card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-gdpr__card p {
    font-size: 0.95em;
    line-height: 1.7;
    color: inherit; /* Inherit color from parent for contrast */
}

/* Dark Background Sections */
.page-gdpr__dark-bg {
    background-color: var(--card-bg);
    color: var(--text-main);
}
.page-gdpr__dark-bg .page-gdpr__card-title {
    color: var(--gold-color);
}
.page-gdpr__dark-bg .page-gdpr__section-title {
    color: var(--text-main); /* Override for dark section titles */
}
.page-gdpr__dark-bg .page-gdpr__section-title::after {
    background-color: var(--gold-color);
}


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

details.page-gdpr__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--default-light-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--default-text-color);
    font-weight: 600;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question::-webkit-details-marker {
    display: none;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question:hover {
    background: #f0f0f0;
}
.page-gdpr__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.5;
    text-align: left;
    color: var(--primary-color);
}
.page-gdpr__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--deep-red-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}
details.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg);
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
    padding: 0 25px 25px;
    background: #f9f9f9;
    border-radius: 0 0 12px 12px;
    color: var(--default-text-color);
}
.page-gdpr__faq-answer p {
    margin-bottom: 0;
}

/* Contact DPO Section */
.page-gdpr__contact-dpo {
    text-align: center;
    padding-bottom: 80px;
}

.page-gdpr__contact-info {
    margin-top: 30px;
    font-size: 1.1em;
}

.page-gdpr__contact-info p {
    margin-bottom: 10px;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-content h1 {
        font-size: 2.8em;
    }
    .page-gdpr__lead-paragraph {
        font-size: 1.1em;
    }
    .page-gdpr__section-title {
        font-size: 2.2em;
    }
    .page-gdpr__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__hero-image {
        border-radius: 8px;
        margin-bottom: 20px;
    }
    .page-gdpr__hero-content h1 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-gdpr__lead-paragraph {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-gdpr__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-gdpr__section {
        padding: 40px 15px;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-gdpr__section-title::after {
        width: 60px;
    }
    .page-gdpr__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-gdpr__card {
        padding: 25px;
        border-radius: 10px;
    }
    .page-gdpr__card img {
        min-width: 200px;
        min-height: 200px;
    }
    .page-gdpr__card-title {
        font-size: 1.3em;
    }
    .page-gdpr__faq-item {
        border-radius: 10px;
    }
    details.page-gdpr__faq-item summary.page-gdpr__faq-question {
        padding: 15px 20px;
    }
    .page-gdpr__faq-qtext {
        font-size: 1em;
    }
    .page-gdpr__faq-toggle {
        font-size: 24px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-gdpr__faq-item .page-gdpr__faq-answer {
        padding: 0 20px 20px;
    }
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-gdpr__section,
    .page-gdpr__container,
    .page-gdpr__card,
    .page-gdpr__hero-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-content h1 {
        font-size: 1.8em;
    }
    .page-gdpr__section-title {
        font-size: 1.6em;
    }
    .page-gdpr__cta-button {
        padding: 10px 25px;
        font-size: 0.95em;
    }
}

/* Ensure no filter on images */
.page-gdpr img {
    filter: none;
}