/* Shared site footer, Cookie Settings dialog and public legal pages.
   Footer and dialog rules are scoped (footer.site-footer, .ha-consent) so they render the same on
   index.html, whose global element rules (footer, nav, label) would otherwise reach them. */
:root {
  --ha-bg: #060606;
  --ha-pink: #ff259e;
  --ha-pink-soft: #ff7cc4;
  --ha-text: #e9e6e8;
  --ha-muted: #a9a3a7;
  --ha-line: #2a2429;
  --ha-serif: Georgia, "Times New Roman", serif;
  --ha-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Starfield tile: tiny stars of varied size and brightness on a repeating 320px tile (one image layer). */
  --ha-stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Ccircle cx='22' cy='34' r='0.6' fill='%23fff' fill-opacity='0.85'/%3E%3Ccircle cx='87' cy='142' r='0.5' fill='%23fff' fill-opacity='0.6'/%3E%3Ccircle cx='151' cy='58' r='0.8' fill='%23fff' fill-opacity='0.8'/%3E%3Ccircle cx='213' cy='211' r='0.5' fill='%23fff' fill-opacity='0.55'/%3E%3Ccircle cx='276' cy='96' r='0.6' fill='%23fff' fill-opacity='0.7'/%3E%3Ccircle cx='44' cy='263' r='0.8' fill='%23ffd6ec' fill-opacity='0.7'/%3E%3Ccircle cx='121' cy='298' r='0.5' fill='%23fff' fill-opacity='0.5'/%3E%3Ccircle cx='189' cy='167' r='0.55' fill='%23fff' fill-opacity='0.65'/%3E%3Ccircle cx='301' cy='247' r='1' fill='%23fff' fill-opacity='0.75'/%3E%3Ccircle cx='248' cy='18' r='0.5' fill='%23fff' fill-opacity='0.45'/%3E%3Ccircle cx='9' cy='189' r='0.5' fill='%23fff' fill-opacity='0.55'/%3E%3Ccircle cx='168' cy='236' r='0.45' fill='%23fff' fill-opacity='0.4'/%3E%3Ccircle cx='62' cy='104' r='0.4' fill='%23fff' fill-opacity='0.35'/%3E%3Ccircle cx='232' cy='281' r='0.6' fill='%23fff' fill-opacity='0.5'/%3E%3Ccircle cx='118' cy='12' r='0.45' fill='%23fff' fill-opacity='0.4'/%3E%3C/svg%3E");
}

/* ---- Shared footer ------------------------------------------------------------------------- */
footer.site-footer {
  display: block;
  margin: 0;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 7vw, 128px) 28px;
  color: var(--ha-text);
  background-color: var(--ha-bg);
  background-image: var(--ha-stars), linear-gradient(180deg, #0c0a0c, #060606 60%);
  background-size: 320px 320px, 100% 100%;
  border-top: 1px solid var(--ha-line);
  font: 14px/1.5 var(--ha-sans);
  text-align: left;
}
footer.site-footer .sf-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}
footer.site-footer .sf-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0 }
/* Footer logo: same mark as the header logo, drawn in white for the dark footer. */
footer.site-footer .sf-name { display: inline-flex; color: #fff; text-decoration: none }
footer.site-footer .sf-name:hover { text-decoration: none; opacity: .85 }
footer.site-footer .sf-logo { display: block; width: 203px; height: 36px }
footer.site-footer .sf-logo text { font-family: ui-rounded, "Avenir Next", "Trebuchet MS", sans-serif; font-size: 30px; font-weight: 750; letter-spacing: -.045em; fill: currentColor }
footer.site-footer .sf-tag { margin: 0; color: var(--ha-muted); font-size: 14px }
footer.site-footer .sf-head { margin: 0 0 2px; font: 600 11px/1.5 var(--ha-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ha-pink) }
footer.site-footer a,
footer.site-footer button {
  padding: 0;
  border: 0;
  background: none;
  color: #cfc9cd;
  font: 14px/1.5 var(--ha-sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
footer.site-footer a:hover,
footer.site-footer button:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px }
footer.site-footer a:focus-visible,
footer.site-footer button:focus-visible { outline: 2px solid var(--ha-pink); outline-offset: 3px; border-radius: 2px }
footer.site-footer .sf-mail { color: var(--ha-pink-soft); overflow-wrap: anywhere }
footer.site-footer .sf-base {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1180px;
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--ha-line);
  color: #8d878b;
  font-size: 12.5px;
}
footer.site-footer .sf-base p { margin: 0 }
@media (max-width: 860px) {
  footer.site-footer .sf-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px }
  footer.site-footer .sf-brand { grid-column: 1 / -1 }
}
@media (max-width: 420px) {
  footer.site-footer a, footer.site-footer button { padding-block: 3px } /* larger tap targets */
  footer.site-footer .sf-grid { column-gap: 14px }
}
@media (max-width: 340px) {
  footer.site-footer .sf-grid { grid-template-columns: 1fr }
}

/* ---- Cookie Settings dialog ---------------------------------------------------------------- */
.ha-consent {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  overflow: auto;
  margin: auto;
  padding: 0;
  border: 1px solid #3a3038;
  border-radius: 18px;
  color: var(--ha-text);
  background-color: #0b090b;
  background-image: var(--ha-stars), radial-gradient(ellipse at 50% 0%, #1d1119, #0b090b 70%);
  background-size: 320px 320px, 100% 100%;
  box-shadow: 0 24px 80px #000c;
  font: 15px/1.55 var(--ha-sans);
  text-align: left;
}
.ha-consent::backdrop { background: #000a }
.ha-consent .hc-body { padding: 26px 26px 22px }
.ha-consent .hc-kicker { margin: 0 0 6px; font: 600 11px/1.5 var(--ha-sans); letter-spacing: .14em; color: var(--ha-pink) }
.ha-consent h2 { margin: 0 0 10px; font: italic 500 28px/1.15 var(--ha-serif); letter-spacing: -.02em; color: #fff }
.ha-consent p { margin: 0 0 12px; color: #d4ced2 }
.ha-consent a { color: var(--ha-pink-soft) }
.ha-consent .hc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px }
.ha-consent .hc-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px }
/* "Refuse all" and "Accept all" share one style so neither is visually favoured. */
.ha-consent .hc-btn {
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid var(--ha-pink);
  border-radius: 999px;
  background: #1b0f17;
  color: #fff;
  font: 600 15px/1.2 var(--ha-sans);
  cursor: pointer;
}
.ha-consent .hc-btn:hover { background: #2c1424 }
.ha-consent .hc-btn.hc-quiet { border-color: #4a4048; background: transparent; color: #e2dce0; font-weight: 500 }
.ha-consent .hc-btn.hc-quiet:hover { background: #1a161a }
.ha-consent button:focus-visible,
.ha-consent input:focus-visible,
.ha-consent a:focus-visible { outline: 2px solid #fff; outline-offset: 2px }
.ha-consent .hc-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; padding: 0;
  border: 1px solid #3a3038; border-radius: 50%; background: #120e11; color: #ddd; font: 20px/1 var(--ha-sans); cursor: pointer;
}
.ha-consent .hc-options { display: grid; gap: 10px; margin-top: 16px }
.ha-consent label.hc-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 4px 12px;
  padding: 12px 14px;
  border: 1px solid var(--ha-line);
  border-radius: 12px;
  background: #0f0c0f;
  font-weight: 400;
  cursor: pointer;
}
.ha-consent label.hc-option.hc-locked { cursor: default }
.ha-consent .hc-option input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ha-pink) }
.ha-consent .hc-option strong { color: #fff; font-weight: 600 }
.ha-consent .hc-option .hc-badge { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #241a21; color: var(--ha-pink-soft); font-size: 11.5px; font-weight: 600; letter-spacing: .03em }
.ha-consent .hc-option small { grid-column: 2; color: var(--ha-muted); font-size: 13px; line-height: 1.5 }
.ha-consent .hc-saved { min-height: 1.4em; margin: 12px 0 0; font-size: 13px; color: var(--ha-muted) }
@media (max-width: 420px) {
  .ha-consent .hc-body { padding: 22px 18px 18px }
  .ha-consent .hc-actions, .ha-consent .hc-secondary { grid-template-columns: 1fr }
}

/* ---- Public legal pages -------------------------------------------------------------------- */
body.legal-page {
  margin: 0;
  min-height: 100vh;
  color: var(--ha-text);
  background-color: var(--ha-bg);
  background-image: var(--ha-stars), radial-gradient(ellipse 90% 60% at 50% -10%, #1a1018 0%, transparent 60%);
  background-size: 320px 320px, 100% 100%;
  background-attachment: fixed, fixed;
  font: 16px/1.7 var(--ha-sans);
  -webkit-text-size-adjust: 100%;
}
body.legal-page *, body.legal-page *::before, body.legal-page *::after { box-sizing: border-box }
.legal { max-width: 820px; margin: 0 auto; padding: 28px clamp(18px, 5vw, 32px) 72px }
.legal-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #3a3038; border-radius: 999px; background: #0e0b0dcc; color: #f0eaee; font-size: 14px; text-decoration: none }
.legal-back:hover { border-color: var(--ha-pink); color: #fff }
.legal-back:focus-visible, .legal a:focus-visible, .legal button:focus-visible { outline: 2px solid var(--ha-pink); outline-offset: 3px }
.legal-head { margin: clamp(32px, 6vw, 56px) 0 28px }
.legal-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #c9c3c7 }
.legal-kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ha-pink) }
.legal h1 { margin: 0; font: italic 500 clamp(36px, 6vw, 58px)/1.08 var(--ha-serif); letter-spacing: -.03em; color: #fff }
.legal-updated { margin: 12px 0 0; color: var(--ha-muted); font-size: 14px }
.legal-lead { font-size: 18px; color: #ded8dc }
.legal h2 { margin: 44px 0 10px; font: 500 clamp(23px, 3vw, 28px)/1.25 var(--ha-serif); letter-spacing: -.01em; color: #fff }
.legal h2 .num { margin-right: 10px; color: var(--ha-pink); font-style: normal }
.legal h3 { margin: 26px 0 6px; font: 600 17px/1.4 var(--ha-sans); color: #fff }
.legal p, .legal li { color: #d6d0d4 }
.legal p { margin: 0 0 14px }
.legal ul { margin: 0 0 16px; padding-left: 22px }
.legal li { margin: 6px 0 }
.legal li::marker { color: var(--ha-pink) }
.legal strong { color: #fff }
.legal a { color: var(--ha-pink-soft); text-underline-offset: 3px }
.legal a:hover { color: #fff }
.legal-toc { margin: 0 0 8px; padding: 18px 22px; border: 1px solid var(--ha-line); border-radius: 14px; background: #0d0a0cd9 }
.legal-toc p { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ha-pink) }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 28px; font-size: 15px }
.legal-toc li { margin: 3px 0; break-inside: avoid }
.legal-toc li::marker { color: #8d878b }
.legal-toc a { color: #e6e0e4; text-decoration: none }
.legal-toc a:hover { color: #fff; text-decoration: underline }
.legal-card { margin: 18px 0; padding: 18px 22px; border: 1px solid var(--ha-line); border-radius: 14px; background: #0d0a0ce6 }
.legal-card > :last-child { margin-bottom: 0 }
.legal-pending { margin: 18px 0; padding: 18px 22px; border: 1px dashed #ff259e8c; border-radius: 14px; background: #1a0d15d9; color: #f1e3eb }
.legal-pending strong { display: block; margin-bottom: 4px; color: var(--ha-pink-soft); font-size: 13px; letter-spacing: .08em; text-transform: uppercase }
.legal-pending > :last-child { margin-bottom: 0 }
.legal-table-wrap { overflow-x: auto; margin: 14px 0 18px; border: 1px solid var(--ha-line); border-radius: 14px; background: #0d0a0ce6 }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55 }
.legal th, .legal td { padding: 12px 14px; border-bottom: 1px solid var(--ha-line); text-align: left; vertical-align: top; color: #d6d0d4 }
.legal th { color: #fff; font-weight: 600; background: #140f13 }
.legal tr:last-child td { border-bottom: 0 }
.legal dl { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 10px 22px; margin: 0 }
.legal dt { color: var(--ha-muted); font-size: 14px }
.legal dd { margin: 0; color: #fff; overflow-wrap: anywhere }
.legal-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 22px;
  border: 0; border-radius: 999px; background: var(--ha-pink); color: #12060d; font: 600 15px/1.2 var(--ha-sans); text-decoration: none; cursor: pointer;
}
.legal .legal-button { color: #12060d }
.legal-button:hover { background: #ff57b6 }
.legal-inline-link { padding: 0; border: 0; background: none; color: var(--ha-pink-soft); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer }
.legal-inline-link:hover { color: #fff }
.legal-email { font: 500 clamp(20px, 4vw, 26px)/1.3 var(--ha-serif); overflow-wrap: anywhere }
@media (max-width: 560px) {
  .legal dl { grid-template-columns: 1fr; gap: 2px }
  .legal dd { margin-bottom: 10px }
  .legal-toc ol { columns: 1 }
}

/* ---- Full-width support chat button (customer-care pages) ----------------------------------
   Last block of <main class="legal">, directly above the footer. Spans the content column at every width. */
.legal-chat { margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--ha-line) }
.legal-chat p { margin: 0 0 14px; color: var(--ha-muted); font-size: 15px }
.legal-chat-button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; min-height: 64px; margin: 0; padding: 18px 24px;
  border: 1px solid var(--ha-pink); border-radius: 999px;
  background: var(--ha-pink); color: #12060d;
  font: 600 17px/1.25 var(--ha-sans); text-align: center; cursor: pointer;
}
.legal-chat-button small { font-size: 13px; font-weight: 500; color: #3a0f26 }
.legal-chat-button:hover { background: #ff57b6 }
.legal .legal-chat-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px }
@media (max-width: 560px) {
  .legal-chat { margin-top: 44px }
  .legal-chat-button { min-height: 60px; padding: 16px 18px; border-radius: 18px; font-size: 16px }
}

/* ---- Support assistant dialog on legal pages (the home page styles it in shop.css) ------------ */
body.legal-page #chat {
  width: min(414px, 94vw); max-height: 85svh; margin: auto 3vw 3vh auto; padding: 22px;
  border: 1px solid #3a3038; border-radius: 18px; color: var(--ha-text);
  background-color: #0b090b;
  background-image: var(--ha-stars), radial-gradient(ellipse at 50% 0%, #1d1119, #0b090b 70%);
  background-size: 320px 320px, 100% 100%;
  box-shadow: 0 24px 80px #000c; font: 15px/1.55 var(--ha-sans);
}
body.legal-page #chat::backdrop { background: #000a }
body.legal-page #chat .chathead, body.legal-page #chatForm, body.legal-page #chat .topics { display: flex; align-items: center; gap: 8px }
body.legal-page #chat .chathead { justify-content: space-between }
body.legal-page #chat .eyebrow { margin: 0 0 3px; font: 600 11px/1.5 var(--ha-sans); letter-spacing: .14em; color: var(--ha-pink) }
body.legal-page #chat h2 { margin: 0; font: italic 500 26px/1.15 var(--ha-serif); color: #fff }
body.legal-page #closeChat { width: 34px; height: 34px; padding: 0; border: 1px solid #3a3038; border-radius: 50%; background: #120e11; color: #ddd; font: 20px/1 var(--ha-sans); cursor: pointer }
body.legal-page #chat .topics { flex-wrap: wrap; margin: 15px 0 }
body.legal-page #chat .topics button { padding: 7px 12px; border: 1px solid #4a4048; border-radius: 999px; background: transparent; color: #e2dce0; font: 500 13px/1.3 var(--ha-sans); cursor: pointer }
body.legal-page #chat .topics button:hover { border-color: var(--ha-pink); color: #fff }
body.legal-page #messages { max-height: 32vh; overflow: auto }
body.legal-page #messages p { margin: 0 0 10px; padding: 10px 12px; border-radius: 13px; background: #1a151a; color: #e2dce0; line-height: 1.5 }
body.legal-page #messages .visitor { margin-left: 20%; background: #3a1530; color: #fff }
body.legal-page #messages a { color: var(--ha-pink-soft) }
body.legal-page #chatForm input { flex: 1; min-width: 0; padding: 12px; border: 1px solid #4a4048; border-radius: 9px; background: #120e11; color: #fff; font: 16px var(--ha-sans) }
body.legal-page #chatForm button { padding: 12px 20px; border: 0; border-radius: 999px; background: var(--ha-pink); color: #12060d; font: 600 15px/1.3 var(--ha-sans); cursor: pointer }
body.legal-page #chat :focus-visible { outline: 2px solid #fff; outline-offset: 2px }

@media print {
  .site-footer, .ha-consent, .legal-chat, #chat { display: none !important }
}
.legal code { padding: 1px 6px; border-radius: 6px; background: #1c161b; color: #ffd0e9; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere }
