/* style/gdpr.css */

/* Base styles for the page content */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main for dark background */
    background-color: #08160F; /* Background */
}

/* Container for main content sections */
.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px; /* Adjust as needed */
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
}

.page-gdpr__hero-content {
    text-align: center;
    padding: 40px 20px;
    background: #08160F; /* Match body background */
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

.page-gdpr__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em); /* Use clamp for H1 */
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-gdpr__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width */
    max-width: 800px; /* Limit width for aesthetics */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-gdpr__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    border: none;
}

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

.page-gdpr__btn-secondary {
    background: #11271B; /* Card BG */
    color: #A7D9B8; /* Text Secondary */
    border: 2px solid #2E7A4E; /* Border */
}

.page-gdpr__btn-secondary:hover {
    background: #2E7A4E; /* Border color for hover */
    color: #F2FFF6;
}

/* General Section Styles */
.page-gdpr__section {
    padding: 60px 0;
    border-top: 1px solid #1E3A2A; /* Divider */
}

.page-gdpr__section-title {
    font-size: 2.2em;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-gdpr__introduction p,
.page-gdpr__data-collection p,
.page-gdpr__user-rights p,
.page-gdpr__data-security p,
.page-gdpr__cookie-policy p,
.page-gdpr__contact p {
    margin-bottom: 20px;
    color: #A7D9B8; /* Text Secondary */
}

.page-gdpr__list {
    list-style: disc;
    margin-left: 40px;
    margin-bottom: 20px;
    color: #A7D9B8; /* Text Secondary */
}

.page-gdpr__list li {
    margin-bottom: 10px;
    color: #A7D9B8; /* Text Secondary */
}

.page-gdpr__list li strong {
    color: #F2FFF6; /* Text Main for strong text */
}

.page-gdpr__link {
    color: #2AD16F; /* A brighter green for links */
    text-decoration: underline;
}

.page-gdpr__link:hover {
    color: #57E38D; /* Glow for hover */
}

.page-gdpr__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    max-width: 800px;
}

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

.page-gdpr__contact-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-gdpr__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-gdpr__faq-item {
    background: #11271B; /* Card BG */
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #2E7A4E; /* Border */
    overflow: hidden;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    list-style: none; /* For <summary> tag */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.page-gdpr__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <summary> */
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #57E38D; /* Glow color */
    transition: transform 0.3s ease;
}

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

.page-gdpr__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
    max-height: 2000px; /* Arbitrary large value to allow full expansion */
    transition: max-height 0.5s ease-in;
}

.page-gdpr__faq-answer p {
    margin-bottom: 10px;
    color: #A7D9B8; /* Text Secondary */
}

/* Responsive Styles */
/* Tablet and Mobile */
@media (max-width: 1024px) {
    .page-gdpr__container {
        padding: 20px 15px;
    }

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

    .page-gdpr__main-title {
        font-size: clamp(1.8em, 4vw, 2.8em);
    }

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

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100%;
        max-width: 100%;
    }

    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-gdpr__list {
        margin-left: 20px;
    }

    .page-gdpr__faq-question {
        font-size: 1.05em;
        padding: 18px 20px;
    }

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

/* Mobile specific styles */
@media (max-width: 768px) {
    /* 1. HERO Chủ hình ảnh và khu vực nội dung */
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* Đệm trên nhỏ, phần thân xử lý --header-offset */
        padding-bottom: 40px;
    }
    .page-gdpr__hero-content {
        padding: 20px 15px;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.5em, 5vw, 2.2em) !important;
        margin-bottom: 15px;
    }
    .page-gdpr__description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    /* 2. Khu vực hiển thị sản phẩm (gameshow) - Không có trên trang này nhưng phải bao gồm */
    /* Quy tắc chung cho lưới sản phẩm tiềm năng trong tương lai */
    .page-gdpr__products-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* Mỗi sản phẩm một hàng trên di động */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__product-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. Hình ảnh và vùng chứa chung */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-gdpr__section,
    .page-gdpr__container,
    .page-gdpr__faq-item, /* Cho các mục FAQ, v.v. */
    .page-gdpr__content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Đảm bảo không có thanh cuộn ngang */
    }

    /* 4. Nút và vùng chứa nút */
    .page-gdpr__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
    .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 !important;
        padding-right: 15px !important;
    }

    /* 5. Các module nội dung khác */
    .page-gdpr__section {
        padding: 40px 0 !important;
    }
    .page-gdpr__section-title {
        font-size: 1.6em !important;
        margin-bottom: 25px !important;
        padding: 0 10px;
    }
    .page-gdpr__introduction p,
    .page-gdpr__data-collection p,
    .page-gdpr__user-rights p,
    .page-gdpr__data-security p,
    .page-gdpr__cookie-policy p,
    .page-gdpr__contact p,
    .page-gdpr__list li,
    .page-gdpr__faq-answer p {
        font-size: 0.95em !important;
    }
    .page-gdpr__list {
        margin-left: 20px !important;
    }
    .page-gdpr__faq-question {
        font-size: 1em !important;
        padding: 15px 20px !important;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px 15px !important;
    }
}