/*! Ditat Theme — assets/css/privacy.css
 * (c) Ditat — https://ditat.com — All rights reserved
 *
 * Privacy Policy (template-privacy.php). The sticky table-of-contents rail
 * reuses the same mechanics as the Platform page's module rail (.pf-modules-rail
 * in platform.css): position:sticky pinned below the 78px header, a stable
 * scrollbar gutter, and a +32px top offset when the WP admin bar is present. */

.pp-hero {
    background-color: var(--navy-deep);
    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;
    text-align: center;
}

.pp-hero-accent {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--grad-hero-radial);
    opacity: 0.8;
}

.pp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pp-hero-lead {
    margin-bottom: 28px;
}

.pp-hero-updated {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.pp-head {
    margin-bottom: 48px;
}

.pp-layout {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.pp-toc {
    position: sticky;
    top: 102px;
    align-self: start;
    max-height: calc(100vh - 132px);
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.2s ease;
    padding-right: 4px;
}

.pp-toc:hover,
.pp-toc:focus-within {
    scrollbar-color: rgb(var(--muted-2-rgb) / 0.4) transparent;
}

body.admin-bar .pp-toc {
    top: 134px;
    max-height: calc(100vh - 164px);
}

.pp-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
    border-left: 2px solid var(--line);
}

.pp-toc-link {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 9px 14px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: var(--muted);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    transition: color .15s ease, border-color .15s ease;
}

.pp-toc-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-toc-link:hover {
    color: var(--navy);
}

.pp-toc-num {
    color: var(--muted-2);
    font-weight: 700;
    font-size: .8125rem;
    flex: 0 0 auto;
    transition: color .15s ease;
}

.pp-toc-link.is-active {
    color: var(--cta);
    border-left-color: var(--cta);
    font-weight: 700;
}

.pp-toc-link.is-active .pp-toc-num {
    color: var(--cta);
}

.pp-doc {
    padding: 16px 56px 40px;
}

.pp-doc:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(var(--shadow-base) / 0.04);
}

.pp-section {
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 96px;
}

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

.pp-section-title {
    font-size: 1.625rem;
    line-height: 1.25;
    margin: 0 0 18px;
}

.pp-section p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 16px;
    max-width: 760px;
}

.pp-section p:last-child {
    margin-bottom: 0;
}

.pp-section-body ul {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    max-width: 760px;
}

.pp-section-body li {
    position: relative;
    padding-left: 26px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.pp-section-body li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cta);
}

.pp-badge {
    display: inline-block;
    margin: 0 0 18px;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    background: var(--soft);
    color: var(--navy);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

@media (max-width: 1000px) {
    .pp-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .pp-toc {
        display: none;
    }

    .pp-toc-select-wrap {
        display: block;
        top: 86px;
        margin-bottom: 22px;
    }

    body.admin-bar .pp-toc-select-wrap {
        top: 118px;
    }

    .pp-doc {
        padding: 8px 28px 28px;
    }
}

@media (max-width: 600px) {
    .pp-doc {
        padding: 4px 20px 20px;
    }

    .pp-section-title {
        font-size: 1.375rem;
    }
}

