/* =====================================================================
   CONNECT FOOTER — "PRIVACY SETTINGS" CONTROL (P-3)
   Task: CC-P3-FOOTER-PRIVACY-20261130-01 · 2026-11-30
   Design: owner-approved r4 (D3 2026-11-30), branch task/t_18465c3b @ 705c719b,
   05-design/mockups/footer-privacy-settings/2026-11-29/r4/.

   Styles only the new control and its fallback note. It owns nothing else in
   the footer: logo, grid, spacing, links and colours stay with the surface's
   own stylesheet and connect-footer.css / connect-checkout-footer.css.

   The control is a text-only <button> that reads as one more Legal link:
   same face, size steps (16.8 / 16 at <=600 / 15.2 at <=360, as .foot-col a),
   colour, gold hover and focus ring. Its text starts at the column edge and
   wraps naturally like the neighbouring links (owner-accepted). The decorative
   shield icon of r4 was removed at the owner's request (2026-11-30).

   Why 16.8 and not the .95rem in connect-home.css / connect-shop.css: every
   footer surface also loads the shared owner assets/css/connect-footer.css
   (deployed on STAGING and LIVE, md5 7995a092…; not in this repo tree), whose
   `body footer.bg-surface .foot-col a{font-size:16.8px}` + 16 / 15.2 steps
   out-rank those page rules. Checkout's connect-checkout-footer.css carries
   the same values. Measured equal to the neighbouring link on 14 templates x
   7 viewports x 3 engines. Single Post is the exception (below).

   v2.2 (2026-12-01, owner-approved correction): LIVE does not load
   connect-footer.css on most templates, so its Legal links keep the surface's
   own .95rem / 1.6 type there (measured: 15.2px vs this control's 16.8px on 10
   of 14 LIVE templates). connect-footer-privacy.js now copies the neighbouring
   Legal link's computed font-size and line-height onto the control ONLY when
   they differ (data-cnx-type="link"), and the 44px hit area below follows the
   copied line box (--cnx-lb). Where the values already match (every STAGING
   template, LIVE Cart / Checkout / My Account / Single Post) nothing changes.

   Selectors are (0,2,2)+, above the parent theme's button rules (Woostify
   button / button:hover), so the control looks the same on every surface.
   ===================================================================== */
body footer.bg-surface .cnx-privacy-trigger{
  display:inline-block;max-width:100%;width:auto;height:auto;min-height:0;
  margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;
  -webkit-appearance:none;appearance:none;
  color:var(--w70,#64492B);font-family:'Outfit',sans-serif;font-size:16.8px;font-weight:400;
  line-height:1.75;letter-spacing:normal;text-transform:none;text-align:left;text-decoration:none;
  cursor:pointer;transition:color .2s}
/* 44x44 minimum target (Codex P1, 2026-11-30) with no visible or layout change: the
   ::before is an empty, transparent float at the start of the control, 44px tall and as
   wide as the text, pulled up by half of (44px - line box) so the target is centred on
   the text. Its margins (right -100%, bottom -(44px - top offset)) give it no width and
   no height in the flow, so text position, wrapping, the focus ring and footer spacing
   are unchanged, and the control is not positioned (no sub-pixel repaint of its text).
   It reaches into the empty gap between list items, never onto the neighbouring link:
   it extends 7.3 / 8 / 8.7px (9.84px on Single Post) beyond the text, and the free space
   between the neighbouring link's text and the control's text is about 17px (measured on
   every template). Taps on it are taps on the button.
   Offsets = (44px - line box) / 2 for each type step below: 16.8px x 1.75 = 29.4px;
   16px x 1.75 = 28px; 15.2px x 1.75 = 26.6px; Single Post .95rem x 1.6 = 24.32px. */
body footer.bg-surface .cnx-privacy-trigger::before{
  content:"";float:left;width:100%;height:44px;margin:-7.3px -100% -36.7px 0;
  padding:0;border:0;background:none}
/* v2.2: type copied from the neighbouring Legal link (see the header). The target stays 44px tall and centred on
   the copied line box: top offset = (line box - 44px) / 2, bottom = -(line box + 44px) / 2. !important outranks the
   per-breakpoint and Single Post offsets, which assume the stylesheet's own type. */
body footer.bg-surface .cnx-privacy-trigger[data-cnx-type="link"]::before{
  margin-top:calc((var(--cnx-lb) - 44px) / 2)!important;margin-bottom:calc((var(--cnx-lb) + 44px) / -2)!important}
body footer.bg-surface .cnx-privacy-trigger:hover,
body footer.bg-surface .cnx-privacy-trigger:focus,
body footer.bg-surface .cnx-privacy-trigger:active{background:none;box-shadow:none;border:0}
body footer.bg-surface .cnx-privacy-trigger:hover{color:var(--neon,#C8902F)}
body footer.bg-surface .cnx-privacy-trigger:focus-visible{outline:2.5px solid #AB5E2A;outline-offset:3px;border-radius:4px}
body footer.bg-surface .cnx-privacy-fallback{
  margin:14px 0 0;max-width:264px;color:var(--w50,#7F5E39);
  font-family:'Outfit',sans-serif;font-size:13px;line-height:1.55}
body footer.bg-surface .cnx-privacy-fallback[hidden]{display:none}
@media(max-width:600px){
  body footer.bg-surface .cnx-privacy-trigger{font-size:16px}
  body footer.bg-surface .cnx-privacy-trigger::before{margin-top:-8px;margin-bottom:-36px}
}
@media(max-width:360px){
  body footer.bg-surface .cnx-privacy-trigger{font-size:15.2px}
  body footer.bg-surface .cnx-privacy-trigger::before{margin-top:-8.7px;margin-bottom:-35.3px}
}
/* Single Post keeps its own LIVE-canonical blog footer typography
   (connect-single-post.css: links .95rem / 1.6, every .sp-shell button forced
   to Space Grotesk with !important). Match the neighbouring links there. */
body.single-post .sp-shell footer.bg-surface .cnx-privacy-trigger{
  font-family:'Outfit',sans-serif!important;font-size:.95rem!important;line-height:1.6!important}
body.single-post .sp-shell footer.bg-surface .cnx-privacy-trigger::before{margin-top:-9.84px;margin-bottom:-34.16px}
@media(prefers-reduced-motion:reduce){
  body footer.bg-surface .cnx-privacy-trigger{transition:none}
}
