/* ===== NGEMS POLICIES & TERMS PAGE ===== */
:root {
    --ngems-pl-primary: #b45309;
    --ngems-pl-primary-dark: #92400e;
    --ngems-pl-dark: #1f2937;
    --ngems-pl-gold: #fde68a;
    --ngems-pl-border: #e5e7eb;
    --ngems-pl-muted: #4b5563;
    --ngems-pl-soft: #fffaf5;
}

html {
    scroll-behavior: smooth;
}

.ngems-policies-page {
    padding-bottom: 44px;
}

.ngems-pl-hero {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    color: #f9fafb;
    border-radius: 18px;
    padding: 36px 26px 28px;
    margin: 12px 0 30px;
    text-align: center;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.pl-eyebrow {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(253, 230, 138, 0.14);
    border: 1px solid rgba(253, 230, 138, 0.42);
    color: var(--ngems-pl-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.9px;
    margin-bottom: 10px;
}

.pl-title {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
}

.pl-lead {
    max-width: 760px;
    margin: 0 auto 22px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #e5e7eb;
}

.pl-quick-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pl-quick-nav a {
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.pl-quick-nav a:hover {
    background: var(--ngems-pl-gold);
    color: #111827 !important;
}

/* Layout 2 cột: Sidebar TOC + Cards */
.ngems-pl-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.pl-toc-card {
    position: sticky;
    top: 90px;
    background: #ffffff;
    border: 1px solid var(--ngems-pl-border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.pl-toc-card h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ngems-pl-dark);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ngems-pl-border);
}

.pl-toc-card ul {
    list-style: none !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pl-toc-card li {
    margin: 0 !important;
}

.pl-toc-card li a {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    color: #374151 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.pl-toc-card li a:hover {
    background: var(--ngems-pl-soft);
    color: var(--ngems-pl-primary) !important;
}

.pl-privacy-side-btn {
    display: block;
    text-align: center;
    padding: 9px 12px;
    border-radius: 9px;
    background: var(--ngems-pl-dark);
    color: var(--ngems-pl-gold) !important;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
}

/* Cards */
.ngems-pl-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pl-card {
    background: #ffffff;
    border: 1px solid var(--ngems-pl-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    scroll-margin-top: 90px;
}

.pl-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.pl-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fef3c7;
    color: var(--ngems-pl-primary-dark);
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.pl-card-head h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--ngems-pl-dark);
}

.pl-card-body h3 {
    margin: 14px 0 8px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ngems-pl-primary-dark);
}

.pl-card-body p {
    font-size: 14px;
    line-height: 1.65;
    color: #374151;
}

.pl-list {
    margin: 0 0 12px 18px !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.pl-list a,
.pl-note a,
.pl-contact-mini a,
.pl-pay-box a {
    color: var(--ngems-pl-primary);
    font-weight: 600;
    text-decoration: none;
}

.pl-callout.is-warn {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 3px solid #dc2626;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 12px 0;
    font-size: 13.5px;
    color: #7f1d1d;
}

.pl-callout.is-warn ul {
    margin: 6px 0 0 18px !important;
    padding: 0 !important;
}

.pl-contact-mini {
    background: var(--ngems-pl-soft);
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #451a03;
    margin-top: 10px;
}

.pl-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 12px;
}

.pl-step {
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid var(--ngems-pl-border);
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.45;
    color: #374151;
}

.pl-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px !important;
    line-height: 1.55;
    color: #78350f !important;
    margin: 8px 0 0;
}

.pl-pay-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.pl-pay-box {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--ngems-pl-border);
    border-radius: 12px;
}

.pl-pay-box h4 {
    margin: 0 0 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ngems-pl-dark);
}

.pl-pay-box p {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.5;
}

.pl-pay-box p:last-child {
    margin-bottom: 0;
}

.pl-privacy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 18px;
    margin-top: 14px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #ffffff;
    border-radius: 12px;
}

.pl-privacy-box strong {
    display: block;
    font-size: 15px;
    color: var(--ngems-pl-gold);
    margin-bottom: 2px;
}

.pl-privacy-box p {
    margin: 0;
    font-size: 13px;
    color: #d1d5db;
}

.pl-privacy-btn {
    padding: 9px 16px;
    border-radius: 9px;
    background: var(--ngems-pl-gold);
    color: #111827 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

.ngems-pl-seo {
    margin-top: 10px;
    line-height: 1.7;
}

@media (max-width: 960px) {
    .ngems-pl-layout {
        grid-template-columns: 1fr;
    }

    .pl-pay-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ngems-pl-hero {
        padding: 26px 16px 22px;
    }

    .pl-card {
        padding: 18px 14px;
    }

    .pl-steps {
        grid-template-columns: 1fr;
    }
}
