/* PGS Amusements player site: compliance pages (policies, Help Center, Contact).
   Loaded only by pages built from templates/_player_base.html.j2, together with
   pp-shared.css (footer + shared pieces), linked first by the template. */

:root {
  --pp-bg: #0d0718; --pp-bg-2: #170b2c; --pp-purple: #7b1db1; --pp-purple-deep: #3d0f5e;
  --pp-pink: #f643f7; --pp-green: #37ca37; --pp-green-2: #2eb02e;
  --pp-text: #f4f0fa; --pp-muted: #bdb2cf;
  --pp-paper: #ffffff; --pp-ink: #1c1530; --pp-ink-muted: #5b516f; --pp-rule: #e6dff0;
  --pp-tint: #f6f0ff; --pp-radius: 16px;
  --pp-header-h: 88px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
/* author display rules (.pp-btn, .pp-field ...) would otherwise beat the UA's [hidden] */
[hidden] { display: none !important; }
body.pp {
  margin: 0; min-height: 100vh; background: var(--pp-bg); color: var(--pp-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 500px at 85% -10%, rgba(123, 29, 177, .35), transparent 60%),
                    radial-gradient(700px 420px at -10% 10%, rgba(246, 67, 247, .12), transparent 60%);
  background-repeat: no-repeat;
}
body.pp a { color: inherit; }
.pp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.pp-skip { position: absolute; left: -9999px; top: 0; }
.pp-skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid #8cf58c; outline-offset: 2px; }

/* ---------- header ---------- */
.pp-header {
  background: linear-gradient(90deg, #26093f 0%, #4a1470 55%, #26093f 100%);
  border-bottom: 1px solid rgba(246, 67, 247, .3);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.pp-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--pp-header-h); padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.pp-logo img { display: block; width: 102px; height: auto; }
.pp-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.pp-nav > a:not(.pp-btn) { font-weight: 600; font-size: 15px; text-decoration: none; color: #fff;
  padding: 6px 2px; border-bottom: 2px solid transparent; }
.pp-nav > a:not(.pp-btn):hover { border-bottom-color: rgba(255, 255, 255, .5); }
.pp-nav > a[aria-current="page"] { border-bottom-color: var(--pp-green); }
@media (min-width: 900px) { .pp-header { position: sticky; top: 0; z-index: 50; } }
@media (max-width: 640px) {
  .pp-header-inner { justify-content: center; }
  .pp-nav { justify-content: center; gap: 8px 16px; }
  .pp-logo img { width: 86px; }
}

/* ---------- buttons ---------- */
.pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--pp-green); color: #fff !important; font-weight: 700; font-size: 14px;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none; border: 0;
  border-radius: 10px; padding: 13px 22px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(55, 202, 55, .28); transition: background .2s, transform .2s; }
.pp-btn:hover { background: var(--pp-green-2); transform: translateY(-1px); }
.pp-btn-sm { padding: 9px 14px; font-size: 13px; }
.pp-btn-ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, .55); box-shadow: none; }
.pp-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.pp-btn[aria-busy="true"] { opacity: .65; pointer-events: none; }

/* ---------- breadcrumbs / hero ---------- */
.pp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 18px 0 14px;
  font-size: 14px; color: var(--pp-muted); }
.pp-crumbs a { color: #fff; text-decoration: none; }
.pp-crumbs a:hover { text-decoration: underline; }
.pp-hero { padding: 56px 0 30px; }
.pp-eyebrow { margin: 0 0 8px; color: #6fe3d4; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.pp-hero h1 { margin: 0; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.pp-hero-sub { margin: 14px 0 0; max-width: 680px; color: var(--pp-muted); font-size: 1.08rem; }

/* ---------- blocks (Help Center / Contact) ---------- */
.pp-block { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--pp-radius); padding: clamp(20px, 3vw, 32px); margin: 0 0 24px; scroll-margin-top: calc(var(--pp-header-h) + 16px); }
.pp-block h2 { margin: 0 0 18px; font-size: 1.35rem; font-weight: 800; }
.pp-block-cta { margin: 22px 0 0; }
.pp-rsg-card { margin: 0 0 24px; padding: 18px 22px; border-radius: var(--pp-radius);
  background: linear-gradient(90deg, rgba(59, 18, 99, .9), rgba(29, 9, 52, .9));
  border: 1px solid rgba(246, 67, 247, .35); }
.pp-rsg-card p { margin: 0; font-size: 1.05rem; }
.pp-rsg-card strong { font-weight: 800; }
.pp-rsg-card a { color: #8cf58c; font-weight: 700; text-underline-offset: 3px; }

.pp-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pp-link-card { position: relative; display: flex; flex-direction: column; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .2s, background .2s; }
.pp-link-card:hover { border-color: rgba(140, 245, 140, .55); background: rgba(255, 255, 255, .07); }
.pp-link-main { display: flex; flex-direction: column; gap: 4px; padding: 16px 44px 16px 18px; text-decoration: none; }
.pp-link-main::after { content: ""; position: absolute; right: 18px; top: 22px; width: 9px; height: 9px;
  border-top: 2px solid #8cf58c; border-right: 2px solid #8cf58c; transform: rotate(45deg); }
.pp-link-title { font-weight: 700; font-size: 1.02rem; color: #fff; }
.pp-link-where { font-size: .9rem; color: var(--pp-muted); }
.pp-link-mail { margin: -8px 18px 14px; font-size: .9rem; color: #8cf58c; }
@media (max-width: 720px) { .pp-links { grid-template-columns: 1fr; } }

.pp-details { margin: 0; display: grid; gap: 14px; }
.pp-details > div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.pp-details > div:last-child { border-bottom: 0; padding-bottom: 0; }
.pp-details dt { font-weight: 700; color: #fff; }
.pp-details dd { margin: 0; color: var(--pp-muted); }
.pp-details dd a { color: #8cf58c; font-weight: 600; }
.pp-details address { font-style: normal; }
@media (max-width: 640px) { .pp-details > div { grid-template-columns: 1fr; gap: 4px; } }
.pp-note { margin: 18px 0 0; color: var(--pp-muted); font-size: .95rem; }
.pp-note a { color: #fff; }

.pp-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; padding-bottom: 32px; }
@media (max-width: 960px) { .pp-contact-grid { grid-template-columns: 1fr; } }

/* ---------- support form ---------- */
.pp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.pp-full { grid-column: 1 / -1; }
.pp-field { display: flex; flex-direction: column; gap: 6px; }
.pp-field label { font-weight: 600; font-size: .95rem; }
.pp-opt { color: var(--pp-muted); font-weight: 400; }
.pp-field input, .pp-field select, .pp-field textarea {
  font: inherit; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px; padding: 11px 12px; width: 100%; }
.pp-field select option { background: #1b1030; color: #fff; }
.pp-field textarea { resize: vertical; min-height: 140px; }
.pp-field input:focus, .pp-field select:focus, .pp-field textarea:focus { border-color: #8cf58c; outline: none; box-shadow: 0 0 0 3px rgba(140, 245, 140, .25); }
.pp-field.invalid input, .pp-field.invalid select, .pp-field.invalid textarea { border-color: #ff7a7a; }
.pp-err { color: #ff9c9c; font-size: .85rem; min-height: 0; }
.pp-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pp-form-fine { margin: 2px 0 0; color: var(--pp-muted); font-size: .88rem; }
.pp-form-fine a { color: #fff; }
.pp-form-msg:empty { display: none; }
.pp-form-msg { padding: 10px 12px; border-radius: 10px; background: rgba(255, 90, 90, .12); border: 1px solid rgba(255, 90, 90, .45); color: #ffd0d0; }
.pp-form-success { grid-column: 1 / -1; padding: 18px; border-radius: 12px; background: rgba(55, 202, 55, .12); border: 1px solid rgba(55, 202, 55, .5); }
.pp-form-success h3 { margin: 0 0 6px; font-size: 1.1rem; }
.pp-form-success p { margin: 0; color: var(--pp-muted); }
@media (max-width: 560px) { .pp-form { grid-template-columns: 1fr; } }

/* ---------- policy documents ---------- */
.pp-doc-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 48px; }
.pp-toc-col { position: sticky; top: calc(var(--pp-header-h) + 20px); max-height: calc(100vh - var(--pp-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; }
.pp-toc > summary::-webkit-details-marker { display: none; }
.pp-toc > summary::after { content: "+"; float: right; font-weight: 800; color: #8cf58c; }
.pp-toc[open] > summary::after { content: "\2212"; }
.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; color: var(--pp-muted); text-decoration: none; }
.policy-toc a:hover { color: #fff; }
.pp-toc-more { margin: 12px 4px 0; font-size: .9rem; }
.pp-toc-more a { color: #8cf58c; }
@media (max-width: 1023px) {
  .pp-doc-layout { grid-template-columns: 1fr; gap: 16px; }
  .pp-toc-col { position: static; max-height: none; overflow: visible; }
}

.pp-doc { background: var(--pp-paper); color: var(--pp-ink); border-radius: var(--pp-radius);
  padding: clamp(22px, 4.5vw, 60px); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); color-scheme: light; }
.pp-doc a { color: var(--pp-purple); }
.policy-body { font-size: 1rem; line-height: 1.68; overflow-wrap: anywhere;
  /* Inter's contextual alternates draw '8.5 x 11' as a multiplication sign;
     policy text must look exactly like the approved document. */
  font-feature-settings: "calt" 0; }
.policy-head { text-align: center; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--pp-rule); }
.policy-eyebrow { margin: 0 0 6px; font-weight: 800; letter-spacing: .12em; font-size: .9rem; color: var(--pp-ink-muted); }
.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(--pp-ink-muted); }
.policy-meta { margin: 12px 0 0; color: var(--pp-ink-muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.policy-version { display: inline-block; margin: 12px 0 0; padding: 2px 12px; border-radius: 999px; background: var(--pp-tint); font-weight: 700; font-size: .9rem; }
.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; }
.doc-sec { scroll-margin-top: 16px; }
.policy-body h2, .policy-body h3 { scroll-margin-top: 16px; }
@media (min-width: 900px) { .doc-sec, .policy-body h2, .policy-body h3 { scroll-margin-top: calc(var(--pp-header-h) + 16px); } }
.doc-sec:target, .doc-sec:has(> h2:target), .doc-sec:has(> h3:target) {
  background: var(--pp-tint); box-shadow: inset 4px 0 0 var(--pp-purple);
  border-radius: 10px; padding: .1em 1.1em .5em; margin: 0 -1.1em; }
.doc-sec:target > h2, .doc-sec:target > h3, .doc-sec > h2:target, .doc-sec > h3:target { margin-top: .9em; }
.doc-control-sec { margin-top: 1.2em; }
.doc-control-sec > h2 { margin-top: 1em; }
.doc-table-wrap { overflow-x: auto; margin: .8em 0 1.1em; border: 1px solid var(--pp-rule); border-radius: 10px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--pp-rule); }
.doc-table tr:last-child th, .doc-table tr:last-child td { border-bottom: 0; }
.doc-table thead th { background: #efe7fb; font-weight: 800; }
.doc-table th[scope="row"] { width: 34%; background: #faf7ff; font-weight: 600; }
.pp-doc-top { margin: 2.2em 0 0; text-align: right; font-size: .95rem; }
@media print {
  .pp-header, .pp-footer, .pp-toc-col, .pp-crumbs, .pp-doc-top { display: none !important; }
  body.pp { background: #fff; color: #000; }
  .pp-doc { box-shadow: none; padding: 0; }
  .pp-doc-layout { display: block; }
}
