/* style/gdpr.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm padding-top cho main hoặc các section đầu tiên. */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #000000;
    --text-light: #ffffff;
    --bg-dark: #0a0a0a; /* Từ body background */
    --login-color: #EA7C07;
}

.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Màu chữ mặc định cho nền body tối */
    background-color: var(--bg-dark); /* Đảm bảo màu nền thống nhất */
}

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

.page-gdpr__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-gdpr__hero-section {
    padding-top: 10px; /* Nhỏ hơn so với --header-offset của body */
    padding-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, #26A9E0, #1a7bbd);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
}

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

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

.page-gdpr__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Sử dụng clamp cho H1 */
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-gdpr__hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.page-gdpr__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem); /* Sử dụng clamp cho H2 */
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

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

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

.page-gdpr__introduction .page-gdpr__text-block {
    color: var(--text-light);
}

.page-gdpr__principles, .page-gdpr__cookies-link, .page-gdpr__faq {
    background-color: rgba(255, 255, 255, 0.05); /* Nền hơi sáng hơn để tạo sự phân biệt */
    color: var(--text-light);
}

.page-gdpr__principles .page-gdpr__section-title,
.page-gdpr__cookies-link .page-gdpr__section-title,
.page-gdpr__faq .page-gdpr__section-title {
    color: var(--primary-color);
}

.page-gdpr__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-gdpr__grid-layout--two-columns {
    grid-template-columns: 1fr 1fr;
}

.page-gdpr__grid-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-gdpr__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-gdpr__image--right {
    margin-top: 30px;
    margin-bottom: 0;
}

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

.page-gdpr__list-item {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-light);
}

.page-gdpr__list-item strong {
    color: var(--primary-color);
}

.page-gdpr__list--bullet {
    list-style: disc;
    padding-left: 25px;
}

.page-gdpr__data-processing {
    background: linear-gradient(135deg, #1a7bbd, #26A9E0);
    color: var(--text-light);
}

.page-gdpr__data-processing .page-gdpr__section-title {
    color: var(--secondary-color);
}

.page-gdpr__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-gdpr__text-content {
    flex: 1;
}

.page-gdpr__image-container {
    flex: 0 0 400px;
    max-width: 400px;
}

.page-gdpr__contact-methods {
    margin-top: 30px;
}

.page-gdpr__contact-methods .page-gdpr__list {
    list-style: disc;
    padding-left: 25px;
}

.page-gdpr__contact-methods .page-gdpr__list-item {
    color: var(--text-light);
}

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

.page-gdpr__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    color: var(--text-light);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-tap-highlight-color: transparent; /* Loại bỏ highlight trên mobile */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    border-bottom: none;
}

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

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

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

.page-gdpr__faq-answer {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 15px;
}

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

.page-gdpr__faq-item summary {
    list-style: none;
}

.page-gdpr__cta {
    text-align: center;
    background: linear-gradient(90deg, #26A9E0, #1a7bbd);
}

.page-gdpr__cta .page-gdpr__section-title {
    color: var(--secondary-color);
}

/* Buttons */
.page-gdpr__btn-primary {
    display: inline-block;
    background-color: var(--login-color); /* Màu đăng nhập */
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__btn-primary:hover {
    background-color: #d16b00;
    transform: translateY(-2px);
}

/* Links */
.page-gdpr__link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gdpr__link:hover {
    color: #1a7bbd;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__grid-layout {
        grid-template-columns: 1fr;
    }

    .page-gdpr__content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .page-gdpr__image-container {
        order: -1;
        margin-bottom: 30px;
        flex: none;
        max-width: 100%;
    }

    .page-gdpr__image--right {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .page-gdpr__section {
        padding: 40px 0;
    }

    .page-gdpr__hero-section {
        padding-bottom: 40px;
    }

    .page-gdpr__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Điều chỉnh cho mobile */
    }

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

    .page-gdpr__section-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem); /* Điều chỉnh cho mobile */
        margin-bottom: 30px;
    }

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

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

    .page-gdpr__container {
        padding: 0 15px;
    }

    /* Mobile image responsive styles */
    .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-content,
    .page-gdpr__content-wrapper,
    .page-gdpr__text-content,
    .page-gdpr__image-container,
    .page-gdpr__faq-item,
    .page-gdpr__faq-list,
    .page-gdpr__contact-methods,
    .page-gdpr__grid-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    /* Video section top padding for mobile */
    .page-gdpr__video-section {
        padding-top: 10px !important; /* body đã xử lý --header-offset */
    }

    /* Button responsive styles */
    .page-gdpr__btn-primary,
    .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;
    }
    
    .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;
    }

    .page-gdpr__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    .page-gdpr__faq-question {
        padding-right: 15px; /* Giảm khoảng trống để nội dung không bị tràn */
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-section {
        padding-left: 10px;
        padding-right: 10px;
    }

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

    .page-gdpr__btn-primary {
        font-size: 1rem;
        padding: 12px 25px;
    }

    .page-gdpr__faq-question {
        font-size: 1rem;
    }

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