/**
 * Kebijakan Privasi — override template
 * Dimuat paling akhir setelah reload-theme-contrast.css
 */
body.rp-theme.rp-inner.privacy-page .rp-page-hero .rp-hero-lead {
    max-width: 44rem;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.75rem;
}

body.rp-theme.rp-inner.privacy-page {
    scroll-padding-top: var(--rp-privacy-scroll-offset, 6rem);
}

body.rp-theme.rp-inner.privacy-page .privacy-section {
    padding-top: 2rem !important;
    padding-bottom: 3.5rem !important;
}

/* Intro */
body.rp-theme.rp-inner.privacy-page .rp-privacy-intro {
    padding: 1.25rem 1.35rem !important;
    border-radius: 14px !important;
    border: 1px solid var(--rp-glass-border, rgba(255, 255, 255, 0.14)) !important;
    background: var(--rp-glass, rgba(18, 28, 58, 0.55)) !important;
    backdrop-filter: var(--rp-glass-blur, blur(18px) saturate(1.35)) !important;
    -webkit-backdrop-filter: var(--rp-glass-blur, blur(18px) saturate(1.35)) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem !important;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-intro p {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    color: #e2e9fb !important;
    margin-bottom: 0.75rem !important;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-intro p:last-child {
    margin-bottom: 0 !important;
}

/* Sidebar daftar isi */
body.rp-theme.rp-inner.privacy-page .rp-privacy-nav__inner {
    padding: 1rem 0.85rem !important;
    border-radius: 14px !important;
    border: 1px solid var(--rp-glass-border, rgba(255, 255, 255, 0.14)) !important;
    background: var(--rp-glass, rgba(18, 28, 58, 0.55)) !important;
    backdrop-filter: var(--rp-glass-blur, blur(18px) saturate(1.35)) !important;
    -webkit-backdrop-filter: var(--rp-glass-blur, blur(18px) saturate(1.35)) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-nav.sticky-menu {
    position: sticky;
    top: calc(var(--rp-header-h, 72px) + 0.65rem);
    z-index: 20;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-nav__title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffb86c !important;
    margin: 0 0 0.75rem;
    padding: 0 0.35rem;
}

body.rp-theme.rp-inner.privacy-page #privacy-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    scrollbar-width: thin;
}

body.rp-theme.rp-inner.privacy-page #privacy-menu .nav-link {
    display: block;
    padding: 0.5rem 0.55rem;
    margin-bottom: 0.2rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #c5d4f5 !important;
    text-decoration: none !important;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.rp-theme.rp-inner.privacy-page #privacy-menu .nav-link:hover {
    color: #ffffff !important;
    background: rgba(126, 168, 255, 0.12);
}

body.rp-theme.rp-inner.privacy-page #privacy-menu .nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
    background: rgba(126, 168, 255, 0.22) !important;
    border-color: rgba(158, 197, 255, 0.3);
}

/* Konten dokumen — kartu per bab */
body.rp-theme.rp-inner.privacy-page .rp-privacy-doc {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-doc .privacy-item {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-section {
    padding: 1.15rem 1.2rem 1.2rem !important;
    margin: 0 !important;
    border-radius: 14px !important;
    border: 1px solid var(--rp-glass-border, rgba(255, 255, 255, 0.12)) !important;
    background: var(--rp-glass, rgba(18, 28, 58, 0.48)) !important;
    backdrop-filter: var(--rp-glass-blur, blur(16px) saturate(1.3)) !important;
    -webkit-backdrop-filter: var(--rp-glass-blur, blur(16px) saturate(1.3)) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    scroll-margin-top: var(--rp-privacy-scroll-offset, calc(var(--rp-header-h, 72px) + 1rem));
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-section .title {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #f5f8ff !important;
    margin: 0 0 0.85rem !important;
    padding: 0 0 0.75rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-section .title::before {
    content: attr(data-num);
    flex-shrink: 0;
    min-width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1a2744;
    background: #ffb86c;
    border-radius: 8px;
    line-height: 1;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-section h3 {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #ffb86c !important;
    margin: 1rem 0 0.5rem !important;
    line-height: 1.35 !important;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-section p {
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
    color: #dce4f8 !important;
    margin: 0 0 0.7rem !important;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-section p:last-child {
    margin-bottom: 0 !important;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-section ul,
body.rp-theme.rp-inner.privacy-page .rp-privacy-section ol {
    margin: 0 0 0.75rem !important;
    padding-left: 1.2rem !important;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-section li {
    font-size: 0.86rem !important;
    line-height: 1.6 !important;
    color: #dce4f8 !important;
    margin-bottom: 0.4rem !important;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-section li strong {
    color: #f0f4ff !important;
}

/* Tautan — kontras tinggi */
body.rp-theme.rp-inner.privacy-page a.rp-privacy-link,
body.rp-theme.rp-inner.privacy-page .rp-privacy-section a:not(.nav-link) {
    color: #e8f2ff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 0.1rem 0.45rem;
    margin: 0 -0.1rem;
    border-radius: 5px;
    background: rgba(126, 168, 255, 0.18);
    border: 1px solid rgba(158, 197, 255, 0.32);
    transition: background 0.15s ease, color 0.15s ease;
}

body.rp-theme.rp-inner.privacy-page a.rp-privacy-link:hover,
body.rp-theme.rp-inner.privacy-page .rp-privacy-section a:not(.nav-link):hover {
    color: #ffffff !important;
    background: rgba(126, 168, 255, 0.32);
    border-color: rgba(200, 220, 255, 0.5);
}

/* Kontak — grid seperti halaman about */
body.rp-theme.rp-inner.privacy-page .rp-privacy-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    list-style: none;
    margin: 0.5rem 0 0 !important;
    padding: 0 !important;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-contact-grid li {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.8rem 0.9rem;
    margin: 0 !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-contact-grid li.rp-privacy-contact-grid--wide {
    grid-column: 1 / -1;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-contact-grid strong {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffb86c !important;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-contact-grid > span,
body.rp-theme.rp-inner.privacy-page .rp-privacy-contact-grid li > span {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #f2f6ff !important;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-contact-grid li > a.rp-privacy-link {
    font-size: 0.88rem;
    line-height: 1.5;
    width: fit-content;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-contact-grid a.rp-privacy-link--wa {
    background: rgba(62, 207, 142, 0.15) !important;
    border-color: rgba(62, 207, 142, 0.38) !important;
    color: #b8f5d4 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
}

/* Label oranye seragam (mode gelap) */
body.rp-theme.rp-inner.privacy-page .rp-privacy-nav__title,
body.rp-theme.rp-inner.privacy-page .rp-privacy-section h3,
body.rp-theme.rp-inner.privacy-page .rp-privacy-contact-grid strong {
    color: #ffb86c !important;
}

/* —— Mode terang: glass putih + kontras tinggi —— */
html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-intro,
html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-nav__inner,
html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-section {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(59, 95, 196, 0.2) !important;
    backdrop-filter: blur(14px) saturate(1.12) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.12) !important;
    box-shadow: 0 6px 24px rgba(48, 78, 150, 0.1) !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-nav__title,
html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-section h3,
html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-contact-grid strong {
    color: #b45309 !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-intro p,
html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-section p,
html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-section li {
    color: #1e3268 !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-section li strong {
    color: #152040 !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-section .title {
    color: #152040 !important;
    border-bottom-color: rgba(59, 95, 196, 0.14) !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-section .title::before {
    color: #ffffff !important;
    background: #b45309 !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page #privacy-menu .nav-link {
    color: #3d5280 !important;
    border-color: rgba(59, 95, 196, 0.12) !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page #privacy-menu .nav-link:hover {
    color: #152040 !important;
    background: rgba(59, 95, 196, 0.1) !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page #privacy-menu .nav-link.active {
    color: #152040 !important;
    font-weight: 600;
    background: rgba(93, 80, 240, 0.12) !important;
    border-color: rgba(93, 80, 240, 0.25) !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page a.rp-privacy-link,
html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-section a:not(.nav-link) {
    color: #ffffff !important;
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page a.rp-privacy-link:hover,
html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-section a:not(.nav-link):hover {
    color: #ffffff !important;
    background: #1d4ed8 !important;
    border-color: #1e40af !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page a.rp-privacy-link--wa {
    background: #16a34a !important;
    border-color: #15803d !important;
    color: #ffffff !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page a.rp-privacy-link--wa:hover {
    background: #15803d !important;
    color: #ffffff !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-contact-grid li {
    background: #f3f6fc !important;
    border: 1px solid #d8e2f2 !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-contact-grid > span,
html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-contact-grid li > span {
    color: #0f1d3d !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-fab {
    background: rgba(255, 255, 255, 0.96) !important;
    color: #152040 !important;
    border-color: rgba(59, 95, 196, 0.22) !important;
    box-shadow: 0 6px 20px rgba(48, 78, 150, 0.18);
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-sheet__panel {
    background: #ffffff !important;
    border-color: rgba(59, 95, 196, 0.2) !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-sheet__head {
    color: #152040 !important;
    border-bottom-color: rgba(59, 95, 196, 0.12) !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-sheet__close {
    background: rgba(59, 95, 196, 0.1);
    color: #152040;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-sheet__list .nav-link {
    color: #3d5280 !important;
}

html[data-theme="light"] body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-sheet__list .nav-link.active {
    color: #152040 !important;
    background: rgba(93, 80, 240, 0.12) !important;
    border-color: rgba(93, 80, 240, 0.22) !important;
}

/* HP: daftar isi sticky di atas + tombol floating */
@media (max-width: 991px) {
    body.rp-theme.rp-inner.privacy-page .rp-privacy-layout {
        flex-direction: column;
    }

    body.rp-theme.rp-inner.privacy-page .rp-privacy-nav-col {
        order: -1;
        margin-bottom: 0.85rem;
    }

    body.rp-theme.rp-inner.privacy-page .rp-privacy-nav.sticky-menu {
        position: sticky;
        top: calc(var(--rp-header-h, 72px) + 0.35rem);
        margin-bottom: 0;
        z-index: 25;
    }

    body.rp-theme.rp-inner.privacy-page .rp-privacy-nav__inner {
        padding: 0.65rem 0.55rem !important;
    }

    body.rp-theme.rp-inner.privacy-page .rp-privacy-nav__title {
        margin-bottom: 0.5rem;
        font-size: 0.68rem;
    }

    body.rp-theme.rp-inner.privacy-page #privacy-menu {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.4rem;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding-bottom: 0.15rem;
    }

    body.rp-theme.rp-inner.privacy-page #privacy-menu li {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    body.rp-theme.rp-inner.privacy-page #privacy-menu .nav-link {
        font-size: 0.76rem;
        padding: 0.4rem 0.6rem;
        border: 1px solid var(--rp-glass-border, rgba(255, 255, 255, 0.14));
        margin-bottom: 0;
        white-space: nowrap;
    }

    body.rp-theme.rp-inner.privacy-page .rp-privacy-doc {
        margin-top: 0 !important;
    }
}

/* Tombol daftar isi mengambang (HP, saat sticky bar tidak terlihat) */
body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-fab {
    position: fixed;
    right: 1rem;
    bottom: 1.15rem;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(158, 197, 255, 0.45);
    border-radius: 999px;
    background: rgba(18, 28, 58, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f0f4ff !important;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-fab[hidden] {
    display: none !important;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-sheet__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 28, 0.65);
    z-index: 45;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-sheet__panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 46;
    max-height: 70vh;
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--rp-glass-border, rgba(255, 255, 255, 0.14));
    background: var(--rp-glass, rgba(18, 28, 58, 0.96));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #f5f8ff;
    font-size: 0.95rem;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-sheet__close {
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    cursor: pointer;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0.65rem 1rem;
    overflow-y: auto;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-sheet__list .nav-link {
    display: block;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #dce4f8 !important;
    text-decoration: none !important;
    border: 1px solid transparent;
}

body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-sheet__list .nav-link.active {
    background: rgba(126, 168, 255, 0.22) !important;
    border-color: rgba(158, 197, 255, 0.3);
    color: #fff !important;
    font-weight: 600;
}

body.rp-theme.rp-inner.privacy-page.rp-privacy-toc-open {
    overflow: hidden;
}

@media (min-width: 992px) {
    body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-fab,
    body.rp-theme.rp-inner.privacy-page .rp-privacy-toc-sheet {
        display: none !important;
    }
}

@media (max-width: 767px) {
    body.rp-theme.rp-inner.privacy-page .rp-privacy-contact-grid {
        grid-template-columns: 1fr;
    }
}
