/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #333333);
    background-color: var(--page-bg-color, #F5F7FA);
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    padding-bottom: 40px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.page-gdpr__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Ensure image is not cropped */
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-gdpr__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-gdpr__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

/* Section Titles */
.page-gdpr__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-main, #333333);
}

/* Text Blocks */
.page-gdpr__text-block {
    font-size: 1.05rem;
    margin-bottom: 25px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__text-block a,
.page-gdpr__text-link {
    color: #E53935; /* Brand primary color for links */
    text-decoration: underline;
}

/* Principles Section */
.page-gdpr__principles-section {
    padding: 60px 0;
    background-color: var(--card-bg, #FFFFFF);
}

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

.page-gdpr__principle-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #E0E0E0);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-gdpr__principle-card:hover {
    transform: translateY(-5px);
}

.page-gdpr__card-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

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

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

/* Rights Section */
.page-gdpr__rights-section {
    padding: 60px 0;
    background: #E53935; /* Brand primary color for dark section */
    color: #ffffff;
}

.page-gdpr__rights-section .page-gdpr__section-title,
.page-gdpr__rights-section .page-gdpr__text-block {
    color: #ffffff;
}

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

.page-gdpr__rights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-gdpr__list-item {
    font-size: 1rem;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.page-gdpr__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FFD700; /* Gold checkmark for visibility */
}

.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #ffffff;
    color: #E53935;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
    border: 2px solid #E53935;
    margin-top: 30px;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__btn-secondary:hover {
    background: #E53935;
    color: #ffffff;
}

.page-gdpr__cta-wrapper {
    text-align: center;
}

/* Security Section */
.page-gdpr__security-section {
    padding: 60px 0;
    background-color: var(--page-bg-color, #F5F7FA);
}

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

.page-gdpr__feature-item {
    background: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E0E0E0);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-gdpr__feature-icon {
    width: 200px; /* Enforce min size */
    height: 200px; /* Enforce min size */
    object-fit: contain;
    margin-bottom: 15px;
}

.page-gdpr__feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main, #333333);
}

.page-gdpr__feature-text {
    font-size: 0.95rem;
    color: #555555;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg, #FFFFFF);
}

.page-gdpr__faq-list {
    max-width: 900px;
    margin: 30px auto 0 auto;
}

.page-gdpr__faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color, #E0E0E0);
    border-radius: 8px;
    overflow: hidden;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-main, #333333);
    list-style: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-gdpr__faq-item summary::marker {
    display: none;
}

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

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

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

.page-gdpr__faq-answer {
    padding: 20px 25px;
    background-color: #ffffff;
    font-size: 0.95rem;
    color: #555555;
    border-top: 1px solid var(--border-color, #E0E0E0);
}

.page-gdpr__faq-answer p {
    margin-bottom: 0;
}

.page-gdpr__faq-answer a {
    color: #E53935;
    text-decoration: underline;
}

/* Contact CTA Section */
.page-gdpr__contact-cta {
    padding: 60px 0;
    text-align: center;
    background-color: #F5F7FA;
}

.page-gdpr__contact-cta .page-gdpr__section-title {
    color: var(--text-main, #333333);
}

.page-gdpr__contact-cta .page-gdpr__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-gdpr__cta-button--large {
    padding: 15px 35px;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Last Updated Section */
.page-gdpr__last-updated {
    padding: 20px 0;
    text-align: center;
    background-color: #f0f0f0;
    border-top: 1px solid var(--border-color, #E0E0E0);
}

.page-gdpr__update-text {
    font-size: 0.9rem;
    color: #777777;
    margin: 0;
}

/* --- Responsive Styles --- */

/* Mobile Landscape & Tablet Portrait (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-gdpr__container {
        padding: 15px;
    }

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

    .page-gdpr__description {
        font-size: 1rem;
    }

    .page-gdpr__section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }

    .page-gdpr__principles-grid,
    .page-gdpr__rights-grid,
    .page-gdpr__security-features {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-gdpr__principle-card,
    .page-gdpr__feature-item {
        padding: 20px;
    }

    .page-gdpr__card-image,
    .page-gdpr__feature-icon {
        width: 200px; /* Maintain min size */
        height: 200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile Portrait (max-width: 768px) - MUST INCLUDE ALL REQUIRED BLOCKS */
@media (max-width: 768px) {
    /* General content area padding */
    .page-gdpr__container,
    .page-gdpr__principles-section,
    .page-gdpr__rights-section,
    .page-gdpr__security-section,
    .page-gdpr__faq-section,
    .page-gdpr__contact-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section - 768px */
    .page-gdpr__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-gdpr__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .page-gdpr__main-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .page-gdpr__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* Buttons and Button Containers - 768px */
    .page-gdpr__cta-button,
    .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;
        margin-right: auto;
    }

    .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;
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    /* Principles Grid - 768px */
    .page-gdpr__principles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gdpr__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Rights Grid - 768px */
    .page-gdpr__rights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Security Features - 768px */
    .page-gdpr__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gdpr__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* FAQ Section - 768px */
    .page-gdpr__faq-question {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    .page-gdpr__faq-toggle {
        font-size: 1.2rem;
    }

    .page-gdpr__faq-answer {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    /* No specific game grid or winner list for GDPR page, so these are not applicable for this page. */
    /* Other content modules - 768px */
    .page-gdpr__section-title {
        font-size: 1.8rem;
    }

    .page-gdpr__text-block {
        font-size: 1rem;
    }

    /* Ensure all images within .page-gdpr are responsive */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
}