/* =========================================================
   LEGAL PAGES (Privacy Policy, Terms and Conditions)
   Classes are prefixed with pp- to avoid clashing with Bootstrap
   (.lead, .table, .steps).
   ========================================================= */

.pp-page {
    --pp-brand: #003b8e;
    --pp-brand-600: #0a4aa8;
    --pp-ink: #0f1f3d;
    --pp-muted: #667085;
    --pp-bg: #f7f9fd;
    --pp-line: #e4eaf5;
    --pp-tint: #e8effb;
    --pp-radius: 18px;
    --pp-shadow: 0 10px 30px rgba(0, 59, 142, .08);
    --pp-shadow-lg: 0 22px 60px rgba(0, 40, 120, .16);
    color: var(--pp-ink);
    background: var(--pp-bg);
    -webkit-font-smoothing: antialiased;
}

.pp-page :focus-visible {
    outline: 3px solid #9db8ea;
    outline-offset: 2px;
    border-radius: 8px;
}

.pp-page a {
    text-decoration: none;
}


/* =========================================================
   READING PROGRESS
   ========================================================= */

.pp-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1100;
    pointer-events: none;
}

.pp-progress i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--pp-brand), #2c6fd6 60%, #f26a1b);
}


/* =========================================================
   HERO
   ========================================================= */

/* Same look as the /contact page hero (.contact-page-hero) */
.pp-hero {
    background-image: url('/images/general/background-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 150px 0 70px; /* clears the absolute navbar, same as other pages */
    position: relative;
}

.pp-hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

/* h1 for the page title, styled like the shared .section-heading h2 */
.pp-hero h1 {
    max-width: 850px;
    margin: 10px 0 18px;
    font-size: clamp(36px, 3.2vw, 45px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -1.9px;
    color: #172033;
}

.pp-hero h1 span {
    color: var(--levanda-blue);
}

.pp-hero p {
    max-width: 680px;
    margin: 0 auto;
}

.pp-hero .pp-updated {
    margin-top: 18px;
    font-size: 14px;
}

@media (max-width: 500px) {
    .pp-hero {
        background-image: url('/images/general/vertical-bg-3.png');
        background-size: 100% 100%;
    }
}


/* =========================================================
   LAYOUT: TOC + DOCUMENT
   ========================================================= */

.pp-doc {
    padding: 64px 0 96px;
}

.pp-doc-grid {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.pp-toc {
    position: sticky;
    top: 32px;
    max-height: calc(100vh - 64px);
    overflow: auto;
    padding-right: 6px;
}

.pp-toc h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pp-brand);
    margin-bottom: 14px;
}

.pp-toc ol,
.pp-toc-m ol {
    list-style: none;
    margin: 0;
}

.pp-toc ol {
    padding: 0;
    border-left: 2px solid var(--pp-line);
}

.pp-toc a {
    display: flex;
    gap: 10px;
    padding: 8px 0 8px 16px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: 14px;
    line-height: 1.4;
    color: var(--pp-muted);
    transition: .15s;
}

.pp-toc a i,
.pp-toc-m a i {
    font-style: normal;
    font-weight: 700;
}

.pp-toc a i {
    opacity: .55;
    min-width: 20px;
}

.pp-toc a:hover {
    color: var(--pp-ink);
}

.pp-toc a.active {
    color: var(--pp-brand);
    border-left-color: var(--pp-brand);
    font-weight: 600;
    background: linear-gradient(90deg, var(--pp-tint), transparent);
}

.pp-toc a.active i {
    opacity: 1;
}

.pp-toc-m {
    display: none;
    margin-bottom: 28px;
    background: #fff;
    border: 1px solid var(--pp-line);
    border-radius: 14px;
}

.pp-toc-m summary {
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pp-toc-m summary::-webkit-details-marker {
    display: none;
}

.pp-toc-m summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: .2s;
}

.pp-toc-m[open] summary::after {
    transform: rotate(-135deg);
}

.pp-toc-m ol {
    padding: 0 18px 14px;
}

.pp-toc-m a {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    font-size: 14.5px;
    border-top: 1px solid var(--pp-line);
    color: var(--pp-ink);
}

.pp-toc-m a i {
    color: var(--pp-brand);
    min-width: 22px;
}

@media (max-width: 960px) {
    .pp-doc-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .pp-toc { display: none; }
    .pp-toc-m { display: block; }
}


/* =========================================================
   PROSE
   ========================================================= */

.pp-policy {
    counter-reset: sec;
    max-width: 780px;
    font-size: 16.5px;
    line-height: 1.78;
    color: #27364f;
}

.pp-sec {
    counter-increment: sec;
    scroll-margin-top: 32px;
    padding-bottom: 44px;
    margin-bottom: 44px;
    border-bottom: 1px solid var(--pp-line);
}

.pp-sec:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.pp-sec h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(24px, 2.6vw, 30px);
    line-height: 1.2;
    letter-spacing: -.02em;
    font-weight: 800;
    color: var(--pp-ink);
    margin-bottom: 18px;
}

.pp-sec h2::before {
    content: counter(sec);
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--pp-brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
}

.pp-sec h2 .pp-anchor {
    opacity: 0;
    margin-left: auto;
    font-size: 18px;
    color: var(--pp-muted);
    transition: .15s;
}

.pp-sec h2:hover .pp-anchor,
.pp-sec h2 .pp-anchor:focus-visible {
    opacity: 1;
}

.pp-sec h3 {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--pp-ink);
    margin: 30px 0 10px;
}

.pp-sec p {
    margin-bottom: 16px;
}

.pp-sec b {
    color: var(--pp-ink);
}

.pp-text {
    color: var(--pp-brand);
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 59, 142, .3);
}

.pp-text:hover {
    color: var(--pp-brand);
    border-bottom-color: var(--pp-brand);
}

.pp-sec ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.pp-sec ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.pp-sec ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .42em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--pp-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23003b8e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.pp-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    counter-reset: st;
}

.pp-steps li {
    counter-increment: st;
    position: relative;
    padding-left: 52px;
    margin-bottom: 22px;
}

.pp-steps li::before {
    content: counter(st);
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--pp-tint);
    color: var(--pp-brand);
    font-weight: 700;
    font-size: 15px;
    display: grid;
    place-items: center;
}

.pp-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 38px;
    bottom: -18px;
    width: 2px;
    background: var(--pp-line);
}

.pp-steps b {
    display: block;
}

.pp-callout {
    display: flex;
    gap: 14px;
    background: var(--pp-tint);
    border: 1px solid #cfdcf5;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 22px 0;
    font-size: 15.5px;
    line-height: 1.65;
}

.pp-callout svg {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--pp-brand);
    margin-top: 2px;
}

.pp-callout.warn {
    background: #fff7e8;
    border-color: #f6d9a8;
}

.pp-callout.warn svg {
    color: #b45309;
}

.pp-callout p {
    margin: 0;
}

.pp-tbl {
    overflow-x: auto;
    margin: 20px 0 24px;
    border: 1px solid var(--pp-line);
    border-radius: 14px;
    background: #fff;
}

.pp-tbl table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    line-height: 1.55;
    min-width: 560px;
}

.pp-tbl th {
    background: var(--pp-bg);
    text-align: left;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pp-brand);
    padding: 13px 16px;
    white-space: nowrap;
}

.pp-tbl td {
    padding: 14px 16px;
    border-top: 1px solid var(--pp-line);
    vertical-align: top;
}

.pp-tbl td:first-child {
    font-weight: 600;
    color: var(--pp-ink);
    white-space: nowrap;
}

/* for tables whose first column holds long text */
.pp-tbl-wrap td:first-child {
    white-space: normal;
    min-width: 220px;
}

.pp-contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.pp-contact-card > div {
    background: #fff;
    border: 1px solid var(--pp-line);
    border-radius: 14px;
    padding: 18px 20px;
    font-size: 15px;
}

.pp-contact-card b {
    display: block;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pp-brand);
    margin-bottom: 6px;
}

.pp-contact-card a {
    color: var(--pp-ink);
}

.pp-contact-card a:hover {
    color: var(--pp-brand);
}

@media (max-width: 600px) {
    .pp-contact-card { grid-template-columns: 1fr; }
    .pp-sec h2::before { width: 34px; height: 34px; font-size: 14px; }
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.pp-backtop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1050;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--pp-brand);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 28px rgba(0, 59, 142, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .2s;
}

.pp-backtop.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.pp-backtop:hover {
    background: var(--pp-brand-600);
}

.pp-backtop svg {
    width: 22px;
    height: 22px;
}


/* =========================================================
   PRINT / MOTION
   ========================================================= */

@media print {
    .levanda-navbar,
    .levanda-footer,
    .pp-toc,
    .pp-toc-m,
    .pp-progress,
    .pp-backtop { display: none !important; }
    .pp-page { background: #fff; }
    .pp-hero { background: none; padding: 0 0 20px; }
    .pp-doc { padding: 0; }
    .pp-doc-grid { display: block; }
    .pp-policy { max-width: none; font-size: 11.5pt; }
    .pp-sec { break-inside: avoid-page; padding-bottom: 18px; margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .pp-backtop { transition: none; }
}
