/* style/gdpr.css */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark, so text should be light */
    background-color: #1a1a2e; /* Inherited from shared.css, explicitly set for consistency */
}

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

.page-gdpr__dark-bg {
    background-color: #1a1a2e;
    color: #ffffff;
}

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

.page-gdpr__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 60px 0;
}

.page-gdpr__hero-section {
    position: relative;
    padding: 100px 0 60px; /* Adjusted padding to prevent header overlap */
    padding-top: var(--header-offset, 120px);
    text-align: center;
    overflow: hidden;
    background-color: #017439;
}

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

.page-gdpr__hero-section .page-gdpr__container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.page-gdpr__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

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

.page-gdpr__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__btn-primary:hover {
    background-color: #a00606;
}

.page-gdpr__section {
    padding: 60px 0;
    text-align: center;
}

.page-gdpr__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
    color: inherit;
}

.page-gdpr__subsection-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit;
    text-align: left;
}

.page-gdpr__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    color: inherit;
}

.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-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.page-gdpr__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #017439;
}

.page-gdpr__card-text {
    font-size: 1em;
    color: #555555;
}

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

.page-gdpr__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-gdpr__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #ffffff;
}

.page-gdpr__list-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #ffffff;
}

.page-gdpr__list-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-gdpr__contact-info {
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: 1.1em;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__contact-item {
    margin-bottom: 10px;
    color: inherit;
}

.page-gdpr__link {
    color: #017439; /* Brand primary color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr__link:hover {
    color: #004d26;
}

.page-gdpr__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-gdpr__faq-answer {
    padding: 0 25px 18px;
    font-size: 1em;
    color: #f0f0f0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding-top: 10px;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Details tag specific styling */
.page-gdpr__faq-item summary {
    list-style: none;
}

.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none;
}

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

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

    .page-gdpr__subsection-title {
        font-size: 1.6em;
    }

    .page-gdpr__grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-gdpr__security-list {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

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

    .page-gdpr__container {
        padding: 0 15px;
    }

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

    .page-gdpr__hero-title {
        font-size: 2em;
    }

    .page-gdpr__hero-description {
        font-size: 1em;
    }

    .page-gdpr__btn-primary {
        padding: 12px 25px;
        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 0;
    }

    .page-gdpr__section-title {
        font-size: 1.8em;
    }

    .page-gdpr__subsection-title {
        font-size: 1.4em;
    }

    .page-gdpr__text-block {
        font-size: 0.95em;
        text-align: left;
    }

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

    .page-gdpr__security-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gdpr__card {
        padding: 20px;
    }

    .page-gdpr__list-item {
        padding: 20px;
    }

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

    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-gdpr__contact-info,
    .page-gdpr__faq-list {
        padding-left: 15px;
        padding-right: 15px;
    }
}