/*! livepow-web lp-site.css: site-wide extras loaded on every page by lpw_head_common(): cookie bar (lp-consent.js),
 * contact dialog (lp-contact.js), policy pages (privacy.php, terms.php, contact.php). Uses the theme tokens of lp.css,
 * so light and dark come for free.
 */

/* ---- footer button that looks like a link */
.lp-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--lp-link); cursor: pointer; text-decoration: none; }
.lp-linkbtn:hover, .lp-linkbtn:focus-visible { text-decoration: underline; }

/* ---- cookie bar: fixed to the bottom, so it never pushes or shifts page content */
.lp-cc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  padding: 8px var(--lp-gutter) calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--lp-surface); color: var(--lp-text); font-size: .85rem; line-height: 1.3;
  border-top: 1px solid var(--lp-border-2); box-shadow: 0 -2px 10px rgba(0, 0, 0, .18);
}
.lp-cc-t { text-align: center; }
.lp-cc-btns { display: inline-flex; gap: 8px; }
.lp-cc-b { font: inherit; font-weight: 700; padding: 5px 16px; min-height: 32px; border-radius: 999px; cursor: pointer; border: 1px solid var(--lp-blue-2); }
.lp-cc-yes { background: var(--lp-blue-2); color: #fff; }
.lp-cc-yes:hover { background: var(--lp-blue-2h); }
.lp-cc-no { background: transparent; color: var(--lp-link); }
.lp-cc-no:hover { background: var(--lp-hover); }
.lp-cc-b:focus-visible { outline: 2px solid var(--lp-link); outline-offset: 2px; }
@media (max-width: 480px) { .lp-cc { font-size: .8rem; gap: 4px 10px; padding-top: 6px; } .lp-cc-b { padding: 4px 14px; min-height: 30px; } }

/* ---- menu additions (policy links) */
.lp-menu-legal { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 4px 12px 6px; }
.lp-menu-legal a, .lp-menu-legal button { font: inherit; font-size: .75rem; color: var(--lp-muted); background: none; border: 0; padding: 3px 0; cursor: pointer; text-decoration: none; }
.lp-menu-legal a:hover, .lp-menu-legal button:hover { color: var(--lp-link); text-decoration: underline; }

/* ---- contact dialog (native <dialog>) */
dialog.lp-ct {
  width: min(460px, calc(100vw - 20px)); max-height: calc(100vh - 20px); padding: 0; border: 0; border-radius: 10px;
  background: var(--lp-surface); color: var(--lp-text); box-shadow: 0 10px 40px rgba(0, 0, 0, .45); overflow: auto;
}
dialog.lp-ct::backdrop { background: rgba(0, 0, 0, .55); }
.lp-ct-in { padding: 14px 16px 16px; }
.lp-ct-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.lp-ct-head h2 { margin: 0; font-size: 1.15rem; color: var(--lp-accent); }
.lp-ct-x { font-size: 1.8rem; line-height: 1; background: none; border: 0; color: var(--lp-muted); cursor: pointer; padding: 0 4px; }
.lp-ct-x:hover { color: var(--lp-text); }
.lp-ct-lead { margin: 0 0 8px; font-size: .9rem; }
.lp-ct-form label { display: block; margin: 10px 0 3px; font-size: .85rem; font-weight: 700; }
.lp-ct-form input[type=text], .lp-ct-form input[type=email], .lp-ct-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; /* 16px: no zoom on iOS focus */
  padding: 8px 10px; background: var(--lp-input); color: var(--lp-input-text); border: 1px solid var(--lp-border-2); border-radius: 6px;
}
.lp-ct-form textarea { resize: vertical; min-height: 110px; }
.lp-ct-form input:focus, .lp-ct-form textarea:focus { outline: 2px solid var(--lp-blue-2); outline-offset: 0; background: var(--lp-input-focus); }
.lp-ct-form [aria-invalid=true] { border-color: #d33; }
.lp-ct-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.lp-ct-status { min-height: 1.3em; margin: 8px 0 0; font-size: .85rem; color: var(--lp-muted); }
.lp-ct-status.bad { color: #c22; font-weight: 700; }
html[data-theme=dark] .lp-ct-status.bad { color: #ff8a8a; }
.lp-ct-btns { display: flex; gap: 8px; margin-top: 10px; }
.lp-ct-fine { margin: 10px 0 0; font-size: .75rem; }
.lp-ct-done { margin: 10px 0 0; font-weight: 700; }

/* ---- policy pages */
.lp-policy { max-width: 820px; margin: 0 auto; padding: 14px 16px 20px; line-height: 1.55; }
.lp-policy h1 { font-size: 1.6rem; margin: 4px 0 4px; color: var(--lp-accent); }
.lp-policy h2 { font-size: 1.15rem; margin: 22px 0 6px; color: var(--lp-accent); scroll-margin-top: 60px; }
.lp-policy h3 { font-size: 1rem; margin: 14px 0 4px; }
.lp-policy p, .lp-policy ul { margin: 6px 0; }
.lp-policy ul { padding-left: 1.3em; }
.lp-policy li { margin: 3px 0; }
.lp-policy table { border-collapse: collapse; width: 100%; font-size: .85rem; margin: 8px 0; }
.lp-policy th, .lp-policy td { text-align: left; padding: 6px 8px; border: 1px solid var(--lp-border-2); vertical-align: top; }
.lp-policy th { background: var(--lp-th); color: var(--lp-th-text); }
.lp-policy .lp-draft { padding: 8px 12px; margin: 6px 0 14px; border-radius: 6px; background: var(--lp-warn-bg); color: var(--lp-warn-text); font-size: .85rem; }
.lp-policy .lp-scroll-x { overflow-x: auto; }
