/* style/gdpr.css */

/* Variables and base styles */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --accent-color: #EA7C07; /* For login/CTA */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #26A9E0; /* Using primary color as dark background for contrast sections */
    --border-color: #e0e0e0;
}

/* Base page styles, body padding-top is handled by shared.css */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-dark); /* Default text color for light background */
    line-height: 1.6;
    background-color: var(--bg-light); /* Explicitly setting for content area */
}

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

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

.page-gdpr__section:nth-child(even) {
    background-color: #f9f9f9; /* Slightly different background for alternating sections */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-bottom: 60px; /* Space below content */
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--bg-dark); /* Dark background for hero */
    color: var(--text-color-light);
    overflow: hidden; /* Ensure no overflow */
}

.page-gdpr__hero-image {
    width: 100%;
    max-width: 100%; /* Ensure image fills width */
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
}

.page-gdpr__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above any potential background effects */
}

.page-gdpr__main-title {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color-light);
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.page-gdpr__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

.page-gdpr__heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.page-gdpr__dark-bg .page-gdpr__heading {
    color: var(--text-color-light);
}

.page-gdpr__text-block {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: justify;
}

.page-gdpr__image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-gdpr__btn-primary {
    background-color: var(--accent-color); /* Login color for primary CTA */
    color: var(--text-color-light);
    border: 2px solid var(--accent-color);
}

.page-gdpr__btn-primary:hover {
    background-color: #c96700; /* Darker shade of EA7C07 */
    transform: translateY(-2px);
}

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

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

/* Lists */
.page-gdpr__list {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
    margin-bottom: 20px;
}

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

.page-gdpr__list-item {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Cards */
.page-gdpr__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-gdpr__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-color-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 200px;
    min-height: 200px;
}

.page-gdpr__dark-bg .page-gdpr__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
}

.page-gdpr__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color-light);
}

.page-gdpr__card-text {
    font-size: 0.95rem;
}

/* Dark background sections */
.page-gdpr__dark-section {
    background-color: var(--bg-dark);
    color: var(--text-color-light);
}

/* Contact List */
.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: center;
}

.page-gdpr__contact-item {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

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

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

/* FAQ Section */
.page-gdpr__faq {
    background-color: var(--bg-light);
}

.page-gdpr__faq-list {
    margin-top: 30px;
}

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    background-color: #f0f0f0;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    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 Chrome/Safari */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    background-color: #e8e8e8;
    border-bottom-color: transparent;
}

.page-gdpr__faq-question:hover {
    background-color: #e8e8e8;
}

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

.page-gdpr__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    content: '−'; /* Change to minus when open */
}

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

.page-gdpr__text-center {
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-gdpr__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-gdpr__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }

    .page-gdpr__hero-image {
        margin-bottom: 20px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-gdpr__hero-content {
        padding: 0 15px;
    }

    .page-gdpr__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust clamp for smaller screens */
        margin-bottom: 15px;
    }

    .page-gdpr__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-gdpr__heading {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .page-gdpr__text-block,
    .page-gdpr__list-item,
    .page-gdpr__card-text,
    .page-gdpr__faq-answer {
        font-size: 0.9rem;
    }

    .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: 12px 20px;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 15px; /* Stack buttons vertically */
    }
    
    .page-gdpr__cards {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }

    .page-gdpr__card {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-gdpr__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
    }

    .page-gdpr img { /* General image responsive rule */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-gdpr__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-gdpr__faq-answer {
        padding: 15px 20px;
    }
    
    .page-gdpr__hero-section .page-gdpr__btn-primary {
        margin-bottom: 0;
    }
}

/* Content area image min size */
.page-gdpr__section img {
    min-width: 200px;
    min-height: 200px;
}