/* style/gdpr.css */

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

.page-gdpr {
    background-color: var(--page-gdpr-background); /* Dark background */
    color: var(--page-gdpr-text-main); /* Light text for contrast */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--page-gdpr-deep-green-color);
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for aesthetic */
    margin-bottom: 30px;
}

.page-gdpr__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 1;
    position: relative; /* Ensure text is above any background effects */
}

.page-gdpr__main-title {
    color: var(--page-gdpr-text-main);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    max-width: 100%;
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
}

.page-gdpr__subtitle {
    color: var(--page-gdpr-text-secondary);
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__btn-primary {
    display: inline-block;
    background: var(--page-gdpr-button-gradient);
    color: #ffffff; /* White text for primary button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-sizing: border-box;
}

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

.page-gdpr__btn-primary--centered {
    margin: 30px auto 0;
    display: block;
    width: fit-content;
}

.page-gdpr__btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--page-gdpr-primary-color); /* Brand color text for secondary button */
    border: 2px solid var(--page-gdpr-primary-color);
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    box-sizing: border-box;
}

.page-gdpr__btn-secondary:hover {
    background: var(--page-gdpr-primary-color);
    color: #ffffff;
}

.page-gdpr__btn-secondary--centered {
    margin: 30px auto 0;
    display: block;
    width: fit-content;
}

.page-gdpr__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: var(--page-gdpr-text-main);
}

.page-gdpr__heading {
    color: var(--page-gdpr-text-main);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.3;
}

.page-gdpr__paragraph {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--page-gdpr-text-secondary);
}

.page-gdpr__paragraph--centered {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__dark-section {
    background-color: var(--page-gdpr-card-bg);
    padding: 60px 20px;
    color: var(--page-gdpr-text-main);
}

.page-gdpr__card-grid {
    text-align: center;
}

.page-gdpr__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

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

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

.page-gdpr__card-title {
    color: var(--page-gdpr-primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-gdpr__card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-gdpr-text-secondary);
}

.page-gdpr__image-text-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

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

.page-gdpr__image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

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

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

.page-gdpr__image--centered {
    display: block;
    margin: 40px auto;
    max-width: 800px;
    width: 100%;
}

.page-gdpr__list {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    list-style: none;
    padding-left: 0;
}

.page-gdpr__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--page-gdpr-text-secondary);
}

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

.page-gdpr__contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-gdpr__contact-card {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-gdpr__contact-card .page-gdpr__card-title {
    color: var(--page-gdpr-gold-color);
}

.page-gdpr__contact-card .page-gdpr__btn-primary {
    margin-top: 20px;
}

.page-gdpr__faq-section {
    text-align: center;
}

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-gdpr-text-main);
    cursor: pointer;
    list-style: none; /* For details/summary */
}

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

.page-gdpr__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--page-gdpr-primary-color);
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-image {
        max-height: 500px;
    }
    .page-gdpr__image-text-block, .page-gdpr__image-text-block--reverse {
        flex-direction: column;
        gap: 30px;
    }
    .page-gdpr__image, .page-gdpr__list {
        max-width: 100%;
    }
    .page-gdpr__contact-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-gdpr__hero-section {
        padding: 10px 15px 40px;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-gdpr__subtitle {
        font-size: 1rem;
    }
    .page-gdpr__content-area, .page-gdpr__dark-section {
        padding: 40px 15px;
    }
    .page-gdpr__heading {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
    .page-gdpr__paragraph, .page-gdpr__list-item, .page-gdpr__card-text {
        font-size: 0.95rem;
    }
    .page-gdpr__grid-container {
        grid-template-columns: 1fr;
    }
    .page-gdpr__card {
        padding: 25px;
    }
    .page-gdpr__card-title {
        font-size: 1.2rem;
    }
    .page-gdpr__image {
        min-width: unset;
    }
    .page-gdpr__contact-info {
        flex-direction: column;
    }
    .page-gdpr__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px 15px;
    }

    /* Mobile image responsive adaptation */
    .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-section,
    .page-gdpr__introduction-section,
    .page-gdpr__principles-section,
    .page-gdpr__rights-section,
    .page-gdpr__data-collection-section,
    .page-gdpr__security-measures-section,
    .page-gdpr__cookie-policy-section,
    .page-gdpr__contact-section,
    .page-gdpr__faq-section,
    .page-gdpr__grid-container,
    .page-gdpr__contact-info,
    .page-gdpr__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    
    /* Mobile button responsive adaptation */
    .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;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .page-gdpr__cta-buttons,
    .page-gdpr__button-group,
    .page-gdpr__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        overflow: hidden !important;
    }
    .page-gdpr__contact-card .page-gdpr__btn-primary {
        width: calc(100% - 30px) !important; /* Adjust for padding */
    }
}