/* Legal page (legal.html) and blocked page (blocked.html).
   Builds on app.css: colours, the #app background, .title, .lead, .panel and .btn-ghost.
   Both pages use <body class="entered ..."> so app.css shows #app unblurred and lets the page scroll. */

/* ---------- Legal page ---------- */
.legal-page #app{min-height:100vh}
.lg{width:min(840px,100%);margin:0 auto;padding:max(16px,env(safe-area-inset-top)) 16px max(56px,env(safe-area-inset-bottom))}
.lg a{color:#f6c3dc;text-decoration:underline;text-decoration-color:rgba(246,195,220,.45);text-underline-offset:3px;overflow-wrap:anywhere}
.lg a:hover{text-decoration-color:currentColor}
.lg a:focus-visible{outline:2px solid #fff;outline-offset:3px;border-radius:4px}

.lg-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:4px}
.lg .lg-brand{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:clamp(24px,3vw,30px);line-height:1;color:#fbe3ee;text-decoration:none;letter-spacing:.01em;white-space:nowrap}
.lg-brand em{font-style:italic;font-weight:500;color:var(--pink)}
.lg .btn-ghost{text-decoration:none;color:var(--ink);white-space:nowrap}

.lg-hero{text-align:center;margin:clamp(30px,7vh,64px) 0 clamp(20px,3vh,28px)}
.lg-hero .title{font-size:clamp(38px,6vw,60px)}
.lg-updated{margin-top:12px;font-size:13px;letter-spacing:.04em;color:rgba(255,236,246,.62)}

.lg-toc{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:clamp(20px,3vh,30px)}
.lg .lg-toc a{display:inline-flex;align-items:center;min-height:40px;padding:8px 16px;border-radius:999px;font-size:14px;font-weight:700;color:var(--ink);text-decoration:none;
  background:rgba(255,255,255,.05);border:1.5px solid rgba(243,195,217,.38);transition:background .2s,border-color .2s}
.lg .lg-toc a:hover{background:rgba(255,255,255,.1);border-color:rgba(243,195,217,.7)}

.lg-sec{margin-top:18px;scroll-margin-top:16px;padding:clamp(24px,4vw,44px) clamp(18px,4vw,44px);border-radius:28px;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));border:1px solid var(--line);
  box-shadow:0 30px 80px rgba(8,4,24,.4),inset 0 1px 0 rgba(255,255,255,.12);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.lg-sec:target{border-color:rgba(243,195,217,.55)}
.lg-sec h2{display:flex;align-items:center;gap:14px;font-family:'Cormorant Garamond',serif;font-weight:600;font-size:clamp(29px,3.8vw,40px);line-height:1.1;color:#fbe3ee}
.lg-sec h2::before{content:"";flex:none;width:13px;height:13px;transform:rotate(45deg);border-radius:3px;border:1.5px solid #fff;
  background:linear-gradient(135deg,#fff,#f3b6cf 50%,#c98adb);box-shadow:0 0 10px rgba(255,190,230,.8)}
.lg-sec h3{margin-top:30px;font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#f5cf8e}
.lg-sec p,.lg-sec li,.lg-sec dd{font-size:16px;line-height:1.68;color:#eadcef}
.lg-sec p{margin-top:12px}
.lg-sec h2 + p{margin-top:16px}
.lg-sec strong{color:#fff;font-weight:700}
.lg-sec code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86em;padding:1px 6px;border-radius:6px;background:rgba(20,12,40,.55);border:1px solid var(--line);color:#ffe3ec;white-space:nowrap}

.lg-list{list-style:none;display:grid;gap:10px;margin-top:14px}
.lg-list li{position:relative;padding-left:24px}
.lg-list li::before{content:"";position:absolute;left:4px;top:.66em;width:7px;height:7px;transform:rotate(45deg);border:1.5px solid var(--pink);border-radius:1px}

/* numbered house rules, so a report can name the rule it is about */
.lg-rules{list-style:none;counter-reset:rule;display:grid;gap:10px;margin-top:18px}
.lg-rules li{counter-increment:rule;position:relative;padding:12px 16px 12px 58px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid var(--line)}
.lg-rules li::before{content:counter(rule);position:absolute;left:14px;top:12px;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;
  font-size:14px;font-weight:800;color:#3a1d45;background:linear-gradient(135deg,#ffe3ec,#f3b6cf 55%,#d59ad6);box-shadow:0 0 12px rgba(243,182,207,.35)}

/* what we keep: a table on wide screens, stacked rows on phones */
.lg-table{width:100%;border-collapse:collapse;margin-top:16px}
.lg-table th,.lg-table td{text-align:left;vertical-align:top;padding:14px 12px;border-bottom:1px solid rgba(243,195,217,.14);font-size:15px;line-height:1.55;color:#eadcef}
.lg-table thead th{padding-top:0;font-size:11.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--line)}
.lg-table tbody th{width:24%;font-weight:700;color:#fff}
.lg-table td:last-child{width:23%;color:var(--muted)}
.lg-table tr:last-child > *{border-bottom:0}
.lg-table :is(th,td):first-child{padding-left:0}
.lg-table :is(th,td):last-child{padding-right:0}

.lg-dl{display:grid;grid-template-columns:max-content 1fr;gap:12px 18px;margin-top:16px}
.lg-dl dt{padding-top:3px}
.lg-dl dd{margin:0}

.lg-foot{margin-top:36px;text-align:center;font-size:14px;line-height:1.7;color:var(--muted)}
.lg-foot span{margin:0 8px;opacity:.6}
.pricing-amount{font-size:clamp(24px,4vw,34px)!important;color:#fff!important}

@media (max-width:640px){
  .lg-top .btn-ghost.small{padding:8px 14px}
  .lg-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .lg-table,.lg-table tbody,.lg-table tr,.lg-table th,.lg-table td{display:block;width:auto}
  .lg-table tbody tr{padding:14px 0;border-bottom:1px solid rgba(243,195,217,.14)}
  .lg-table tbody tr:last-child{border-bottom:0}
  .lg-table tbody th,.lg-table td,.lg-table td:last-child{width:auto;padding:0;border:0}
  .lg-table tbody th{font-size:16px;margin-bottom:4px}
  .lg-table td + td{margin-top:6px}
  .lg-table td:last-child::before{content:attr(data-label);margin-right:8px;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#f5cf8e}
  .lg-dl{grid-template-columns:1fr;gap:4px}
  .lg-dl dd + dt{margin-top:10px}
  .lg-rules li{padding-left:54px}
}
@media (prefers-reduced-motion:no-preference){
  html:has(.legal-page){scroll-behavior:smooth}
}

/* ---------- Blocked page ---------- */
.blocked-page .panel{text-align:center}
.bl-lock{width:92px;margin:0 auto 20px;filter:drop-shadow(0 12px 22px rgba(240,150,200,.35))}
.bl-lock svg{display:block;width:100%}
.blocked-page .btn-ghost{margin-top:26px;text-decoration:none}
.bl-card{margin-top:30px;padding-top:22px;border-top:1px solid rgba(255,255,255,.12)}
.bl-card .lead{font-size:15px}
.blocked-page .bl-card .btn-ghost{margin-top:14px}
.bl-msg{margin-top:12px;font-size:14px;font-weight:700;color:#9ff0c4}
.bl-msg:empty{display:none}
/* withdrawing the consent and deleting the account (blocked.js) */
.bl-delete{margin-top:24px}
.bl-delete .lead{text-align:center}
.blocked-page .bl-delete .btn-ghost{margin-top:4px;justify-self:center}
.bl-msg{outline:none}

/* Match the section spacing used by the member screens. */
.lg-sec{margin-top:32px}
.lg-sec h3{margin-top:32px}
.lg-sec h3+p,.lg-sec h3+ul,.lg-sec h3+ol,.lg-sec h3+table,.lg-sec h3+dl{margin-top:16px}

.lg-count{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px}
