/* style/gdpr.css */

/* Biến màu */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-login: #EA7C07;
    --bg-white: #FFFFFF;
    --bg-dark: var(--neon-dark-bg-1, #0d0d0d); /* Sử dụng biến từ shared.css hoặc giá trị mặc định */
}

/* Chung cho trang GDPR */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Mặc định chữ sáng trên nền tối của body */
    background-color: var(--bg-dark); /* Kế thừa từ body, nhưng đảm bảo có fallback */
}

.page-gdpr__section {
    padding: 60px 20px;
    margin-bottom: 0;
}

.page-gdpr__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--bg-white); /* Khu vực nội dung chính có nền trắng */
    color: var(--text-dark); /* Chữ tối trên nền trắng */
}

.page-gdpr__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Nhỏ gọn, body đã có padding-top */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

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

.page-gdpr__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
}

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-gdpr__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__section-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
    color: inherit; /* Kế thừa màu từ section */
}

.page-gdpr__content-area .page-gdpr__section-title {
    color: var(--primary-color);
}

.page-gdpr__subsection-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit; /* Kế thừa màu từ section */
}

.page-gdpr__text-block {
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.7;
}

.page-gdpr__image-container {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal; /* Cho phép xuống dòng */
    word-wrap: break-word;
}

.page-gdpr__btn-primary {
    background-color: var(--button-login); /* Màu cam cho đăng ký */
    color: var(--text-light);
    border: 2px solid var(--button-login);
    margin: 10px;
}

.page-gdpr__btn-primary:hover {
    background-color: darken(var(--button-login), 10%);
    border-color: darken(var(--button-login), 10%);
}

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

.page-gdpr__hero-section .page-gdpr__btn-secondary {
    color: var(--text-light);
    border-color: var(--text-light);
}

.page-gdpr__hero-section .page-gdpr__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

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

.page-gdpr__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: hidden;
}

/* FAQ Section */
.page-gdpr__faq-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 20px;
}

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

.page-gdpr__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-gdpr__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    list-style: none; /* Ẩn marker mặc định của details */
    color: var(--text-light);
}

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

.page-gdpr__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-gdpr__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

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

.page-gdpr__content-area a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-gdpr__content-area a:hover {
    color: darken(var(--primary-color), 10%);
}

/* Responsive */
@media (max-width: 1024px) {
    .page-gdpr__hero-content {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* body đã có padding-top */
        padding-bottom: 40px;
    }

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

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

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

    .page-gdpr__content-area {
        padding: 40px 15px;
    }

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

    .page-gdpr__subsection-title {
        font-size: 1.5em;
    }

    .page-gdpr__text-block {
        font-size: 0.95em;
    }

    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-section,
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__hero-content,
    .page-gdpr__image-container,
    .page-gdpr__faq-section,
    .page-gdpr__faq-list,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        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;
        margin: 10px 0 !important; /* Đảm bảo nút chiếm toàn bộ chiều rộng */
    }
    
    .page-gdpr__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-gdpr__main-title {
        font-size: clamp(1.6em, 7vw, 2em);
    }

    .page-gdpr__section-title {
        font-size: 1.8em;
    }

    .page-gdpr__subsection-title {
        font-size: 1.3em;
    }

    .page-gdpr__faq-item summary {
        font-size: 1.1em;
        padding: 15px;
    }

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