/* style/gdpr.css */

/* Custom Colors */
:root {
    --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;
    --gdpr-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-gdpr {
    background-color: var(--gdpr-background); /* Body background is handled by shared.css */
    color: var(--gdpr-text-main); /* Main text color for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Ensure all text within .page-gdpr has sufficient contrast */
.page-gdpr h1,
.page-gdpr h2,
.page-gdpr h3,
.page-gdpr p,
.page-gdpr li,
.page-gdpr a {
    color: var(--gdpr-text-main); /* Default to main text color */
}

.page-gdpr a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gdpr a:hover {
    color: var(--gdpr-glow);
}

/* Specific text colors for secondary elements */
.page-gdpr__hero-description,
.page-gdpr__text-block,
.page-gdpr__list-item {
    color: var(--gdpr-text-secondary);
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-gdpr__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.page-gdpr__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gdpr-gold); /* H1 can use gold for emphasis */
}

.page-gdpr__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

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

.page-gdpr__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
    background: transparent;
    color: var(--gdpr-glow); /* Glow color for secondary button text */
    border: 2px solid var(--gdpr-glow);
}

.page-gdpr__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1); /* Slight background on hover */
    color: #ffffff;
    transform: translateY(-2px);
}

/* General Content Sections */
.page-gdpr__introduction-section,
.page-gdpr__rights-section,
.page-gdpr__data-protection-section,
.page-gdpr__cookie-policy-section,
.page-gdpr__dpo-contact-section,
.page-gdpr__faq-section,
.page-gdpr__conclusion-section {
    padding: 60px 20px;
    border-top: 1px solid var(--gdpr-divider);
}

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

.page-gdpr__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--gdpr-glow);
}

.page-gdpr__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--gdpr-text-main);
}

.page-gdpr__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--gdpr-text-secondary);
}

.page-gdpr__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Lists */
.page-gdpr__rights-list,
.page-gdpr__security-measures-list,
.page-gdpr__cookie-types-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-gdpr__list-item {
    background-color: var(--gdpr-card-bg);
    border-left: 4px solid var(--gdpr-glow);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1.05rem;
    color: var(--gdpr-text-secondary);
}

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

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

.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-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    color: var(--gdpr-text-main);
    list-style: none; /* Remove default marker */
}

.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

.page-gdpr__faq-qtext {
    flex-grow: 1;
    color: var(--gdpr-text-main);
}

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

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

.page-gdpr__faq-answer p {
    margin: 0;
    color: var(--gdpr-text-secondary);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

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

    .page-gdpr__hero-description {
        font-size: 1.05rem;
    }

    .page-gdpr__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }

    .page-gdpr__sub-title {
        font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    }

    .page-gdpr__introduction-section,
.page-gdpr__rights-section,
.page-gdpr__data-protection-section,
.page-gdpr__cookie-policy-section,
.page-gdpr__dpo-contact-section,
.page-gdpr__faq-section,
.page-gdpr__conclusion-section {
        padding: 40px 15px;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size on mobile */
        min-height: 200px !important; /* Enforce min size on mobile */
    }

    .page-gdpr__hero-image-wrapper,
    .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__image-content {
        padding-left: 0 !important; /* Reset specific padding if any */
        padding-right: 0 !important;
    }

    /* Buttons responsiveness */
    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

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

    .page-gdpr__hero-description {
        font-size: 1rem;
    }

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

    .page-gdpr__sub-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .page-gdpr__text-block,
    .page-gdpr__list-item,
    .page-gdpr__faq-item summary,
    .page-gdpr__faq-answer {
        font-size: 0.95rem;
    }

    .page-gdpr__faq-item summary {
        padding: 15px;
    }

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