/* ============================================================
   PRIVACY_POLICY.CSS  —  Sportstify Privacy Policy Page
   3-column layout: left TOC | centre content | right sidebar
   No accordion. Sections are flat, always-visible documents.
   Matches site variables: Oswald + DM Sans, --accent #e8192c
   ============================================================ */

/* ── HERO ──────────────────────────────────────────────────── */
.pp-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 56px;
    background: var(--nav-bg);
    --pp-hero-bg: none;
}

.pp-hero-bg {
    position: absolute;
    inset: 0;
    background-image: var(--pp-hero-bg, none);
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.pp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 15, 30, 0.97) 0%,
        rgba(28, 35, 51, 0.90) 60%,
        rgba(10, 15, 30, 0.97) 100%
    );
}

/* Subtle dot grid */
.pp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(232,25,44,0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.pp-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb i.fa-chevron-right { font-size: 9px; opacity: 0.35; }
.breadcrumb span { color: var(--accent); font-weight: 500; }

/* Eyebrow tag */
.pp-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(232, 25, 44, 0.12);
    border: 1px solid rgba(232, 25, 44, 0.30);
    color: #ff8090;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
}

/* Title */
.pp-hero-title {
    font-family: "Oswald", sans-serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.pp-accent { color: var(--accent); }

/* Description */
.pp-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.72;
    max-width: 620px;
    margin-bottom: 26px;
}

/* Date badges */
.pp-date-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.pp-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.65);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
}
.pp-date-badge i { color: var(--accent); font-size: 12px; }
.pp-date-badge strong { color: #fff; }

/* Highlights */
.pp-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pp-highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    color: rgba(255,255,255,0.75);
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all var(--transition);
}
.pp-highlight-pill i { color: var(--accent); font-size: 11px; }
.pp-highlight-pill:hover {
    background: rgba(232,25,44,0.10);
    border-color: rgba(232,25,44,0.28);
    color: #fff;
}

/* ── PAGE WRAPPER & 3-COLUMN GRID ──────────────────────────── */
.pp-wrap {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 24px;
}

.pp-layout {
    display: grid;
    /* left TOC | main content | right sidebar */
    grid-template-columns: 240px 1fr 280px;
    gap: 32px;
    padding: 40px 0 72px;
    align-items: start;
}

/* ── LEFT — TABLE OF CONTENTS ──────────────────────────────── */
.pp-toc-col {
    /* column stays in place; inner div is the sticky element */
}

.pp-toc-sticky {
    position: sticky;
    top: 84px; /* clears navbar height */
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    max-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}

.pp-toc-label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 16px 12px;
    font-family: "Oswald", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    border-bottom: 2px solid var(--accent);
    flex-shrink: 0;
}
.pp-toc-label i { color: var(--accent); font-size: 13px; }

.pp-toc {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    overflow-y: auto;
    flex: 1;
}
/* slim scrollbar inside toc */
.pp-toc::-webkit-scrollbar { width: 3px; }
.pp-toc::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.pp-toc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text2);
    text-decoration: none;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    line-height: 1.35;
}
.pp-toc-item:hover {
    color: var(--text);
    background: var(--surface2);
}
.pp-toc-item.active {
    color: var(--accent);
    background: rgba(232,25,44,0.06);
    font-weight: 600;
}

/* coloured pip */
.pp-toc-pip {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity var(--transition), transform var(--transition);
}
.pp-toc-item:hover .pp-toc-pip,
.pp-toc-item.active .pp-toc-pip {
    opacity: 1;
    transform: scale(1.2);
}

/* counter */
.pp-toc-num {
    font-family: "Oswald", sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--text3);
    min-width: 18px;
    flex-shrink: 0;
    transition: color var(--transition);
}
.pp-toc-item.active .pp-toc-num { color: var(--accent); }

.pp-toc-text { flex: 1; min-width: 0; }

/* bottom branding strip */
.pp-toc-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text3);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pp-toc-footer i { color: var(--accent); font-size: 12px; }

/* ── CENTRE — MAIN CONTENT ─────────────────────────────────── */
.pp-main {
    min-width: 0;
}

/* Intro banner */
.pp-intro-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--primary) 0%, #1a3358 60%, #0f2a4a 100%);
    border-radius: var(--radius);
    padding: 26px 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}
.pp-intro-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(232,25,44,0.18);
    border: 1px solid rgba(232,25,44,0.32);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 20px;
    color: var(--accent);
}
.pp-intro-body h2 {
    font-family: "Oswald", sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 7px;
}
.pp-intro-body p {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    line-height: 1.68;
    margin: 0;
}

/* ── POLICY SECTIONS — flat, always visible ────────────────── */
.pp-section {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
    scroll-margin-top: 90px; /* offset for sticky navbar */
    transition: box-shadow var(--transition);
}
.pp-section:hover { box-shadow: var(--shadow); }

/* Heading row */
.pp-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 26px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.pp-section-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 17px;
    color: #fff;
    flex-shrink: 0;
}

.pp-section-title-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.pp-section-counter {
    font-family: "Oswald", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text3);
    line-height: 1;
}
.pp-section-title {
    font-family: "Oswald", sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.3px;
    margin: 0;
    line-height: 1.25;
}

/* Body — always fully visible */
.pp-section-body {
    padding: 26px 26px 28px 26px;
}

/* ── RICH TEXT CONTENT ─────────────────────────────────────── */
.pp-rich-content {
    font-size: 14px;
    line-height: 1.78;
    color: var(--text2);
}

.pp-rich-content h2,
.pp-rich-content h3,
.pp-rich-content h4 {
    font-family: "Oswald", sans-serif;
    color: var(--text);
    margin: 22px 0 10px;
    font-weight: 600;
}
.pp-rich-content h2 { font-size: 17px; }
.pp-rich-content h3 {
    font-size: 15px;
    padding-left: 10px;
}
.pp-rich-content h4 {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text3);
}

.pp-rich-content p { margin-bottom: 14px; }
.pp-rich-content p:last-child { margin-bottom: 0; }

.pp-rich-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}
.pp-rich-content a:hover { color: #c7152a; }

.pp-rich-content ul,
.pp-rich-content ol {
    padding-left: 22px;
    margin-bottom: 16px;
}
.pp-rich-content ul li { list-style: disc; margin-bottom: 7px; }
.pp-rich-content ol li { list-style: decimal; margin-bottom: 7px; }

.pp-rich-content strong { color: var(--text); font-weight: 600; }
.pp-rich-content em { font-style: italic; }

/* Tables */
.pp-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0 20px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}
.pp-rich-content table th {
    background: var(--surface2);
    font-family: "Oswald", sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid var(--accent);
}
.pp-rich-content table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text2);
    vertical-align: top;
}
.pp-rich-content table tr:last-child td { border-bottom: none; }
.pp-rich-content table tr:hover td { background: var(--surface2); }

/* Blockquote */
.pp-rich-content blockquote {
    padding: 12px 18px;
    background: var(--surface2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 18px 0;
    font-style: italic;
    color: var(--text);
    font-size: 13.5px;
}

/* Inline code */
.pp-rich-content code {
    background: var(--surface2);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    color: var(--accent);
    border: 1px solid var(--border);
}

/* Empty state */
.pp-empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text3);
    background: var(--surface);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
}
.pp-empty-state i { font-size: 48px; opacity: 0.30; margin-bottom: 14px; display: block; }
.pp-empty-state p { font-size: 14px; }

/* ── RIGHT SIDEBAR ─────────────────────────────────────────── */
.pp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}
/* slim scrollbar */
.pp-sidebar::-webkit-scrollbar { width: 3px; }
.pp-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Contact widget ──── */
.pp-contact-widget {
    padding: 20px 18px;
    text-align: center;
}
.pp-contact-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b00 100%);
    display: grid;
    place-items: center;
    font-size: 22px;
    color: #fff;
    margin: 0 auto 14px;
    box-shadow: 0 4px 16px rgba(232,25,44,0.30);
}
.pp-contact-desc {
    font-size: 12.5px;
    color: var(--text2);
    line-height: 1.62;
    margin-bottom: 14px;
}
.pp-contact-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent);
    padding: 9px 12px;
    background: rgba(232,25,44,0.06);
    border: 1px solid rgba(232,25,44,0.18);
    border-radius: var(--radius-sm);
    margin-bottom: 11px;
    transition: all var(--transition);
    text-decoration: none;
    word-break: break-all;
}
.pp-contact-email:hover { background: rgba(232,25,44,0.13); }
.pp-contact-email span { min-width: 0; }
.pp-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    transition: all var(--transition);
    text-decoration: none;
}
.pp-contact-btn:hover { background: #c7152a; transform: translateY(-1px); }

/* ── Trust list ──── */
.pp-trust-list { display: flex; flex-direction: column; gap: 8px; }
.pp-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text2);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--surface2);
    transition: background var(--transition), color var(--transition);
}
.pp-trust-item:hover { color: var(--text); }
.pp-trust-item i { font-size: 14px; width: 16px; flex-shrink: 0; }

/* ── Legal quick-links ──── */
.pp-legal-links { display: flex; flex-direction: column; gap: 2px; }
.pp-legal-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text2);
    transition: all var(--transition);
    text-decoration: none;
    cursor: pointer;
}
.pp-legal-item i { font-size: 9px; color: var(--text3); }
.pp-legal-item:hover { background: var(--surface2); color: var(--accent); }
.pp-legal-item:hover i { color: var(--accent); }
.pp-legal-active {
    background: rgba(232,25,44,0.06);
    color: var(--accent);
    font-weight: 600;
}
.pp-legal-active i { color: var(--accent); }

/* ── SCROLL PROGRESS BAR ───────────────────────────────────── */
.pp-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    width: 0%;
    z-index: 9999;
    transition: width 0.08s linear;
    pointer-events: none;
}

/* ── BACK TO TOP ───────────────────────────────────────────── */
.pp-back-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(232,25,44,0.38);
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px);
    transition: all var(--transition);
    z-index: 200;
    border: none;
}
.pp-back-top.visible { opacity: 1; transform: translateY(0); }
.pp-back-top:hover   { background: #c7152a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,25,44,0.45); }

/* ── DARK THEME ────────────────────────────────────────────── */
[data-theme="dark"] .pp-intro-card {
    background: linear-gradient(135deg, #0d1117 0%, #141e30 60%, #0d1117 100%);
}
[data-theme="dark"] .pp-section {
    border-color: var(--border);
}
[data-theme="dark"] .pp-section-heading {
    background: var(--surface);
    border-bottom-color: var(--border);
}
[data-theme="dark"] .pp-toc-sticky {
    border-color: var(--border);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */

/* 3-col → 2-col: drop left TOC panel (inline TOC hides anyway) */
@media (max-width: 1280px) {
    .pp-layout {
        grid-template-columns: 200px 1fr 260px;
        gap: 24px;
    }
}

@media (max-width: 1080px) {
    /* hide left TOC col; sidebar stays on right */
    .pp-layout {
        grid-template-columns: 1fr 260px;
    }
    .pp-toc-col { display: none; }
}

@media (max-width: 860px) {
    /* single column stack */
    .pp-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px 0 56px;
    }
    .pp-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .pp-hero { padding: 48px 0 36px; }
    .pp-hero-title { font-size: 28px; }
    .pp-intro-card { flex-direction: column; gap: 14px; }
    .pp-date-row { flex-direction: column; gap: 8px; }
    .pp-sidebar { grid-template-columns: 1fr; }
    .pp-section-heading { padding: 18px 18px 16px; gap: 12px; }
    .pp-section-icon-wrap { width: 38px; height: 38px; font-size: 15px; }
    .pp-section-title { font-size: 17px; }
    .pp-section-body { padding: 20px 18px 22px; }
    .pp-back-top { bottom: 16px; right: 16px; width: 38px; height: 38px; font-size: 14px; }
}

@media (max-width: 400px) {
    .pp-hero-title { font-size: 24px; }
    .pp-highlights { gap: 6px; }
    .pp-highlight-pill { font-size: 11px; padding: 5px 10px; }
}