/* CPM legal: shared document type (panel + full pages) and the slide-in panel (cpm-legal.js) */
.cpm-legal{--lg-ink:#111617; --lg-text:#3c4547; --lg-muted:#5b6567; --lg-line:#e6e9ea; --lg-red:#d71120; font:400 15px/1.7 Poppins,system-ui,sans-serif; color:var(--lg-text)}
.cpm-legal p{margin:0 0 14px}
.cpm-legal .cpm-legal__lede{font-size:16.5px; line-height:1.65; color:var(--lg-ink); margin-bottom:22px}
.cpm-legal h2{margin:30px 0 12px; padding-top:22px; border-top:1px solid var(--lg-line); font:800 19px/1.25 Poppins,system-ui,sans-serif; letter-spacing:-.01em; color:var(--lg-ink); text-transform:none; scroll-margin-top:16px}
.cpm-legal ul{margin:0 0 16px; padding:0; list-style:none}
.cpm-legal li{position:relative; margin:0 0 9px; padding-left:20px}
.cpm-legal li::before{content:""; position:absolute; left:2px; top:.72em; width:6px; height:6px; border-radius:50%; background:var(--lg-red)}
.cpm-legal strong{color:var(--lg-ink); font-weight:600}
.cpm-legal a{color:var(--lg-red); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px}
.cpm-legal a:hover{color:var(--lg-ink)}

/* ---------- panel ---------- */
.cpm-lg{position:fixed; inset:0; z-index:2147482500; pointer-events:none; visibility:hidden; transition:visibility 0s .5s}
.cpm-lg.is-on{pointer-events:auto; visibility:visible; transition-delay:0s}
.cpm-lg__scrim{position:absolute; inset:0; background:rgba(17,22,23,.38); opacity:0; transition:opacity .45s cubic-bezier(.4,0,.2,1); cursor:pointer}
.cpm-lg.is-on .cpm-lg__scrim{opacity:1}
.cpm-lg__sheet{position:absolute; top:12px; right:12px; bottom:12px; width:min(680px,calc(100vw - 24px)); display:flex; flex-direction:column; overflow:hidden; outline:0;
  background:#fff; border-radius:24px; box-shadow:0 30px 80px rgba(17,22,23,.28),0 0 0 1px rgba(17,22,23,.05);
  opacity:0; transform:translateX(48px); transition:opacity .4s cubic-bezier(.4,0,.2,1),transform .6s cubic-bezier(.16,1,.3,1)}
.cpm-lg.is-on .cpm-lg__sheet{opacity:1; transform:none}
.cpm-lg__head{flex:none; padding:22px 30px 0; border-bottom:1px solid #e6e9ea}
.cpm-lg__top{display:flex; align-items:center; justify-content:space-between}
.cpm-lg__eyebrow{display:inline-flex; align-items:center; gap:8px; font:700 11px/1 Poppins,sans-serif; letter-spacing:.16em; text-transform:uppercase; color:#d71120}
.cpm-lg__eyebrow i{width:7px; height:7px; border-radius:50%; background:#d71120}
.cpm-lg .cpm-lg__x{display:grid; place-items:center; width:42px; height:42px; min-height:0!important; margin:0!important; padding:0!important; border:0!important; border-radius:50%!important; cursor:pointer;
  background:#f1f3f3!important; color:#111617!important; box-shadow:none!important; transition:background-color .25s,color .25s,transform .4s cubic-bezier(.16,1,.3,1)}
.cpm-lg .cpm-lg__x:hover{background:#d71120!important; color:#fff!important; transform:rotate(90deg)}
.cpm-lg__x svg{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round}
.cpm-lg__title{margin:14px 0 14px!important; font:800 clamp(30px,4.2vw,44px)/.95 Poppins,sans-serif!important; letter-spacing:-.035em!important; text-transform:uppercase; color:#111617!important}
.cpm-lg__tabs{display:inline-flex; padding:4px; border-radius:99px; background:#f1f3f3; box-shadow:inset 0 0 0 1px #e6e9ea}
.cpm-lg .cpm-lg__tabs button{height:34px; min-height:0!important; margin:0!important; padding:0 16px!important; border:0!important; border-radius:99px!important; cursor:pointer; background:transparent!important; color:#5b6567!important;
  font:600 13px/1 Poppins,sans-serif!important; letter-spacing:0!important; text-transform:none!important; box-shadow:none!important; transition:background-color .25s,color .25s}
.cpm-lg .cpm-lg__tabs button.is-on{background:#111617!important; color:#fff!important}
.cpm-lg .cpm-lg__tabs button:not(.is-on):hover{color:#111617!important}
.cpm-lg__meta{margin:12px 0 0!important; font:500 12px/1.4 Poppins,sans-serif; color:#8a9496; min-height:17px}
.cpm-lg__toc{display:flex; gap:6px; margin:14px -30px 0; padding:0 30px 14px; overflow-x:auto; scrollbar-width:none; -webkit-mask:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent); mask:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
.cpm-lg__toc::-webkit-scrollbar{display:none}
.cpm-lg__toc a{flex:none; padding:7px 12px; border-radius:99px; background:#fff; box-shadow:inset 0 0 0 1px #e6e9ea; color:#3c4547; font:500 12px/1 Poppins,sans-serif; text-decoration:none; white-space:nowrap; transition:background-color .25s,color .25s,box-shadow .25s}
.cpm-lg__toc a:hover{box-shadow:inset 0 0 0 1px #111617; color:#111617}
.cpm-lg__toc a.is-on{background:#d71120; color:#fff; box-shadow:none}
.cpm-lg__body{flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain; padding:24px 30px 40px; outline:0; scrollbar-width:thin; scrollbar-color:#d0d5d6 transparent}
.cpm-lg__body.is-in > *{animation:cpmLgIn .5s cubic-bezier(.16,1,.3,1)}
@keyframes cpmLgIn{from{opacity:0; transform:translateY(8px)}to{opacity:1; transform:none}}
.cpm-lg__body .cpm-legal h2:first-of-type{margin-top:8px}
.cpm-lg__foot{flex:none; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 30px; border-top:1px solid #e6e9ea; background:#fafbfb; font:500 12.5px/1.3 Poppins,sans-serif; color:#5b6567}
.cpm-lg__foot a{color:#111617; text-decoration:none; font-weight:600}
.cpm-lg__foot a:hover{color:#d71120}
.cpm-lg__full{display:inline-flex; align-items:center; gap:6px; white-space:nowrap}
.cpm-lg__full svg{width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round}
.cpm-lg__skel{display:grid; gap:12px; padding-top:6px}
.cpm-lg__skel i{display:block; height:12px; border-radius:6px; background:linear-gradient(90deg,#f1f3f3 0%,#e6e9ea 50%,#f1f3f3 100%); background-size:200% 100%; animation:cpmLgSk 1.1s linear infinite}
.cpm-lg__skel i:nth-child(1){width:92%} .cpm-lg__skel i:nth-child(2){width:80%} .cpm-lg__skel i:nth-child(3){width:86%} .cpm-lg__skel i:nth-child(4){width:60%} .cpm-lg__skel i:nth-child(5){width:74%}
@keyframes cpmLgSk{to{background-position:-200% 0}}
.cpm-lg__err{font:500 14px/1.6 Poppins,sans-serif; color:#3c4547}
.cpm-lg__err a{color:#d71120}
html.cpm-lg-open #cpm-chat{opacity:0!important; pointer-events:none!important}
@media (max-width:767px){
  .cpm-lg__sheet{top:max(5svh,24px); left:0; right:0; bottom:0; width:auto; border-radius:22px 22px 0 0; transform:translateY(60px)}
  .cpm-lg__head{padding:18px 20px 0}
  .cpm-lg__toc{margin:12px -20px 0; padding:0 20px 12px}
  .cpm-lg__body{padding:20px 20px calc(32px + env(safe-area-inset-bottom,0px))}
  .cpm-lg__foot{padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px)); font-size:12px}
  .cpm-lg__foot > span{display:none}
}
@media (prefers-reduced-motion:reduce){.cpm-lg__sheet,.cpm-lg__scrim{transition-duration:.01ms} .cpm-lg__body.is-in > *{animation:none}}

/* ---------- full pages (/privacy-policy/, /terms-of-use/) ---------- */
.cpm-legal-page{padding:clamp(130px,16vw,190px) 24px 110px; background:#fff}
.cpm-legal-page__in{max-width:780px; margin:0 auto}
.cpm-legal-page__eyebrow{display:inline-flex; align-items:center; gap:8px; font:700 11px/1 Poppins,sans-serif; letter-spacing:.16em; text-transform:uppercase; color:#d71120}
.cpm-legal-page__eyebrow i{width:7px; height:7px; border-radius:50%; background:#d71120}
.cpm-legal-page h1{margin:16px 0 14px; font:800 clamp(44px,7vw,84px)/.92 Poppins,sans-serif; letter-spacing:-.045em; text-transform:uppercase; color:#111617}
.cpm-legal-page__meta{margin:0 0 26px; font:500 13px/1.4 Poppins,sans-serif; color:#8a9496}
.cpm-legal-page__meta a{color:#111617; font-weight:600; text-decoration:none; border-bottom:1px solid #d71120}
.cpm-legal-page__toc{display:flex; flex-wrap:wrap; gap:6px; margin:0 0 30px; padding:0 0 26px; border-bottom:1px solid #e6e9ea}
.cpm-legal-page__toc a{padding:7px 12px; border-radius:99px; box-shadow:inset 0 0 0 1px #e6e9ea; color:#3c4547; font:500 12.5px/1 Poppins,sans-serif; text-decoration:none; transition:box-shadow .25s,color .25s}
.cpm-legal-page__toc a:hover{box-shadow:inset 0 0 0 1px #d71120; color:#d71120}
.cpm-legal-page .cpm-legal h2:first-of-type{border-top:0; padding-top:0}

/* Cyberbook theme styles h1/h2/p/li globally (centred, light, odd sizes) — legal type is locked here */
.cpm-lg .cpm-lg__head,.cpm-lg .cpm-lg__title,.cpm-legal-page .cpm-legal-page__in{text-align:left!important}
.cpm-legal-page h1{font-weight:800!important; font-family:Poppins,system-ui,sans-serif!important; text-align:left!important; color:#111617!important; letter-spacing:-.045em!important; line-height:.92!important; font-size:clamp(44px,7vw,84px)!important}
.cpm-legal p,.cpm-legal li{font:400 15px/1.7 Poppins,system-ui,sans-serif!important; color:#3c4547!important; text-align:left!important; letter-spacing:0!important}
.cpm-legal .cpm-legal__lede{font-size:16.5px!important; line-height:1.65!important; color:#111617!important}
.cpm-legal h2{font:800 19px/1.25 Poppins,system-ui,sans-serif!important; letter-spacing:-.01em!important; color:#111617!important; text-align:left!important; text-transform:none!important}
.cpm-legal strong{font-weight:600!important; color:#111617!important}
.cpm-legal em{font-style:italic}
@media (max-width:767px){ .cpm-legal p,.cpm-legal li{font-size:14.5px!important} .cpm-legal .cpm-legal__lede{font-size:15.5px!important} .cpm-legal h2{font-size:18px!important} }

/* ---------- full pages v2: site-grid width, sticky contents on desktop (theme forces section{padding:120px 0}) ---------- */
section.cpm-legal-page{padding:clamp(150px,13vw,200px) 48px 130px!important; background:#fff}
.cpm-legal-page .cpm-legal-page__in{max-width:1344px; margin:0 auto}
.cpm-legal-page h1{font-size:clamp(46px,8vw,120px)!important; margin:18px 0 18px!important}
.cpm-legal-page .cpm-legal-page__meta{margin:0 0 56px; padding-bottom:28px; border-bottom:1px solid #e6e9ea}
.cpm-legal-page__grid{display:grid; grid-template-columns:260px minmax(0,780px); gap:clamp(48px,7vw,120px); align-items:start}
.cpm-legal-page .cpm-legal-page__toc{position:sticky; top:130px; display:flex; flex-direction:column; flex-wrap:nowrap; gap:2px; margin:0; padding:0; border:0}
.cpm-legal-page__toc > span{margin:0 0 12px; font:700 11px/1 Poppins,sans-serif; letter-spacing:.16em; text-transform:uppercase; color:#8a9496}
.cpm-legal-page .cpm-legal-page__toc a{position:relative; padding:8px 0 8px 18px; border-radius:0; box-shadow:none; color:#5b6567; font:500 13.5px/1.3 Poppins,sans-serif; text-decoration:none; transition:color .25s}
.cpm-legal-page .cpm-legal-page__toc a::before{content:""; position:absolute; left:0; top:50%; width:6px; height:6px; margin-top:-3px; border-radius:50%; background:#d5dadb; transition:background-color .25s,transform .35s cubic-bezier(.16,1,.3,1)}
.cpm-legal-page .cpm-legal-page__toc a:hover{color:#111617; box-shadow:none}
.cpm-legal-page .cpm-legal-page__toc a.is-on{color:#111617; font-weight:600}
.cpm-legal-page .cpm-legal-page__toc a.is-on::before,.cpm-legal-page .cpm-legal-page__toc a:hover::before{background:#d71120; transform:scale(1.3)}
.cpm-legal-page__doc .cpm-legal h2{scroll-margin-top:120px}
.cpm-legal-page__doc .cpm-legal p,.cpm-legal-page__doc .cpm-legal li{font-size:16px!important; line-height:1.75!important}
.cpm-legal-page__doc .cpm-legal .cpm-legal__lede{font-size:19px!important; line-height:1.6!important}
.cpm-legal-page__doc .cpm-legal h2{font-size:22px!important; margin:40px 0 14px!important; padding-top:30px!important}
.cpm-legal-page__doc .cpm-legal h2:first-of-type{border-top:1px solid #e6e9ea!important; padding-top:30px!important}
@media (max-width:1024px){
  section.cpm-legal-page{padding:130px 20px 90px!important}
  .cpm-legal-page .cpm-legal-page__meta{margin-bottom:22px; padding-bottom:0; border:0}
  .cpm-legal-page__grid{grid-template-columns:minmax(0,1fr); gap:0}
  .cpm-legal-page .cpm-legal-page__toc{position:static; flex-direction:row; flex-wrap:wrap; gap:6px; margin:0 0 26px; padding:0 0 24px; border-bottom:1px solid #e6e9ea}
  .cpm-legal-page__toc > span{display:none}
  .cpm-legal-page .cpm-legal-page__toc a{padding:7px 12px; border-radius:99px; box-shadow:inset 0 0 0 1px #e6e9ea; font-size:12.5px}
  .cpm-legal-page .cpm-legal-page__toc a::before{display:none}
  .cpm-legal-page__doc .cpm-legal p,.cpm-legal-page__doc .cpm-legal li{font-size:15px!important}
  .cpm-legal-page__doc .cpm-legal .cpm-legal__lede{font-size:16.5px!important}
  .cpm-legal-page__doc .cpm-legal h2{font-size:19px!important}
  .cpm-legal-page__doc .cpm-legal h2:first-of-type{border-top:0!important; padding-top:0!important; margin-top:28px!important}
}
