/* ==========================================================================
   privacy-policy.php + terms-conditions.php — page-only styles.
   Builds on theme.css. Candidates to promote: .ph-crumbs, .ph-prose, .ph-toc.
   ========================================================================== */

/* ---------- breadcrumb (on the red page hero) ---------- */
.ph-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin: 0 0 var(--ph-s-3); padding: 0; list-style: none; font-size: var(--ph-fs-sm); }
.ph-crumbs li { display: inline-flex; align-items: center; gap: .5rem; color: var(--ph-on-red-soft); }
.ph-crumbs li + li::before { content: "/"; opacity: .7; }
.ph-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: #fff !important; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 4px; }
.ph-crumbs a:hover { text-decoration-color: #fff; }

.ph-legal-hero { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }
.ph-legal-hero__date {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    margin: var(--ph-s-2) 0 0 !important;
    padding: .45em 1em;
    border: 1.5px solid rgba(255,255,255,.55);
    border-radius: var(--ph-r-pill);
    font-size: var(--ph-fs-sm) !important;
    font-weight: 600;
    color: #fff;
}

/* ---------- layout: sticky table of contents + reading column ---------- */
.ph-legal { display: grid; gap: var(--ph-s-6); align-items: start; }
@media (min-width: 992px) {
    .ph-legal { grid-template-columns: 260px minmax(0, 1fr); gap: var(--ph-s-8); }
    .ph-toc { position: sticky; top: calc(var(--ph-header-h) + 24px); }
}

.ph-toc {
    background: var(--ph-paper);
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-r-lg);
    padding: var(--ph-s-5);
}
.ph-toc__title {
    margin: 0 0 var(--ph-s-2) !important;
    font-size: var(--ph-fs-xs);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ph-red-700);
}
.ph-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: ph-toc; }
.ph-toc li { counter-increment: ph-toc; }
.ph-toc a {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 44px;
    padding-block: .25rem;
    border-bottom: 1px solid var(--ph-line);
    font-weight: 600;
    line-height: 1.3;
    color: var(--ph-ink) !important;
}
.ph-toc li:last-child a { border-bottom: 0; }
.ph-toc a::before {
    content: counter(ph-toc);
    flex: none;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--ph-tint);
    color: var(--ph-red-700);
    font-size: var(--ph-fs-xs);
    font-weight: 700;
}
.ph-toc a:hover { color: var(--ph-red-700) !important; }

/* ---------- prose ---------- */
.ph-prose {
    max-width: 70ch;
    font-size: var(--ph-fs-lg);
    line-height: 1.75;
    color: var(--ph-ink-2);
}
.ph-prose__intro {
    font-family: var(--ph-font-display);
    font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
    line-height: 1.5;
    color: var(--ph-ink);
    padding-bottom: var(--ph-s-5);
    margin-bottom: var(--ph-s-5) !important;
    border-bottom: 1px solid var(--ph-line);
}
.ph-prose section { padding-block: var(--ph-s-3); }
.ph-prose section + section { border-top: 1px dashed var(--ph-tint-2); padding-top: var(--ph-s-5); margin-top: var(--ph-s-3); }
.ph-prose h2 {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem);
    margin: 0 0 .6em !important;
}
.ph-prose h2 .ph-prose__num { color: var(--ph-red); font-variant-numeric: tabular-nums; }
.ph-prose ul { display: grid; gap: .55rem; margin: 0 0 1em; }
.ph-prose ul li { position: relative; padding-left: 1.6rem; }
.ph-prose ul li::before {
    content: "";
    position: absolute;
    left: .2rem; top: .7em;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ph-red);
}
.ph-prose p:last-child, .ph-prose ul:last-child { margin-bottom: 0; }

/* ---------- help card + back link ---------- */
.ph-legal-help { margin-top: var(--ph-s-7); max-width: 70ch; }
.ph-legal-help .ph-card__title { font-size: 1.4rem; }
.ph-legal-help .ph-btn-row { margin-top: var(--ph-s-4); }
.ph-legal-back { margin-top: var(--ph-s-5); }
