/* =========================================================
   Privacy Policy Page  -  assets/css/privacy-policy.css
   Load AFTER style.css. Header / mobile menu / footer come from style.css.
   Every class on this page uses the "pp-" prefix, so nothing here
   can change other pages. The same file can style other legal pages
   (Terms of Service, Refund Policy) if they reuse these classes.
   Breakpoints: 1200 / 992 / 768 / 576 / 380 / 340
========================================================= */

/* ---------- Tokens ---------- */
body {
    --pp-primary: var(--primary-blue, #0d6efd);
    --pp-ink: #0a1530;
    --pp-text: #33425e;
    --pp-mute: #58688a;
    --pp-line: #e3e9f3;
    --pp-soft: #f4f7fc;
    --pp-tint: #e8f1ff;
    --pp-deep: #0a2463;
    --pp-ok: #16a34a;
    --pp-warn-bg: #fff8e6;
    --pp-warn-line: #f3d27a;
    --pp-warn-ink: #7a5200;
    --pp-grad: linear-gradient(135deg, #0d6efd, #3b82f6);

    --pp-sec: clamp(28px, 4.5vw, 52px);
    --pp-gap: clamp(12px, 1.8vw, 20px);
    --pp-pad: clamp(16px, 2vw, 22px);
    --pp-header-offset: 96px;
}

/* ---------- Page width safety ---------- */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
@supports (overflow: clip) {
    body { overflow-x: clip; }  /* clip never creates a scroll container, so the sticky header keeps working */
    .pp-main, .footer { overflow-x: clip; }
}
img, svg, video, iframe { max-width: 100%; }
.header, .nav-container, .footer, .footer-grid { max-width: 100%; }
.logo { min-width: 0; flex: 0 1 auto; }
.logo img { width: auto; max-width: 100%; object-fit: contain; }

/* ---------- Scoped safety ---------- */
.pp-main,
.pp-main *,
.pp-main *::before,
.pp-main *::after,
.pp-top,
.pp-progress,
.pp-progress * {
    box-sizing: border-box;
}
.pp-main {
    position: relative;   /* contains the visually hidden helper so it can never widen the page */
    font-family: inherit;
    color: var(--pp-text);
}
.pp-main [id] { scroll-margin-top: var(--pp-header-offset); }

/* zero-specificity reset: later rules always win, no stray margins */
:where(.pp-main) :is(h1, h2, h3, h4, p, ul, ol, table, figure) { margin: 0; }
:where(.pp-main) :is(ul, ol) { padding: 0; list-style: none; }
.pp-main :is(h1, h2, h3, h4, p, li):last-child { margin-bottom: 0; }
.pp-main :focus-visible,
.pp-top:focus-visible {
    outline: 3px solid rgba(13, 110, 253, .45);
    outline-offset: 2px;
}
.pp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Mobile drawer: fully hidden when closed ---------- */
@media (max-width: 992px) {
    .navbar {
        visibility: hidden;
        transition: right .4s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .4s;
    }
    .navbar:not(.active) { box-shadow: none; }
    .navbar.active {
        visibility: visible;
        transition-delay: 0s;
    }
    .mobile-menu-btn { min-width: 44px; min-height: 44px; padding: 0; }
}
@media (min-width: 993px) and (max-width: 1100px) {
    .nav-links { gap: 14px; }
    .nav-links > li > a { font-size: 14px; white-space: nowrap; }
    .nav-actions { gap: 12px; }
    .nav-actions .btn { padding: 9px 16px; white-space: nowrap; }
    .login-btn { white-space: nowrap; font-size: 14px; }
}

/* ---------- Reading progress ---------- */
.pp-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: 3px;
    pointer-events: none;
}
.pp-progress i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--pp-grad);
    transform: scaleX(0);
    transform-origin: left;
}

/* =========================================================
   Buttons
========================================================= */
.pp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 22px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.pp-btn-primary {
    background: var(--pp-grad);
    color: #fff;
    box-shadow: 0 8px 20px rgba(13, 110, 253, .35);
}
.pp-btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 26px rgba(13, 110, 253, .45); }
.pp-btn-ghost {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}
.pp-btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* =========================================================
   Hero
========================================================= */
.pp-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(24px, 4.5vw, 52px) 0 clamp(64px, 8vw, 96px);
    color: #fff;
    background:
        radial-gradient(760px 340px at 88% -10%, rgba(96, 165, 250, .3), transparent 70%),
        linear-gradient(135deg, #071a4a 0%, #0a2463 55%, #0d3b9e 130%);
}
.pp-hero::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 25% 20%, #000, transparent);
    mask-image: radial-gradient(ellipse 70% 90% at 25% 20%, #000, transparent);
}
.pp-crumbs { margin-bottom: 16px; }
.pp-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #9db4e6;
}
.pp-crumbs li + li::before { content: "/"; margin-right: 8px; color: #6b86c4; }
.pp-crumbs a { color: #cfdcf7; text-decoration: none; }
.pp-crumbs a:hover { color: #fff; text-decoration: underline; }
.pp-crumbs [aria-current] { color: #fff; }

.pp-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(32px, 5.4vw, 56px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
    color: #fff;
    overflow-wrap: break-word;
}
.pp-lead {
    max-width: 640px;
    margin-bottom: 18px;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.65;
    color: #c3d3f5;
}
.pp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 600;
    color: #dbe6fb;
}
.pp-meta li { display: inline-flex; align-items: center; gap: 8px; }
.pp-meta i { color: #7dd3fc; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   At a glance
========================================================= */
.pp-glance {
    position: relative;
    z-index: 2;
    margin-top: -48px;
    padding-bottom: var(--pp-sec);
}
.pp-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--pp-gap);
}
.pp-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: var(--pp-pad);
    border: 1px solid var(--pp-line);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(10, 21, 48, .04), 0 14px 34px rgba(10, 21, 48, .08);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.pp-card:hover {
    transform: translateY(-3px);
    border-color: var(--pp-primary);
    box-shadow: 0 16px 38px rgba(13, 110, 253, .14);
}
.pp-ci {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-bottom: 4px;
    border-radius: 12px;
    background: var(--pp-tint);
    font-size: 18px;
    color: var(--pp-primary);
}
.pp-card h3 {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--pp-ink);
}
.pp-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--pp-mute);
}
.pp-glance-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    max-width: 720px;
    margin: 14px auto 0;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    color: var(--pp-mute);
}
.pp-glance-note i { margin-top: 3px; color: var(--pp-primary); }

/* =========================================================
   Layout: table of contents + document
========================================================= */
.pp-body {
    padding: 0 0 var(--pp-sec);
    background: #fff;
}
.pp-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

/* Table of contents */
.pp-toc {
    position: sticky;
    top: var(--pp-header-offset);
    min-width: 0;
    max-height: calc(100vh - var(--pp-header-offset) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--pp-line);
    border-radius: 16px;
    background: var(--pp-soft);
}
.pp-toc-box { padding: 6px 8px 10px; }
.pp-toc-box summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 10px;
    list-style: none;
    font-size: 14px;
    font-weight: 800;
    color: var(--pp-ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.pp-toc-box summary::-webkit-details-marker { display: none; }
.pp-toc-box summary::marker { content: ""; }
.pp-toc-box summary i { color: var(--pp-primary); }
.pp-toc-box summary::after {
    content: "\f078";
    margin-left: auto;
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
    color: var(--pp-mute);
    transition: transform .25s ease;
}
.pp-toc-box[open] summary::after { transform: rotate(180deg); }
.pp-toc-box[data-fixed] summary { cursor: default; }
.pp-toc-box[data-fixed] summary::after { display: none; }

.pp-toc-list { counter-reset: pp-toc; }
.pp-toc-list li { counter-increment: pp-toc; }
.pp-toc-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--pp-mute);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.pp-toc-list a::before {
    content: counter(pp-toc);
    flex-shrink: 0;
    min-width: 22px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.7;
    text-align: center;
    color: #8ea0c4;
}
.pp-toc-list a:hover { background: #fff; color: var(--pp-primary); }
.pp-toc-list a.active {
    background: #fff;
    color: var(--pp-primary);
    box-shadow: 0 1px 4px rgba(10, 21, 48, .08);
}
.pp-toc-list a.active::before { color: var(--pp-primary); }

/* Document */
.pp-doc {
    min-width: 0;
    max-width: 800px;
    counter-reset: pp-sec;
}
.pp-intro {
    margin-bottom: 8px;
    padding: var(--pp-pad);
    border-left: 4px solid var(--pp-primary);
    border-radius: 0 12px 12px 0;
    background: var(--pp-tint);
    font-size: 16px;
    line-height: 1.75;
    color: var(--pp-ink);
}
.pp-sec {
    padding: var(--pp-sec) 0 0;
}
.pp-sec + .pp-sec {
    margin-top: var(--pp-sec);
    border-top: 1px solid var(--pp-line);
}
.pp-sec h2 {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    font-size: clamp(22px, 3.2vw, 28px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--pp-ink);
    overflow-wrap: anywhere;
}
.pp-sec h2::before {
    content: counter(pp-sec);
    counter-increment: pp-sec;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin-top: -1px;
    border-radius: 10px;
    background: var(--pp-grad);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    color: #fff;
}
.pp-sec h3 {
    margin: 24px 0 10px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--pp-ink);
}
.pp-sec p,
.pp-sec li {
    font-size: 16px;
    line-height: 1.75;
    color: var(--pp-text);
    overflow-wrap: anywhere;
}
.pp-sec p { margin-bottom: 14px; }
.pp-sec ul { margin: 0 0 16px; }
.pp-sec ul li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 22px;
}
.pp-sec ul li::before {
    content: "";
    position: absolute;
    top: .72em;
    left: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pp-primary);
}
.pp-sec strong { font-weight: 700; color: var(--pp-ink); }
.pp-sec a {
    font-weight: 600;
    color: var(--pp-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.pp-sec a:hover { text-decoration-thickness: 2px; }

/* Callout */
.pp-callout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 4px 0 16px;
    padding: 14px 16px;
    border: 1px solid var(--pp-line);
    border-radius: 12px;
    background: var(--pp-soft);
}
.pp-callout i { margin-top: 5px; font-size: 18px; }
.pp-callout p { margin: 0; font-size: 15px; line-height: 1.65; }
.pp-callout-warn {
    border-color: var(--pp-warn-line);
    background: var(--pp-warn-bg);
}
.pp-callout-warn i { color: #d98a00; }
.pp-callout-warn p,
.pp-callout-warn strong { color: var(--pp-warn-ink); }

/* Tables */
.pp-table-wrap {
    position: relative;
    margin: 4px 0 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--pp-line);
    border-radius: 14px;
    background: #fff;
}
.pp-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}
.pp-table th,
.pp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--pp-line);
    vertical-align: top;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    color: var(--pp-text);
}
.pp-table thead th {
    background: var(--pp-soft);
    font-size: 13px;
    font-weight: 800;
    color: var(--pp-ink);
    white-space: nowrap;
}
.pp-table tbody th {
    width: 34%;
    font-weight: 700;
    color: var(--pp-ink);
}
.pp-table tbody tr:last-child th,
.pp-table tbody tr:last-child td { border-bottom: 0; }

/* Contact block */
.pp-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--pp-gap);
    margin: 4px 0 18px;
}
.pp-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: var(--pp-pad);
    border: 1px solid var(--pp-line);
    border-radius: 14px;
    background: #fff;
}
.pp-contact-item > div { min-width: 0; }
.pp-contact-item .pp-ci { margin-bottom: 0; }
.pp-sec .pp-contact-item h3 {
    margin: 0 0 2px;
    font-size: 15px;
}
.pp-contact-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}
.pp-related {
    padding-top: 6px;
    font-weight: 600;
}

/* Back to top */
.pp-top {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--pp-grad);
    box-shadow: 0 10px 24px rgba(13, 110, 253, .4);
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    -webkit-tap-highlight-color: transparent;
}
.pp-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* ---- Laptops / small desktops ---- */
@media (max-width: 1200px) {
    .pp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pp-layout { grid-template-columns: 250px minmax(0, 1fr); }
}

/* ---- Tablets: table of contents becomes a collapsible box above the text ---- */
@media (max-width: 992px) {
    .pp-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .pp-toc {
        position: static;
        max-height: none;
        overflow: visible;
    }
    .pp-toc-list { padding-top: 4px; }
    .pp-doc { max-width: none; }
}

/* ---- Large phones ---- */
@media (max-width: 768px) {
    .pp-hero { padding-bottom: 72px; }
    .pp-glance { margin-top: -40px; }
    .pp-contact { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Phones ---- */
@media (max-width: 576px) {
    .pp-main .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .pp-actions { flex-direction: column; align-items: stretch; }
    .pp-actions .pp-btn { width: 100%; }
    .pp-meta { flex-direction: column; gap: 8px; }
    .pp-cards { grid-template-columns: minmax(0, 1fr); }

    .pp-sec p,
    .pp-sec li { font-size: 15.5px; }
    .pp-sec h2 { gap: 12px; }
    .pp-sec h2::before { width: 32px; height: 32px; font-size: 15px; }
    .pp-intro { font-size: 15.5px; }

    /* tables become stacked cards so nothing needs side scrolling */
    .pp-table-wrap { overflow: visible; border: 0; background: transparent; }
    .pp-table,
    .pp-table tbody,
    .pp-table tr,
    .pp-table th,
    .pp-table td { display: block; width: 100%; min-width: 0; }
    .pp-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }
    .pp-table tbody tr {
        margin-bottom: 12px;
        overflow: hidden;
        border: 1px solid var(--pp-line);
        border-radius: 12px;
        background: #fff;
    }
    .pp-table tbody tr:last-child { margin-bottom: 0; }
    .pp-table th,
    .pp-table td { border-bottom: 1px solid var(--pp-line); }
    .pp-table tbody th { width: 100%; background: var(--pp-soft); }
    .pp-table tbody tr:last-child th,
    .pp-table tbody tr:last-child td { border-bottom: 1px solid var(--pp-line); }
    .pp-table tbody tr td:last-child { border-bottom: 0; }
    .pp-table th[data-label]::before,
    .pp-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .6px;
        text-transform: uppercase;
        color: var(--pp-mute);
    }

    /* footer text is centred on phones, so its blocks are centred too */
    .brand-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
    .footer-links a { padding: 5px 0; }
    .footer-bottom-links a { padding: 4px 0; }
}

/* ---- Small phones (320px - 380px) ---- */
@media (max-width: 380px) {
    .pp-main .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .pp-hero h1 { font-size: 30px; }
    .pp-card,
    .pp-contact-item { padding: 14px; }
    .pp-callout { padding: 12px; gap: 10px; }
}

/* ---- Very small devices (Galaxy Fold, 280px - 340px) ---- */
@media (max-width: 340px) {
    .pp-main .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .pp-hero h1 { font-size: 27px; }
    .pp-sec h2 { font-size: 20px; }
}

/* ---- Landscape phones ---- */
@media (max-height: 480px) and (orientation: landscape) {
    .pp-hero { padding-top: 20px; padding-bottom: 60px; }
    .pp-toc { max-height: none; position: static; }
}

/* ---- Large screens ---- */
@media (min-width: 1600px) {
    .pp-cards { gap: 24px; }
}

/* =========================================================
   Touch devices: stop sticky hover transforms
========================================================= */
@media (hover: none) {
    .pp-card:hover,
    .pp-btn-primary:hover { transform: none; }
}

/* =========================================================
   Reduced motion
========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pp-main *,
    .pp-main *::before,
    .pp-main *::after,
    .pp-top {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   Print: clean, black on white, full text
========================================================= */
@media print {
    .header,
    .footer,
    .pp-progress,
    .pp-top,
    .pp-toc,
    .pp-actions,
    .pp-glance { display: none !important; }
    html, body { overflow: visible !important; }
    .pp-hero {
        padding: 0 0 16px;
        color: #000;
        background: none;
    }
    .pp-hero::before { display: none; }
    .pp-hero h1,
    .pp-lead,
    .pp-meta,
    .pp-crumbs ol,
    .pp-crumbs a,
    .pp-crumbs [aria-current] { color: #000; }
    .pp-layout { display: block; }
    .pp-doc { max-width: none; }
    .pp-sec { break-inside: avoid-page; }
    .pp-sec h2 { break-after: avoid; }
    .pp-sec h2::before { border: 1px solid #000; background: none; color: #000; }
    .pp-table-wrap { overflow: visible; }
    .pp-table { min-width: 0; }
    .pp-sec a { color: #000; text-decoration: underline; }
}