﻿.privacy-page {
    min-height: 100vh;
    padding: 24px;
}

.privacy-hero {
    position: relative;
    border-radius: 28px;
    padding: clamp(2rem, 5vw, 4rem);
    color: #fff;
    background: linear-gradient(135deg, #0056A4, #003d73);
    box-shadow: 0 22px 55px rgba(0, 86, 164, .22);
    overflow: hidden;
    margin-bottom: 24px;
}

    .privacy-hero::after {
        content: "";
        position: absolute;
        right: -80px;
        top: -120px;
        width: 360px;
        height: 360px;
        border-radius: 999px;
    }

.privacy-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.privacy-version {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: .9rem;
    margin-bottom: 18px;
}

.privacy-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    padding: clamp(1.1rem, 3vw, 2rem);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .055);
}

.markdown-body {
    color: #334155;
    line-height: 1.9;
    font-size: 1rem;
}

    .markdown-body h1,
    .markdown-body h2,
    .markdown-body h3,
    .markdown-body h4,
    .markdown-body h5 {
        color: #0056A4;
        font-weight: 800;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

        .markdown-body h1:first-child,
        .markdown-body h2:first-child {
            margin-top: 0;
        }

    .markdown-body h1 {
        font-size: 1.9rem;
    }

    .markdown-body h2 {
        font-size: 1.45rem;
        padding-left: 14px;
        border-left: 5px solid #00A3E0;
    }

    .markdown-body h4 {
        font-size: 1.45rem;
        padding-left: 14px;
        border-left: 5px solid #00A3E0;
    }

    .markdown-body h5 {
        font-size: 1rem;
        padding-left: 14px;
        border-left: 5px solid #00A3E0;
    }

    .markdown-body h3 {
        font-size: 1.2rem;
    }

    .markdown-body p {
        margin-bottom: 1rem;
    }

    .markdown-body ul,
    .markdown-body ol {
        padding-left: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .markdown-body li {
        margin-bottom: .5rem;
    }

    .markdown-body strong {
        color: #1e293b;
        font-weight: 800;
    }

    .markdown-body blockquote {
        margin: 1.5rem 0;
        padding: 1rem 1.25rem;
        border-left: 5px solid #0056A4;
        background: rgba(0, 86, 164, .06);
        border-radius: 0 16px 16px 0;
        color: #334155;
    }

    .markdown-body table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.5rem 0;
    }

    .markdown-body th,
    .markdown-body td {
        border: 1px solid #e2e8f0;
        padding: .85rem 1rem;
        vertical-align: top;
    }

    .markdown-body th {
        background: #f1f5f9;
        color: #1e293b;
        font-weight: 800;
    }

    .markdown-body a {
        color: #0056A4;
        font-weight: 700;
        text-decoration: none;
    }

        .markdown-body a:hover {
            text-decoration: underline;
        }

.privacy-footer {
    margin-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: .9rem;
}

@media (max-width: 768px) {
    .privacy-page {
        padding: 14px;
    }

    .privacy-hero,
    .privacy-card {
        border-radius: 20px;
    }
}



/* =============================
   Privacy Modal
============================= */

.privacy-modal-dialog {
    width: min(96vw, 1500px);
    max-width: 1500px;
    margin: 1.25rem auto;
}

.privacy-modal-content {
    height: min(92vh, 950px);
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 44, 95, 0.22);
}

    .privacy-modal-content .modal-header {
        min-height: 72px;
        padding: 18px 26px;
        border-bottom: 0;
        background: linear-gradient( 135deg, #003b7a 0%, #005cb9 65%, #1677d2 100% );
        color: #fff;
    }

    .privacy-modal-content .modal-title {
        font-size: 22px;
        font-weight: 800;
    }

    .privacy-modal-content .modal-body {
        padding: 0;
        background: #f5f8fc;
        overflow-y: auto;
    }

    .privacy-modal-content .privacy-page {
        min-height: 100%;
        padding: 28px;
    }

    .privacy-modal-content .privacy-card {
        max-width: 1250px;
        margin: 0 auto;
        padding: 34px 40px;
        border: 1px solid #e1e9f3;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 8px 28px rgba(0, 60, 120, 0.06);
    }

    .privacy-modal-content .modal-footer {
        min-height: 68px;
        padding: 14px 24px;
        border-top: 1px solid #e3eaf2;
        background: #fff;
    }

        .privacy-modal-content .modal-footer .btn {
            min-width: 110px;
            border-radius: 10px;
            font-weight: 700;
        }

/* จอขนาดกลาง */
@media (max-width: 1199.98px) {
    .privacy-modal-dialog {
        width: 96vw;
        max-width: 96vw;
    }

    .privacy-modal-content {
        height: 92vh;
    }

        .privacy-modal-content .privacy-card {
            padding: 28px 30px;
        }
}

/* มือถือ */
@media (max-width: 767.98px) {
    .privacy-modal-dialog {
        width: 100%;
        max-width: 100%;
        height: 100%;
        margin: 0;
    }

    .privacy-modal-content {
        height: 100vh;
        border-radius: 0;
    }

        .privacy-modal-content .modal-header {
            min-height: 62px;
            padding: 14px 18px;
        }

        .privacy-modal-content .modal-title {
            font-size: 18px;
        }

        .privacy-modal-content .privacy-page {
            padding: 12px;
        }

        .privacy-modal-content .privacy-card {
            padding: 20px 16px;
            border-radius: 12px;
        }

        .privacy-modal-content .modal-footer {
            padding: 12px 16px;
        }
}



.terms-scroll-box {
    max-height: 60vh;
    padding: 5px 5px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

    /* Scrollbar */
    .terms-scroll-box::-webkit-scrollbar {
        width: 9px;
    }

    .terms-scroll-box::-webkit-scrollbar-track {
        background: #edf3f9;
        border-radius: 20px;
    }

    .terms-scroll-box::-webkit-scrollbar-thumb {
        background: #9eb7d2;
        border-radius: 20px;
        border: 2px solid #edf3f9;
    }

        .terms-scroll-box::-webkit-scrollbar-thumb:hover {
            background: var(--gs1-blue);
        }