* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1769e0;
    --primary-dark: #104da8;
    --primary-light: #eaf2ff;

    --text: #17243a;
    --text-light: #718096;

    --background: #f5f8fd;
    --white: #ffffff;

    --border: #e2e8f0;

    --green: #168653;
    --green-light: #e7f8ef;

    --shadow: 0 8px 25px rgba(30, 64, 120, 0.07);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font: inherit;
}


/* =========================
   HEADER
========================= */

.header {
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    min-height: 78px;

    margin: auto;
    padding: 14px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    color: #101828;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 2px;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 22px;
}

.navbar a {
    color: #526078;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;

    transition: color 0.2s;
}

.navbar a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login,
.btn-register {
    padding: 10px 16px;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;

    transition: 0.2s;
}

.btn-login {
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-login:hover {
    background: var(--primary-light);
}

.btn-register {
    color: var(--white);
    background: var(--primary);
}

.btn-register:hover {
    background: var(--primary-dark);
}


/* =========================
   BANNER
========================= */

.page-banner {
    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 45px 20px;

    text-align: center;
    color: var(--white);

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(111, 170, 255, 0.45),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            #0d2f70,
            #1769e0
        );
}

.banner-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 65px;
    height: 65px;

    margin: 0 auto 17px;

    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;

    font-size: 29px;
}

.banner-label {
    margin-bottom: 12px;

    color: #c7dcff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
}

.page-banner h1 {
    margin-bottom: 14px;

    font-size: 34px;
    line-height: 1.3;
}

.page-banner p:last-child {
    color: #e3edff;
    font-size: 15px;
}


/* =========================
   KHUNG NỘI DUNG
========================= */

.container {
    width: 100%;
    max-width: 1248px;
    margin: 0 auto;
    padding: 45px 24px 70px;
}


/* =========================
   THẺ GIỚI THIỆU
========================= */

.intro-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;

    margin-bottom: 35px;
    padding: 28px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;

    box-shadow: var(--shadow);
}

.intro-icon {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    color: var(--green);
    background: var(--green-light);

    border-radius: 12px;

    font-size: 24px;
    font-weight: 800;
}

.intro-card h2 {
    margin-bottom: 12px;

    font-size: 22px;
    line-height: 1.4;
}

.intro-card p {
    color: #59677d;
    font-size: 14px;
}

.policy-date {
    margin-top: 15px;
    font-size: 12px !important;
}

.policy-date strong {
    color: var(--primary);
}


/* =========================
   BỐ CỤC CHÍNH SÁCH
========================= */

.policy-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    width: 100%;
}


/* =========================
   MỤC LỤC
========================= */

.policy-sidebar {
    flex: 0 0 270px;
    width: 270px;
    position: sticky;
    top: 105px;

    padding: 23px 18px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 13px;

    box-shadow: var(--shadow);
}

.policy-sidebar h3 {
    margin-bottom: 17px;
    padding-bottom: 14px;

    border-bottom: 1px solid var(--border);

    font-size: 17px;
}

.policy-sidebar a {
    display: block;

    margin-bottom: 5px;
    padding: 10px 11px;

    color: #59677d;
    border-radius: 7px;

    font-size: 12px;
    line-height: 1.6;

    transition: 0.2s;
}

.policy-sidebar a:hover {
    color: var(--primary);
    background: var(--primary-light);
}


/* =========================
   NỘI DUNG CHÍNH
========================= */

.policy-content {
    flex: 1 1 0;
    min-width: 0;
    max-width: 900px;
}

.policy-section {
    margin-bottom: 24px;
    padding: 28px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 13px;

    box-shadow: var(--shadow);

    scroll-margin-top: 105px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 20px;
    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);
}

.section-number {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    color: var(--primary);
    background: var(--primary-light);

    border-radius: 10px;

    font-size: 15px;
    font-weight: 800;
}

.section-heading h2 {
    font-size: 21px;
    line-height: 1.4;
}

.policy-section > p {
    margin-bottom: 16px;

    color: #526078;
    font-size: 14px;
    line-height: 1.9;
}

.policy-section > p:last-child {
    margin-bottom: 0;
}

.policy-section ul {
    margin: 10px 0 20px;
    padding-left: 24px;

    color: #526078;
    font-size: 14px;
}

.policy-section li {
    margin-bottom: 10px;
    padding-left: 4px;
}


/* =========================
   CÁC HỘP THÔNG TIN
========================= */

.info-box {
    margin: 18px 0;
    padding: 19px;

    background: #f8faff;
    border: 1px solid #e2eaf8;
    border-radius: 10px;
}

.info-box h3 {
    margin-bottom: 12px;

    color: var(--primary-dark);
    font-size: 16px;
}

.info-box ul {
    margin-bottom: 0;
}

.info-box li:last-child {
    margin-bottom: 0;
}

.warning-box {
    margin-top: 20px;
    padding: 18px;

    color: #76521c;
    background: #fff8e8;

    border-left: 4px solid #edb64b;
    border-radius: 7px;

    font-size: 13px;
    line-height: 1.9;
}

.warning-box strong {
    display: inline-block;
    margin-right: 4px;
}


/* =========================
   DANH SÁCH CÓ DẤU TICK
========================= */

.check-list {
    list-style: none;
    padding-left: 0 !important;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.check-list li span {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    margin-top: 2px;

    color: var(--green);
    background: var(--green-light);

    border-radius: 50%;

    font-size: 12px;
    font-weight: 800;
}


/* =========================
   THẺ BẢO MẬT
========================= */

.security-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 24px 0;
    justify-content: center;
}

.security-card {
    flex: 1 1 180px;
    min-width: 0;
}

.security-card {
    padding: 17px 14px;

    background: #f8faff;
    border: 1px solid #e4ebf6;
    border-radius: 10px;
}

.security-icon {
    margin-bottom: 12px;
    font-size: 25px;
}

.security-card h3 {
    margin-bottom: 8px;
    font-size: 14px;
}

.security-card p {
    color: #66758b;
    font-size: 12px;
    line-height: 1.8;
}


/* =========================
   THẺ LIÊN HỆ
========================= */

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    margin-top: 20px;
    padding: 22px;

    background: var(--primary-light);
    border: 1px solid #d4e5ff;
    border-radius: 12px;
}

.contact-icon {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    color: var(--white);
    background: var(--primary);

    border-radius: 10px;

    font-size: 23px;
}

.contact-card h3 {
    margin-bottom: 7px;
    font-size: 16px;
}

.contact-card p {
    color: #526078;
    font-size: 13px;
}

.contact-note {
    margin-top: 10px;
    font-size: 12px !important;
}


/* =========================
   PHẦN KẾT THÚC
========================= */

.policy-end {
    padding: 35px 25px;

    text-align: center;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 13px;

    box-shadow: var(--shadow);
}

.policy-end-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    margin: 0 auto 16px;

    color: var(--green);
    background: var(--green-light);

    border-radius: 50%;

    font-size: 23px;
    font-weight: 800;
}

.policy-end h2 {
    margin-bottom: 10px;
    font-size: 21px;
}

.policy-end p {
    margin-bottom: 22px;

    color: var(--text-light);
    font-size: 13px;
}

.back-home {
    display: inline-block;

    padding: 12px 22px;

    color: var(--white);
    background: var(--primary);

    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;

    transition: 0.2s;
}

.back-home:hover {
    background: var(--primary-dark);
}


/* =========================
   FOOTER
========================= */

.footer {
    color: #d4deed;
    background: #101c30;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 45px 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 50px;
    text-align: center;
}

.footer-brand {
    flex: 2 1 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    flex: 1 1 150px;
    align-items: center;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 12px;

    color: var(--white);
}

.footer-brand p {
    max-width: 350px;

    color: #9baac0;
    font-size: 13px;
    line-height: 1.9;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-links h3 {
    margin-bottom: 5px;

    color: var(--white);
    font-size: 15px;
}

.footer-links a {
    color: #aab8cc;
    font-size: 13px;

    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 17px 20px;

    border-top: 1px solid #29364b;

    text-align: center;
    color: #8796ad;
    font-size: 12px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1050px) {

    .header-container {
        flex-wrap: wrap;
    }

    .navbar {
        order: 3;
        width: 100%;

        justify-content: center;
        flex-wrap: wrap;

        gap: 16px;
    }

    .policy-layout {
        gap: 18px;
    }

    .policy-sidebar {
        flex-basis: 220px;
        width: 220px;
    }

    .policy-section {
        padding: 23px;
    }

    .security-card {
        flex-basis: 100%;
    }

}


/* =========================
   ĐIỆN THOẠI VÀ TABLET NHỎ
========================= */

@media (max-width: 760px) {

    .header-container {
        padding: 15px 18px;
        gap: 15px;
    }

    .logo {
        font-size: 25px;
    }

    .header-actions {
        margin-left: auto;
    }

    .navbar {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;

        padding-bottom: 5px;
    }

    .navbar a {
        font-size: 12px;
    }

    .page-banner {
        min-height: 250px;
    }

    .page-banner h1 {
        font-size: 27px;
    }

    .container {
        padding: 30px 18px 45px;
    }

    .intro-card {
        padding: 22px 18px;
        gap: 13px;
    }

    .intro-card h2 {
        font-size: 19px;
    }

    .policy-layout {
        flex-direction: column;
        align-items: center;
    }

    .policy-sidebar,
    .policy-content {
        width: 100%;
        max-width: 900px;
    }

    .policy-sidebar {
        flex-basis: auto;
    }

    .policy-sidebar {
        position: static;
    }

    .policy-sidebar a {
        display: inline-block;
        vertical-align: top;

        width: calc(50% - 5px);
    }

    .policy-section {
        padding: 22px 18px;
    }

    .section-heading {
        gap: 12px;
    }

    .section-heading h2 {
        font-size: 19px;
    }

    .footer-container {
        justify-content: center;
        gap: 30px;
    }

    .footer-brand {
        flex-basis: 100%;
    }

}


/* =========================
   ĐIỆN THOẠI NHỎ
========================= */

@media (max-width: 480px) {

    .header-container {
        padding: 12px;
    }

    .btn-login,
    .btn-register {
        padding: 8px 10px;
        font-size: 11px;
    }

    .navbar {
        gap: 14px;
    }

    .page-banner h1 {
        font-size: 22px;
    }

    .page-banner p:last-child {
        font-size: 13px;
    }

    .container {
        padding: 25px 12px 35px;
    }

    .intro-card {
        flex-direction: column;
    }

    .intro-card h2 {
        font-size: 18px;
    }

    .policy-sidebar {
        padding: 18px 12px;
    }

    .policy-sidebar a {
        width: 100%;
    }

    .policy-section {
        padding: 19px 14px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading h2 {
        font-size: 18px;
    }

    .policy-section > p,
    .policy-section ul {
        font-size: 13px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 35px 20px;
        text-align: center;
    }

    .footer-brand,
    .footer-links {
        width: 100%;
        flex-basis: auto;
        align-items: center;
    }

}