/* Hugo Privacy Compliance — bottom bar + privacy-choices link */
.hpc-consent-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: #1a1a1a;
  color: #f5f2ec;
  box-shadow: 0 -2px 12px rgba(0,0,0,.35);
  font-family: Arial, Helvetica, sans-serif;
  animation: hpc-consent-in .25s ease-out;
}
@keyframes hpc-consent-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
.hpc-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hpc-consent-copy {
  flex: 1 1 420px;
  font-size: 14px;
  line-height: 1.5;
}
.hpc-consent-copy a { color: #e0a45e; text-decoration: underline; }
.hpc-consent-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
}
.hpc-consent-btn {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
}
.hpc-consent-accept { background: #C25700; color: #fff; }
.hpc-consent-accept:hover { background: #a84c00; }
.hpc-consent-decline { background: transparent; color: #f5f2ec; border-color: #6b6b6b; }
.hpc-consent-decline:hover { border-color: #f5f2ec; }
.hpc-consent-customize { background: transparent; color: #f5f2ec; border-color: transparent; text-decoration: underline; }
/* per-category panel (1.7.8) */
.hpc-consent-panel { flex: 1 1 100%; border-top: 1px solid #3a3a3a; padding-top: 12px; }
.hpc-consent-panel fieldset { border: 0; margin: 0 0 12px; padding: 0; }
.hpc-consent-panel legend { font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.hpc-consent-opt { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; font-size: 13px; line-height: 1.45; cursor: pointer; }
.hpc-consent-opt input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 auto; }

/* persistent CCPA footer link */
.hpc-privacy-choices {
  position: fixed;
  left: 12px; bottom: 12px;
  z-index: 99998;
  font: 12px/1 Arial, sans-serif;
  color: #666;
  background: rgba(255,255,255,.85);
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.12);
}
.hpc-privacy-choices:hover { color: #1a1a1a; }
/* CCPA opt-out icon next to "Your Privacy Choices" (11 CCR § 7015) */
.hpc-privacy-choices, .hpc-privacy-choices-inline { display: inline-flex; align-items: center; gap: 6px; }
.hpc-optout-icon { width: 2.1em; height: 1em; flex: 0 0 auto; }
.hpc-privacy-choices.hpc-pos-right  { left: auto; right: 12px; }
.hpc-privacy-choices.hpc-pos-center { left: 50%; transform: translateX(-50%); white-space: nowrap; }
/* hide the floating link while the bar itself is open */
.hpc-consent-bar.is-open ~ .hpc-privacy-choices { display: none; }

@media (max-width: 600px) {
  .hpc-consent-inner { padding: 14px; }
  .hpc-consent-actions { flex: 1 1 100%; }
  .hpc-consent-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hpc-consent-bar { animation: none; }
}

/* ---------------------------------------------------------------------
 * Policy pages — [hpc_privacy_policy] / [hpc_cookie_policy] and [hpc_cookie_details].
 * Centered reading column; inherits the theme's fonts and colors.
 * ------------------------------------------------------------------- */
.hpc-policy,
.hpc-cookie-details {
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px;
  line-height: 1.65;
  text-align: left;
}
.hpc-policy .hpc-cookie-details { padding: 0; margin-top: 2.5em; }
.hpc-policy .hpc-cookie-details > h2:first-child { text-align: left; }
.hpc-policy > h1:first-child,
.hpc-policy > h2:first-child,
.hpc-cookie-details > h2:first-child { text-align: center; margin-top: 0; }
.hpc-policy h1, .hpc-policy h2, .hpc-policy h3,
.hpc-cookie-details h2, .hpc-cookie-details h3 { line-height: 1.25; margin: 1.8em 0 .6em; }
.hpc-policy p, .hpc-cookie-details p { margin: 0 0 1em; }
.hpc-policy ul, .hpc-policy ol { margin: 0 0 1em 1.4em; }
.hpc-table-wrap { overflow-x: auto; margin: 1em 0 1.5em; }
.hpc-cookie-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.hpc-cookie-table th,
.hpc-cookie-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(127,127,127,.3); }
.hpc-cookie-table th { font-weight: 600; background: rgba(127,127,127,.1); }
.hpc-cookie-table code { font-size: .9em; }
@media (max-width: 600px) {
  .hpc-policy, .hpc-cookie-details { padding: 32px 16px; }
}

/* Sectioned legal pages */
.hpc-policy .hpc-policy-effective { text-align: center; opacity: .75; margin: -.5em 0 2.5em; font-size: .95em; }
.hpc-policy .hpc-policy-section { margin: 0 0 2em; }
.hpc-policy .hpc-policy-section h2 { margin-top: 1.6em; }
.hpc-policy .hpc-policy-section h3 { font-size: 1.05em; margin: 1.4em 0 .5em; }
.hpc-policy .hpc-cookie-details-table-only { padding: 0; margin: 0; }


/* privacy request form on the Privacy Policy page (1.7.7) */
.hpc-req { margin: 24px 0; padding: 20px; border: 1px solid rgba(0,0,0,.15); border-radius: 6px; max-width: 640px; }
.hpc-req h3 { margin-top: 0; }
.hpc-req label { font-weight: 600; }
.hpc-req input[type=text], .hpc-req input[type=email], .hpc-req select, .hpc-req textarea { width: 100%; max-width: 100%; box-sizing: border-box; padding: 8px; }
.hpc-req .hpc-req-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.hpc-req-submit { cursor: pointer; border: 0; border-radius: 4px; padding: 10px 22px; background: #C25700; color: #fff; font-weight: 600; }
.hpc-req-msg { padding: 10px 14px; border-radius: 4px; border-left: 4px solid; }
.hpc-req-ok { background: #eef4ff; border-color: #2557a7; }
.hpc-req-err { background: #fff4e5; border-color: #C25700; }
