/* style/gdpr.css */

/* Custom Colors */
:root {
    --gdpr-primary-color: #11A84E;
    --gdpr-secondary-color: #22C768;
    --gdpr-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --gdpr-card-bg: #11271B;
    --gdpr-background: #08160F;
    --gdpr-text-main: #F2FFF6;
    --gdpr-text-secondary: #A7D9B8;
    --gdpr-border: #2E7A4E;
    --gdpr-glow: #57E38D;
    --gdpr-gold: #F2C14E;
    --gdpr-divider: #1E3A2A;
    --gdpr-deep-green: #0A4B2C;
}

.page-gdpr {
    background-color: var(--gdpr-background);
    color: var(--gdpr-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Small top padding, larger bottom for content */
    background-color: var(--gdpr-card-bg); /* Use card bg for hero section */
    overflow: hidden;
    text-align: center;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 1200px; /* Constrain image width */
}

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

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
    color: var(--gdpr-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-gdpr__intro-text {
    font-size: 1.1em;
    color: var(--gdpr-text-secondary);
    margin-bottom: 30px;
}

.page-gdpr__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary,
.page-gdpr__btn-contact {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-gdpr__btn-primary {
    background: var(--gdpr-button-gradient);
    color: var(--gdpr-text-main);
    border: none;
}

.page-gdpr__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: var(--gdpr-primary-color);
    border: 2px solid var(--gdpr-primary-color);
}

.page-gdpr__btn-secondary:hover {
    background-color: var(--gdpr-primary-color);
    color: var(--gdpr-text-main);
    transform: translateY(-2px);
}

/* General Section Styling */
.page-gdpr__section {
    padding: 60px 20px;
    border-bottom: 1px solid var(--gdpr-divider);
}

.page-gdpr__section:last-of-type {
    border-bottom: none;
}

/* Background colors for sections based on custom palette */
.page-gdpr__hero-section,
.page-gdpr__section-protection-measures,
.page-gdpr__section-contact {
    background-color: var(--gdpr-card-bg);
    color: var(--gdpr-text-main);
}

.page-gdpr__section-overview,
.page-gdpr__section-user-rights,
.page-gdpr__section-data-handling,
.page-gdpr__section-request-process,
.page-gdpr__section-faq {
    background-color: var(--gdpr-background);
    color: var(--gdpr-text-main);
}

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

.page-gdpr__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: var(--gdpr-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-gdpr__section-description {
    font-size: 1.1em;
    color: var(--gdpr-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-gdpr__content-block {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

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

.page-gdpr__text-content {
    flex: 1;
}

.page-gdpr__image {
    flex-shrink: 0;
    width: 45%; /* Adjusted for better content flow */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size for content images */
    min-height: 200px;
}

.page-gdpr__image--left {
    margin-right: 0;
}

.page-gdpr__image--right {
    margin-left: 0;
}

.page-gdpr__image--center {
    display: block;
    margin: 40px auto;
    max-width: 80%;
}

.page-gdpr__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-gdpr__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--gdpr-text-secondary);
}

.page-gdpr__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gdpr-primary-color);
    font-weight: bold;
}

/* User Rights Grid */
.page-gdpr__rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

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

.page-gdpr__card:hover {
    transform: translateY(-5px);
}

.page-gdpr__card-title {
    font-size: 1.3em;
    color: var(--gdpr-primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Process Steps */
.page-gdpr__process-steps {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-gdpr__step-card {
    flex: 1;
    min-width: 300px;
    background-color: var(--gdpr-card-bg);
    border: 1px solid var(--gdpr-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--gdpr-text-main);
    text-align: center;
}

/* FAQ Section */
.page-gdpr__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-gdpr__faq-item {
    background-color: var(--gdpr-card-bg);
    border: 1px solid var(--gdpr-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--gdpr-text-main);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--gdpr-text-main);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-gdpr__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

.page-gdpr__faq-item[open] > .page-gdpr__faq-question {
    background-color: var(--gdpr-deep-green);
}

.page-gdpr__faq-qtext {
    flex-grow: 1;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gdpr-primary-color);
}

.page-gdpr__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--gdpr-text-secondary);
}

/* Contact Section */
.page-gdpr__contact-info {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.page-gdpr__contact-info p {
    color: var(--gdpr-text-secondary);
    margin-bottom: 10px;
}

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

.page-gdpr__contact-link:hover {
    color: var(--gdpr-secondary-color);
}

.page-gdpr__btn-contact {
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__hero-image-wrapper {
        max-height: 400px;
    }

    .page-gdpr__content-block {
        flex-direction: column;
        align-items: center;
    }

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

    .page-gdpr__image {
        width: 80%;
        margin-bottom: 30px;
        min-width: 200px;
        min-height: 200px;
    }

    .page-gdpr__image--left,
    .page-gdpr__image--right {
        margin: 0 auto 30px;
    }
}

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

    .page-gdpr__hero-image-wrapper {
        max-height: 300px;
    }

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

    .page-gdpr__intro-text {
        font-size: 1em;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
        overflow: hidden;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary,
    .page-gdpr__btn-contact {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__section {
        padding: 40px 15px;
    }

    .page-gdpr__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }

    .page-gdpr__section-description {
        font-size: 0.95em;
    }

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

    .page-gdpr__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px;
        min-height: 200px;
    }

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

    .page-gdpr__card {
        padding: 20px;
    }

    .page-gdpr__rights-grid {
        grid-template-columns: 1fr;
    }

    .page-gdpr__process-steps {
        flex-direction: column;
        gap: 20px;
    }

    .page-gdpr__step-card {
        min-width: unset;
    }

    .page-gdpr__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

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