/* Shared privacy/cookie controls for the main site, presentation and policy page. */
.pb-footer-privacy {
  max-width:1200px;
  margin:0 auto;
  padding:0 24px 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px 22px;
  font-size:13px;
}
.pb-policy-link,
.pb-privacy-settings,
.pb-about-privacy-link,
.pb-about-privacy-settings {
  color:inherit;
  font:inherit;
  background:none;
  border:0;
  padding:8px 2px;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}
.pb-consent {
  position:fixed;
  z-index:20050;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  width:min(920px,calc(100% - 32px));
  box-sizing:border-box;
  display:grid;
  grid-template-columns:1fr auto;
  gap:22px;
  align-items:center;
  padding:20px 22px;
  border:1px solid rgba(17,17,17,.26);
  border-radius:20px;
  background:rgba(255,255,255,.98);
  color:#111;
  box-shadow:0 12px 48px rgba(0,0,0,.18);
  font-family:Arial,Helvetica,sans-serif;
}
.pb-consent[hidden] { display:none !important; }
.pb-consent h2 { margin:0 0 7px; font-size:18px; line-height:1.2; color:#111; }
.pb-consent p { margin:0; font-size:14px; line-height:1.5; color:#333; }
.pb-consent a { color:#111; text-decoration:underline; text-underline-offset:3px; }
.pb-consent__actions { display:flex; gap:10px; align-items:center; }
.pb-consent__actions button {
  min-height:44px;
  border:1px solid #111;
  border-radius:999px;
  padding:10px 16px;
  background:#fff;
  color:#111;
  font:600 13px/1.2 Arial,Helvetica,sans-serif;
  white-space:nowrap;
  cursor:pointer;
}
.pb-consent__actions .pb-consent-accept { background:#111; color:#fff; }
.pb-consent :focus-visible,
.pb-policy-link:focus-visible,
.pb-privacy-settings:focus-visible,
.pb-about-privacy-link:focus-visible,
.pb-about-privacy-settings:focus-visible { outline:3px solid currentColor; outline-offset:3px; }

/* Presentation footer privacy controls. */
.pb-about-privacy {
  display:flex;
  flex-wrap:wrap;
  gap:3px 10px;
  margin-top:3px;
  font-size:10px;
  line-height:1.2;
  color:inherit;
}
.pb-about-privacy a,
.pb-about-privacy button { color:inherit; opacity:.78; }
.pb-about-privacy a:hover,
.pb-about-privacy button:hover { opacity:1; }

@media (max-width:767px) {
  .pb-consent {
    bottom:calc(76px + env(safe-area-inset-bottom,0px));
    grid-template-columns:1fr;
    gap:14px;
    padding:18px;
    max-height:calc(100svh - 100px - env(safe-area-inset-bottom,0px));
    overflow:auto;
  }
  .pb-consent__actions { display:grid; grid-template-columns:1fr; }
  .pb-consent__actions button { width:100%; white-space:normal; }
}

@media (orientation:landscape) and (max-height:650px) {
  .pb-consent {
    left:12px;
    right:12px;
    bottom:10px;
    transform:none;
    width:auto;
    grid-template-columns:1fr auto;
    padding:12px 14px;
    border-radius:14px;
  }
  .pb-consent h2 { font-size:15px; }
  .pb-consent p { font-size:12px; }
  .pb-consent__actions button { min-height:38px; padding:8px 12px; font-size:12px; }
}


/* v0.3.8 — presentation legal controls on mobile.
   Keep policy/cookie links in a dedicated bottom row instead of sharing the
   same vertical space with scene progress and navigation controls. */
@media (max-width:1000px), (max-height:650px) and (orientation:landscape) {
  #presentation .footer {
    box-sizing:border-box;
    padding-bottom:28px;
  }
  #presentation .footer-context {
    padding-bottom:0;
  }
  #presentation .pb-about-privacy {
    position:absolute;
    left:0;
    bottom:0;
    z-index:14;
    margin:0;
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    gap:14px;
    font-size:10px;
    line-height:1.2;
    white-space:nowrap;
    pointer-events:auto;
  }
  #presentation .pb-about-privacy a,
  #presentation .pb-about-privacy button {
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:5px 0;
    opacity:.86;
    pointer-events:auto;
  }
  #presentation .progress-group {
    bottom:28px !important;
  }
}

@media (orientation:portrait) and (max-width:1000px) {
  html.portrait #presentation .footer {
    height:104px;
    padding-bottom:28px;
  }
  html.portrait #presentation .pb-about-privacy {
    bottom:0;
  }
}

@media (orientation:landscape) and (max-height:650px) {
  #presentation .footer {
    bottom:8px !important;
    padding-bottom:26px;
  }
  #presentation .progress-group {
    bottom:26px !important;
  }
  #presentation .pb-about-privacy {
    bottom:0;
    font-size:9px;
    gap:12px;
  }
  #presentation .pb-about-privacy a,
  #presentation .pb-about-privacy button {
    min-height:24px;
    padding:3px 0;
  }
}
