:root {
    --cl-bg: #0d0718;
    --cl-purple: #7b1db1;
    --cl-accent: #7c3aed;
    --cl-accent-hover: #6d28d9;
    --cl-accent-edge: #a78bfa;
    --cl-link: #c4b5fd;
    --cl-text: #f4f0fa;
    --cl-muted: #bdb2cf;
    --cl-paper: #ffffff;
    --cl-ink: #1c1530;
    --cl-ink-muted: #5b516f;
    --cl-rule: #e6dff0;
    --cl-tint: #f6f0ff;
    --cl-radius: 16px;
    --cl-header-h: 88px;
}

* {
    box-sizing: border-box;
}

body.compliance-page {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(1200px 400px at 50% 0%, rgba(123, 29, 177, .28), transparent 70%), var(--cl-bg);
    color: var(--cl-text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.compliance-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #26093f 0%, #4a1470 55%, #26093f 100%);
    border-bottom: 1px solid rgba(167, 139, 250, .35);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

.compliance-header-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--cl-header-h);
}

.compliance-header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compliance-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--cl-accent);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid var(--cl-accent-edge);
    border-radius: 10px;
    padding: 9px 16px;
    box-shadow: 0 0 18px rgba(139, 92, 246, .45), inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: background .2s, transform .2s;
}

.compliance-btn:hover {
    background: var(--cl-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.compliance-btn-ghost {
    background: transparent;
    border: 1.5px solid rgba(196, 181, 253, .75);
    box-shadow: none;
    color: var(--cl-text);
}

.compliance-btn-ghost:hover {
    background: rgba(196, 181, 253, .12);
    color: var(--cl-text);
}

.compliance-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--cl-text);
}

.compliance-logo img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
}

.compliance-logo span {
    font-weight: 800;
    font-size: 17px;
}

.compliance-wrap,
.pp-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.compliance-crumbs,
.pp-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 18px 0 14px;
    font-size: 14px;
    color: var(--cl-muted);
}

.compliance-crumbs a,
.pp-crumbs a {
    color: inherit;
    text-decoration: none;
}

.compliance-crumbs a:hover,
.pp-crumbs a:hover {
    text-decoration: underline;
}

.compliance-empty {
    max-width: 900px;
    margin: 0 auto 48px;
    background: var(--cl-paper);
    color: var(--cl-ink-muted);
    border-radius: var(--cl-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    font-size: 1rem;
    text-align: center;
    padding: 40px 20px;
}

/* ---------- Fallback typography for content pasted WITHOUT the
   pp-doc-layout/policy-body structure below (plain headings/paragraphs) ---------- */
.compliance-fallback {
    max-width: 900px;
    margin: 0 auto 48px;
    background: var(--cl-paper);
    color: var(--cl-ink);
    border-radius: var(--cl-radius);
    padding: clamp(22px, 4.5vw, 60px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    font-size: 1rem;
    line-height: 1.68;
    overflow-wrap: anywhere;
}

.compliance-fallback h1,
.compliance-fallback h2 {
    margin: 2.1em 0 .6em;
    font-size: 1.3rem;
    line-height: 1.3;
    font-weight: 800;
    color: #150f26;
}

.compliance-fallback h3 {
    margin: 1.6em 0 .5em;
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 800;
    color: #150f26;
}

.compliance-fallback p {
    margin: .75em 0;
}

.compliance-fallback ul,
.compliance-fallback ol {
    margin: .6em 0 .9em;
    padding-left: 1.35em;
}

.compliance-fallback li {
    margin: .38em 0;
}

.compliance-fallback strong {
    font-weight: 700;
}

.compliance-fallback a {
    color: var(--cl-purple);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Policy documents (aside TOC + centered content) — these
   classes (pp-doc-layout, pp-toc-col, pp-toc, policy-toc, pp-doc,
   policy-*, doc-sec) match pgsamusements.com's own markup, so content
   copied from there (or written to match it) gets this same two-column
   layout automatically, no extra work from whoever pastes it in. ---------- */
.pp-doc-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding-bottom: 48px;
}

.pp-doc {
    background: var(--cl-paper);
    color: var(--cl-ink);
    border-radius: var(--cl-radius);
    padding: clamp(22px, 4.5vw, 60px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

.pp-toc-col {
    position: sticky;
    top: calc(var(--cl-header-h) + 20px);
    max-height: calc(100vh - var(--cl-header-h) - 40px);
    overflow: auto;
    padding-right: 4px;
}

.pp-toc {
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
}

.pp-toc > summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    list-style: none;
    color: var(--cl-text);
}

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

.pp-toc > summary::after {
    content: "+";
    float: right;
    font-weight: 800;
    color: var(--cl-link);
}

.pp-toc[open] > summary::after {
    content: "\2212";
}

.pp-toc-more {
    margin: 12px 4px 0;
    font-size: .9rem;
}

.pp-toc-more a {
    color: var(--cl-link);
}

.policy-toc {
    padding: 0 16px 14px;
}

.policy-toc .toc-label {
    display: none;
}

.policy-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.policy-toc ol ol {
    padding-left: 12px;
    margin: 2px 0 4px;
}

.policy-toc li {
    margin: 0;
}

.policy-toc a {
    display: block;
    padding: 5px 0;
    font-size: .88rem;
    line-height: 1.35;
    text-decoration: none;
    color: var(--cl-muted);
}

.policy-toc a:hover {
    color: #fff;
}

.policy-body {
    font-size: 1rem;
    line-height: 1.68;
    overflow-wrap: anywhere;
}

.policy-head {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--cl-rule);
}

.policy-eyebrow {
    margin: 0 0 6px;
    font-weight: 800;
    letter-spacing: .12em;
    font-size: .9rem;
    color: var(--cl-ink-muted);
    text-transform: uppercase;
}

.policy-title {
    margin: 0;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #150f26;
}

.policy-subtitle {
    margin: 10px auto 0;
    max-width: 720px;
    color: var(--cl-ink-muted);
}

.policy-meta {
    margin: 12px 0 0;
    color: var(--cl-ink-muted);
    font-size: .92rem;
    font-variant-numeric: tabular-nums;
}

.policy-notice {
    margin: 18px auto 0;
    max-width: 760px;
    padding: 14px 18px;
    border: 2px solid #1c1530;
    border-radius: 10px;
    font-weight: 800;
    font-size: .95rem;
    line-height: 1.5;
    text-align: center;
}

.policy-body h2 {
    margin: 2.1em 0 .6em;
    font-size: 1.3rem;
    line-height: 1.3;
    font-weight: 800;
    color: #150f26;
}

.policy-body h3 {
    margin: 1.6em 0 .5em;
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 800;
    color: #150f26;
}

.policy-body p {
    margin: .75em 0;
}

.policy-body ul {
    margin: .6em 0 .9em;
    padding-left: 1.35em;
}

.policy-body ul.lvl-2 {
    padding-left: 2.6em;
}

.policy-body li {
    margin: .38em 0;
}

.policy-body strong {
    font-weight: 700;
}

.policy-body a {
    color: var(--cl-purple);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.doc-sec {
    scroll-margin-top: 16px;
}

.doc-sec:target,
.doc-sec:has(> h2:target),
.doc-sec:has(> h3:target) {
    background: var(--cl-tint);
    box-shadow: inset 4px 0 0 var(--cl-purple);
    border-radius: 10px;
    padding: .1em 1.1em .5em;
    margin: 0 -1.1em;
}

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

    .pp-toc-col {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 600px) {
    .pp-doc,
    .compliance-fallback,
    .compliance-empty {
        box-shadow: none;
        padding: 20px;
        border-radius: 0;
    }
}
