/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background from shared.css */
    background-color: transparent; /* body background comes from shared.css */
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Section styling */
.page-gdpr__section {
    padding: 60px 20px;
    margin-bottom: 0;
}

.page-gdpr__dark-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-gdpr__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

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

.page-gdpr__section-title {
    font-size: 2.8em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from section */
    line-height: 1.2;
}

.page-gdpr__subsection-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit;
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
    overflow: hidden;
    padding-top: 0; /* Handled by body padding-top */
    padding-bottom: 40px;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 15px;
}

.page-gdpr__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #ffffff;
}

.page-gdpr__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* CTA Buttons */
.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

.page-gdpr__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

/* Content Layouts */
.page-gdpr__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-gdpr__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-gdpr__text-block {
    flex: 1;
    font-size: 1.05em;
}

.page-gdpr__text-block p {
    margin-bottom: 15px;
}

.page-gdpr__text-block a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: underline;
    font-weight: 600;
}

.page-gdpr__dark-section .page-gdpr__text-block a {
    color: #ffffff; /* White links on dark background */
}

.page-gdpr__image-box {
    flex: 1;
    min-width: 300px; /* Minimum width for image block */
}

.page-gdpr__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Lists */
.page-gdpr__list,
.page-gdpr__contact-list,
.page-gdpr__ordered-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-gdpr__list li,
.page-gdpr__contact-list li,
.page-gdpr__ordered-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-gdpr__list li::before {
    content: '•';
    color: #26A9E0; /* Brand color for bullets */
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.page-gdpr__dark-section .page-gdpr__list li::before {
    color: #ffffff;
}

.page-gdpr__ordered-list li::before {
    content: counter(list-item) '.';
    counter-increment: list-item;
    color: #26A9E0;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-gdpr__dark-section .page-gdpr__ordered-list li::before {
    color: #ffffff;
}

/* FAQ Section */
.page-gdpr__faq-section {
    background-color: #f8f9fa; /* Light grey background for FAQ */
    color: #333333;
}

.page-gdpr__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    color: #333333;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
    user-select: none;
}

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

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-gdpr__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
    border-top: 1px solid #eee;
}

.page-gdpr__faq-answer p {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-gdpr__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-gdpr__content-wrapper--reverse {
        flex-direction: column;
    }

    .page-gdpr__image-box {
        margin-bottom: 30px;
    }

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

    .page-gdpr__main-title {
        font-size: clamp(2em, 8vw, 3em);
    }
}

@media (max-width: 768px) {
    .page-gdpr__section {
        padding: 40px 15px;
    }

    .page-gdpr__hero-section {
        min-height: 400px;
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-bottom: 30px;
    }

    .page-gdpr__main-title {
        font-size: clamp(1.8em, 9vw, 2.5em);
    }

    .page-gdpr__description {
        font-size: 1em;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Limit button group width */
        margin-left: auto;
        margin-right: auto;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-gdpr__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

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

    .page-gdpr__text-block,
    .page-gdpr__image-box {
        flex: none;
        width: 100%;
    }

    /* Image responsive adaptions */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__image-box {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* FAQ */
    .page-gdpr__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-gdpr__faq-answer {
        padding: 10px 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-gdpr__section-title {
        font-size: 1.8em;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.5em, 10vw, 2.2em);
    }
}

/* Contrast Fixes - if body is dark, text should be light, vice versa */
/* Assuming body background is dark (var(--dark-bg-1)), so default text is light */
.page-gdpr__light-bg {
  color: #333333; /* Dark text for light background sections */
}
.page-gdpr__light-bg .page-gdpr__section-title,
.page-gdpr__light-bg .page-gdpr__subsection-title {
  color: #000000; /* Ensure headings are dark on light background */
}
.page-gdpr__light-bg .page-gdpr__text-block a {
  color: #26A9E0; /* Brand color for links on light background */
}
.page-gdpr__light-bg .page-gdpr__list li::before,
.page-gdpr__light-bg .page-gdpr__ordered-list li::before {
  color: #26A9E0; /* Brand color for bullets on light background */
}

/* Ensure buttons have high contrast */
.page-gdpr__btn-primary {
    background: #EA7C07; /* Login color */
    color: #ffffff;
}
.page-gdpr__btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}
.page-gdpr__btn-secondary:hover {
    background: #ffffff;
    color: #26A9E0;
}