/* style/gdpr.css */

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

/* Main page styling, assuming shared.css sets body background to a dark color */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--gdpr-text-main); /* Default text color for the page */
    background-color: var(--gdpr-background); /* Override for consistency if shared body is different */
}

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

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

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

.page-gdpr__dark-bg {
    background-color: var(--gdpr-background);
    color: var(--gdpr-text-main);
}

.page-gdpr__card-bg {
    background-color: var(--gdpr-card-bg);
    color: var(--gdpr-text-main);
}

.page-gdpr__section-title {
    font-size: clamp(28px, 3.5vw, 48px);
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--gdpr-text-main);
}

.page-gdpr__light-bg .page-gdpr__section-title {
    color: #000000;
}

.page-gdpr__description {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--gdpr-text-secondary);
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    background-color: var(--gdpr-background);
    overflow: hidden;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height of the image wrapper */
    overflow: hidden;
}

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

.page-gdpr__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -150px; /* Overlap slightly with image for design, but text is below */
    background-color: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-gdpr__main-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--gdpr-text-main);
    line-height: 1.2;
}

.page-gdpr__hero-content .page-gdpr__description {
    margin-bottom: 30px;
    color: var(--gdpr-text-secondary);
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-gdpr__btn-primary {
    background: var(--gdpr-button-gradient);
    color: var(--gdpr-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-gdpr__btn-secondary:hover {
    background-color: var(--gdpr-primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

/* Image Content Flex Layout */
.page-gdpr__image-content-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.page-gdpr__image-content-flex:nth-child(even) {
    flex-direction: row-reverse;
}

.page-gdpr__content-block {
    flex: 1;
}

.page-gdpr__content-block p {
    margin-bottom: 20px;
    color: var(--gdpr-text-secondary);
}

.page-gdpr__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Commitment List */
.page-gdpr__commitment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

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

.page-gdpr__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

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

.page-gdpr__card {
    background-color: var(--gdpr-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    color: var(--gdpr-text-main);
    border: 1px solid var(--gdpr-border-color);
}

.page-gdpr__light-bg .page-gdpr__card {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-gdpr__card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gdpr-gold-color);
}

.page-gdpr__light-bg .page-gdpr__card-title {
    color: var(--gdpr-primary-color);
}

.page-gdpr__card-text {
    font-size: 16px;
    color: var(--gdpr-text-secondary);
}

.page-gdpr__light-bg .page-gdpr__card-text {
    color: #555555;
}

/* Your Rights Grid */
.page-gdpr__rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-gdpr__right-item {
    background-color: rgba(17, 168, 78, 0.1);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--gdpr-primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__right-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gdpr-gold-color);
}

.page-gdpr__right-item p {
    color: var(--gdpr-text-secondary);
}

.page-gdpr__cta-contact {
    margin-top: 50px;
}

.page-gdpr__cta-contact p {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--gdpr-text-secondary);
}

/* FAQ Section */
.page-gdpr__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-gdpr__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-gdpr__light-bg .page-gdpr__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.page-gdpr__dark-bg .page-gdpr__faq-item {
    background-color: var(--gdpr-card-bg);
    border: 1px solid var(--gdpr-border-color);
}

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

.page-gdpr__dark-bg .page-gdpr__faq-question {
    color: var(--gdpr-text-main);
    background-color: var(--gdpr-deep-green);
}

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    content: '−';
}

.page-gdpr__faq-answer {
    padding: 20px;
    font-size: 16px;
    color: #555555;
    border-top: 1px solid #e0e0e0;
}

.page-gdpr__dark-bg .page-gdpr__faq-answer {
    color: var(--gdpr-text-secondary);
    border-top: 1px solid var(--gdpr-divider-color);
}

/* Hide default details marker */
.page-gdpr__faq-item summary {
    list-style: none;
}
.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none;
}

/* Bottom CTA */
.page-gdpr__cta-bottom {
    padding: 80px 0;
    background-color: var(--gdpr-card-bg);
}

.page-gdpr__cta-content {
    max-width: 800px;
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}


/* Responsive Styles */
@media (max-width: 992px) {
    .page-gdpr__hero-content {
        margin-top: -100px;
    }
    .page-gdpr__image-content-flex {
        flex-direction: column;
        text-align: center;
    }
    .page-gdpr__image-content-flex:nth-child(even) {
        flex-direction: column;
    }
    .page-gdpr__content-block {
        order: 2;
    }
    .page-gdpr__image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }
    .page-gdpr__btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    .page-gdpr__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-gdpr__btn-primary, .page-gdpr__btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-gdpr__section {
        padding: 40px 0;
    }
    .page-gdpr__hero-section {
        padding-bottom: 40px;
    }
    .page-gdpr__hero-content {
        padding: 30px 15px;
        margin-top: -80px;
    }
    .page-gdpr__main-title {
        font-size: 30px;
    }
    .page-gdpr__description {
        font-size: 16px;
    }
    .page-gdpr__section-title {
        font-size: 26px;
    }
    .page-gdpr__data-grid, .page-gdpr__rights-grid {
        grid-template-columns: 1fr;
    }
    .page-gdpr__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary,
    .page-gdpr a[class*="button"],
    .page-gdpr a[class*="btn"] {
        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;
    }
    /* Mobile image responsive */
    .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-image-wrapper,
    .page-gdpr__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-gdpr__hero-section {
        padding-top: 10px !important;
    }
    .page-gdpr__faq-question {
        font-size: 16px;
        padding: 15px;
    }
    .page-gdpr__faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-gdpr__main-title {
        font-size: 28px;
    }
    .page-gdpr__section-title {
        font-size: 24px;
    }
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        font-size: 16px;
        padding: 12px 20px;
    }
}