/* style/privacy-policy.css */

/* Biến màu sắc tùy chỉnh */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-privacy-policy {
    color: var(--text-main-color); /* Toàn bộ trang dùng màu chữ chính */
    background-color: var(--background-color);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-privacy-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Nhỏ hơn so với body padding-top */
    overflow: hidden;
    background-color: var(--deep-green-color);
}

.page-privacy-policy__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Làm mờ ảnh nền để chữ dễ đọc */
}

.page-privacy-policy__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(17, 40, 27, 0.8); /* Nền tối để chữ nổi bật */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 4vw, 3em); /* H1 dùng clamp */
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-privacy-policy__description {
    font-size: 1.1em;
    color: var(--text-main-color);
    margin-bottom: 30px;
}

.page-privacy-policy__btn-primary {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-privacy-policy__content-section {
    padding: 50px 0;
}

.page-privacy-policy__light-bg {
    background-color: var(--background-color);
    color: var(--text-main-color);
}

.page-privacy-policy__dark-bg {
    background-color: var(--card-bg);
    color: var(--text-main-color);
}

.page-privacy-policy__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: var(--gold-color);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-privacy-policy__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-privacy-policy__list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-privacy-policy__list-item {
    background-color: var(--card-bg);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-main-color);
}

.page-privacy-policy__list-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-privacy-policy__list-item p {
    font-size: 1em;
    color: var(--text-secondary-color);
    margin-bottom: 0;
}

.page-privacy-policy__content-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block;
}

.page-privacy-policy__link {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-privacy-policy__link:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-privacy-policy__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-privacy-policy__contact-item {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--text-main-color);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    padding: 50px 0;
}

.page-privacy-policy__faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-main-color);
}

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

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

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    background-color: rgba(34, 199, 104, 0.1);
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-privacy-policy__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: var(--text-secondary-color);
    border-top: 1px solid var(--divider-color);
    background-color: rgba(17, 40, 27, 0.5);
}

.page-privacy-policy__faq-answer p {
    margin: 0;
}

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

.page-privacy-policy__cta-block {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background-color: var(--deep-green-color);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-privacy-policy__cta-text {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 25px;
    font-weight: 600;
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-privacy-policy {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-privacy-policy__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-privacy-policy__hero-content {
        padding: 15px;
    }

    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-privacy-policy__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-privacy-policy__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-privacy-policy__content-section {
        padding: 30px 0;
    }

    .page-privacy-policy__container {
        padding: 0 15px;
    }

    .page-privacy-policy__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-privacy-policy__list-item {
        padding: 15px;
    }

    .page-privacy-policy__list-title {
        font-size: 1.2em;
    }

    .page-privacy-policy__text-block, .page-privacy-policy__list-item p, .page-privacy-policy__contact-item {
        font-size: 0.95em;
    }

    .page-privacy-policy__faq-question {
        font-size: 1em;
        padding: 15px;
    }

    .page-privacy-policy__faq-answer {
        padding: 15px;
    }

    .page-privacy-policy__cta-block {
        padding: 30px 15px;
    }

    .page-privacy-policy__cta-text {
        font-size: 1.2em;
        margin-bottom: 20px;
    }

    /* Mobile image responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Ensure content containers don't cause horizontal scroll */
    .page-privacy-policy__content-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .page-privacy-policy__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .page-privacy-policy__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .page-privacy-policy__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .page-privacy-policy__cta-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}