/* style/cookies-policy.css */

/* Biến CSS */
:root {
    --primary-color: #007BFF;
    --secondary-color: #28A745;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --link-color: #0056b3;
}

.page-cookies-policy {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light); /* Đảm bảo nền sáng cho nội dung chính */
    padding-top: 120px; /* Khoảng cách cho thanh điều hướng cố định */
}

.page-cookies-policy__hero-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    margin-bottom: 40px;
}

.page-cookies-policy__hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-cookies-policy__hero-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-cookies-policy__hero-description {
    font-size: 1.3em;
    line-height: 1.5;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.page-cookies-policy__hero-link {
    color: var(--text-light);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-cookies-policy__hero-link:hover {
    color: #e0e0e0;
}

.page-cookies-policy__policy-content-section {
    padding: 40px 20px;
    background-color: var(--bg-light);
}

.page-cookies-policy__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.page-cookies-policy__article-card {
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    padding: 40px;
    margin-bottom: 40px;
}

.page-cookies-policy__section-heading {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-top: 35px;
    margin-bottom: 25px;
    font-weight: bold;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.page-cookies-policy__section-heading--light {
    color: var(--text-light);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.page-cookies-policy__sub-heading {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cookies-policy p {
    font-size: 1.05em;
    margin-bottom: 15px;
    line-height: 1.75;
    color: var(--text-dark);
}

.page-cookies-policy ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.page-cookies-policy li {
    font-size: 1.05em;
    margin-bottom: 8px;
    line-height: 1.6;
}

.page-cookies-policy strong {
    font-weight: bold;
}

.page-cookies-policy__text-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-cookies-policy__text-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-cookies-policy__keyword {
    font-weight: bold;
    color: var(--primary-color);
}

/* FAQ Section */
.page-cookies-policy__faq-section {
    background: var(--primary-color);
    padding: 60px 20px;
    margin-bottom: 40px;
    border-radius: 10px;
}

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

.page-cookies-policy__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cookies-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-cookies-policy__faq-question:hover {
    background: var(--bg-light);
    border-color: #d0d0d0;
}

.page-cookies-policy__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    pointer-events: none; /* Allow click on parent div */
}

.page-cookies-policy__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Allow click on parent div */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Change '+' to 'X' visually */
}

.page-cookies-policy__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 5px 5px;
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-cookies-policy__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
    color: var(--text-dark);
}

/* Contact Section */
.page-cookies-policy__contact-section {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.page-cookies-policy__contact-section .page-cookies-policy__section-heading {
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
    color: var(--primary-color);
}

.page-cookies-policy__contact-section p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cookies-policy__hero-title {
        font-size: 2.8em;
    }
    .page-cookies-policy__hero-description {
        font-size: 1.1em;
    }
    .page-cookies-policy__section-heading {
        font-size: 1.9em;
    }
    .page-cookies-policy__sub-heading {
        font-size: 1.4em;
    }
    .page-cookies-policy__article-card, .page-cookies-policy__contact-section {
        padding: 30px;
    }
    .page-cookies-policy__faq-question {
        padding: 15px 20px;
    }
    .page-cookies-policy__faq-question h3 {
        font-size: 1em;
    }
    .page-cookies-policy__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
    .page-cookies-policy__faq-answer {
        padding: 0 20px;
    }
    .page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
        padding: 15px 20px !important;
    }
}

@media (max-width: 768px) {
    .page-cookies-policy {
        padding-top: 100px !important; /* Khoảng cách cho thanh điều hướng cố định trên mobile */
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cookies-policy__hero-banner {
        padding: 40px 15px;
        margin-bottom: 30px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    .page-cookies-policy__hero-title {
        font-size: 2.2em;
    }
    .page-cookies-policy__hero-description {
        font-size: 1em;
    }
    .page-cookies-policy__policy-content-section, .page-cookies-policy__faq-section, .page-cookies-policy__contact-section {
        padding: 20px 15px;
    }
    .page-cookies-policy__article-card {
        padding: 25px;
    }
    .page-cookies-policy__section-heading {
        font-size: 1.6em;
        margin-top: 25px;
        margin-bottom: 20px;
        padding-bottom: 8px;
    }
    .page-cookies-policy__sub-heading {
        font-size: 1.2em;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .page-cookies-policy p, .page-cookies-policy li {
        font-size: 0.95em;
        margin-bottom: 10px;
    }
    .page-cookies-policy ul {
        margin-left: 20px;
    }
    .page-cookies-policy__faq-question {
        padding: 12px 15px;
    }
    .page-cookies-policy__faq-question h3 {
        font-size: 0.95em;
    }
    .page-cookies-policy__faq-toggle {
        font-size: 20px;
        width: 20px;
        height: 20px;
        margin-left: 10px;
    }
    .page-cookies-policy__faq-answer {
        padding: 0 15px;
    }
    .page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
        padding: 12px 15px !important;
    }
    /* 强制图片响应式 */
    .page-cookies-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cookies-policy__section, .page-cookies-policy__card, .page-cookies-policy__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Contrast Fixes (if needed) */
.page-cookies-policy__contrast-fix {
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-color) !important;
}

.page-cookies-policy__text-contrast-fix {
    color: var(--text-dark) !important;
    text-shadow: none !important;
}