/* style/gdpr.css */

/* --- General Styles & Layout --- */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

.page-gdpr__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-gdpr__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 500px;
    padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
}

.page-gdpr__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark 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__hero-section .page-gdpr__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-gdpr__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-gdpr__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #FFFFFF;
}

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

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

.page-gdpr__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
}

.page-gdpr__dark-bg .page-gdpr__section-title,
.page-gdpr__dark-bg .page-gdpr__card-title,
.page-gdpr__dark-bg .page-gdpr__cta-text,
.page-gdpr__dark-bg .page-gdpr__list-item strong {
    color: #FFFFFF;
}

.page-gdpr__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

.page-gdpr__highlight {
    color: #C30808; /* A contrasting color for emphasis, like register/login button color */
    font-weight: bold;
}
.page-gdpr__dark-bg .page-gdpr__highlight {
    color: #FFFF00; /* Yellow for highlights on dark green background */
}

/* --- Buttons --- */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary,
.page-gdpr__btn-register {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-gdpr__btn-primary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-gdpr__btn-primary:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}

.page-gdpr__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-gdpr__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #005f2e;
    border-color: #005f2e;
}

.page-gdpr__btn-register {
    background-color: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom font color for register */
    border: 2px solid #C30808;
}

.page-gdpr__btn-register:hover {
    background-color: #a30606;
    border-color: #a30606;
}

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

/* --- Cards --- */
.page-gdpr__card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.page-gdpr__light-bg .page-gdpr__card {
    background-color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}


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

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

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

/* --- Lists --- */
.page-gdpr__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-gdpr__list-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.7;
    text-align: justify;
}

.page-gdpr__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #C30808; /* Checkmark color */
    font-size: 1.2em;
    line-height: 1;
}

/* --- Images --- */
.page-gdpr__image-full-width {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

/* --- CTA Box --- */
.page-gdpr__cta-box {
    background-color: #f0f8f0; /* Light green background */
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.page-gdpr__dark-bg .page-gdpr__cta-box {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}
.page-gdpr__dark-bg .page-gdpr__cta-box .page-gdpr__cta-text {
    color: #FFFFFF;
}

.page-gdpr__cta-text {
    font-size: 1.2em;
    margin-bottom: 25px;
    line-height: 1.6;
    color: #333333;
}

/* --- Final CTA Section --- */
.page-gdpr__cta-final {
    padding: 80px 0;
    text-align: center;
    background-color: #017439;
    color: #FFFFFF;
}

.page-gdpr__cta-final-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-gdpr__cta-final-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    color: #FFFFFF;
}

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

.page-gdpr__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    color: #017439;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: #f0f0f0;
}

.page-gdpr__faq-question h3 {
    margin: 0;
    font-size: 1em; /* Relative to parent font-size */
    color: #017439;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #017439;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fdfdfd;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

.page-gdpr__faq-answer p {
    margin: 0;
    font-size: 1.05em;
    line-height: 1.7;
    color: #555555;
    text-align: justify;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.8em;
    }
    .page-gdpr__hero-description {
        font-size: 1.2em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__cta-final-title {
        font-size: 2.4em;
    }
    .page-gdpr__cta-final-description {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding: 80px 20px;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure spacing below fixed header for mobile */
    }
    .page-gdpr__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-gdpr__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-gdpr__content-section {
        padding: 40px 0;
    }
    .page-gdpr__principles-grid,
    .page-gdpr__rights-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-gdpr__card {
        padding: 25px;
    }
    .page-gdpr__card-title {
        font-size: 1.3em;
    }
    .page-gdpr__paragraph,
    .page-gdpr__list-item,
    .page-gdpr__card-text,
    .page-gdpr__cta-text,
    .page-gdpr__faq-answer p {
        font-size: 0.95em;
        line-height: 1.6;
    }
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary,
    .page-gdpr__btn-register {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }
    .page-gdpr__cta-box {
        padding: 30px;
    }
    .page-gdpr__cta-final {
        padding: 60px 0;
    }
    .page-gdpr__cta-final-title {
        font-size: 2em;
    }
    .page-gdpr__cta-final-description {
        font-size: 1.1em;
    }
    .page-gdpr__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-gdpr__faq-toggle {
        font-size: 1.3em;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px;
    }
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 10px 20px 20px;
    }

    /* Mobile image responsive optimization */
    .page-gdpr img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-gdpr__hero-section,
    .page-gdpr__content-section,
    .page-gdpr__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__hero-section .page-gdpr__container,
    .page-gdpr__content-section .page-gdpr__container,
    .page-gdpr__cta-final .page-gdpr__container {
        padding: 0; /* Container padding handled by section padding */
    }
    .page-gdpr__image-full-width,
    .page-gdpr__image-centered {
        margin-left: 0;
        margin-right: 0;
        border-radius: 5px;
    }
    /* Button group specific for mobile */
    .page-gdpr__cta-buttons { /* Assuming a container for multiple buttons */
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* Ensure content area images are not too small */
.page-gdpr__content-section img {
    min-width: 200px;
    min-height: 200px;
}
@media (max-width: 768px) {
  .page-gdpr__content-section img {
    min-width: unset; /* Allow smaller on mobile if max-width: 100% makes it smaller */
    min-height: unset;
  }
}