/* style/gdpr.css */

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

.page-gdpr {
    background-color: var(--page-gdpr-background);
    color: var(--page-gdpr-text-main); /* Default text color for the page */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* body already handles --header-offset */
    overflow: hidden; /* Ensure no overflow from image */
}

.page-gdpr__hero-content {
    width: 100%;
    max-width: 1200px; /* Constrain content width */
    display: flex;
    flex-direction: column; /* Image above text */
    gap: 30px;
    align-items: center;
    text-align: center;
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    max-width: 1200px; /* Actual display width */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    display: block; /* Ensure no extra space below image */
}

.page-gdpr__hero-text {
    padding: 20px;
}

.page-gdpr__main-title {
    color: var(--page-gdpr-gold);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.2em, 4vw, 3.5em); /* Clamp for responsive H1 size */
}

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

.page-gdpr__section {
    padding: 80px 20px;
    border-bottom: 1px solid var(--page-gdpr-divider);
}

.page-gdpr__introduction-section {
    background-color: var(--page-gdpr-background); /* Dark background */
    color: var(--page-gdpr-text-main);
}

.page-gdpr__principles-section {
    background-color: var(--page-gdpr-card-bg); /* Slightly lighter dark background for contrast */
    color: var(--page-gdpr-text-main);
}

.page-gdpr__rights-section,
.page-gdpr__cookie-policy-section,
.page-gdpr__faq-section {
    background-color: var(--page-gdpr-background);
    color: var(--page-gdpr-text-main);
}

.page-gdpr__security-section,
.page-gdpr__contact-section {
    background-color: var(--page-gdpr-card-bg);
    color: var(--page-gdpr-text-main);
}

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

.page-gdpr__section-title {
    color: var(--page-gdpr-gold);
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-gdpr h3 {
    color: var(--page-gdpr-text-main);
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-gdpr p {
    color: var(--page-gdpr-text-secondary);
    margin-bottom: 1em;
}

.page-gdpr strong {
    color: var(--page-gdpr-text-main);
}

.page-gdpr__image {
    width: 100%;
    height: auto;
    max-width: 800px; /* Content image size */
    margin: 40px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

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

.page-gdpr__card {
    background-color: var(--page-gdpr-card-bg);
    border: 1px solid var(--page-gdpr-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-gdpr__card-title {
    color: var(--page-gdpr-gold);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
}

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

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

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

.page-gdpr__list li::before {
    content: '✅'; /* Green checkmark for list items */
    position: absolute;
    left: 0;
    color: var(--page-gdpr-glow);
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    margin: 10px 5px; /* Spacing for multiple buttons */
}

.page-gdpr__btn-primary {
    background: var(--page-gdpr-button-gradient);
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-gdpr__btn-secondary {
    background: transparent;
    color: var(--page-gdpr-glow);
    border: 2px solid var(--page-gdpr-glow);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__contact-info {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--page-gdpr-background);
    border: 1px solid var(--page-gdpr-border);
    border-radius: 8px;
    color: var(--page-gdpr-text-secondary);
}

.page-gdpr__contact-info p {
    margin-bottom: 10px;
}

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

.page-gdpr__contact-link:hover {
    color: var(--page-gdpr-gold);
    text-decoration: underline;
}

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--page-gdpr-text-main);
    font-size: 1.15em;
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Lighter hover for dark background */
}

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

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

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--page-gdpr-glow);
    transition: transform 0.3s ease;
}

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

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

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


/* Responsive styles */
@media (max-width: 1024px) {
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr h3 {
        font-size: 1.5em;
    }
    .page-gdpr__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    /* H1 clamp handles responsive font size */
    .page-gdpr__hero-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-gdpr__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-gdpr__main-title {
        font-size: 2em; /* specific size for smaller screens */
        margin-bottom: 10px;
    }
    .page-gdpr__hero-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-gdpr__section {
        padding: 50px 15px;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-gdpr h3 {
        font-size: 1.3em;
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important; /* Ensure padding doesn't cause overflow */
    }

    /* Containers for images and content */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsiveness */
    .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; /* Add padding to button itself */
        padding-right: 15px;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
    
    .page-gdpr__hero-text .page-gdpr__btn-primary {
        margin-top: 10px;
    }

    .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;
        overflow: hidden !important;
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    .page-gdpr__grid {
        grid-template-columns: 1fr;
    }
    .page-gdpr__card {
        padding: 20px;
    }
    .page-gdpr__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px 15px;
    }
}

/* Ensure no filter on images */
.page-gdpr img {
    filter: none !important;
}