/* ==========================================================================
   Legal typography · owner: pages agent
   One reading experience for /policies/* (Shopify markup, loaded by the layout
   when request.page_type == 'policy') and the legal pages built with the
   main-page section (/pages/cookies, /pages/garantia: loaded by the section).
     Shopify:  .shopify-policy__container > .shopify-policy__title > h1
                                          + .shopify-policy__body > .rte
     Theme:    .z-legal > .z-legal__head (eyebrow, h1, lead, updated)
                        + .z-legal__body > .rte.z-legal-doc
   Blocks from data/policies and data/legal (legal agent): .z-legal-lead
   -updated -summary -toc -table-wrap -table -entities -form -official
   -eu-notice -placeholder -button -note -actions -identity, and .z-gpsr*.
   The text column keeps a 62ch measure; long texts with an index get a sticky
   rail on wide screens; tables scroll inside their own frame on phones;
   [placeholders] still to fill in are marked; @media print gives clean paper.
   ========================================================================== */
:root {
  --z-legal-rail: 236px;
  --z-legal-gap: clamp(3rem, 1rem + 4.2vw, 5.5rem);
  --z-legal-col: 720px;
}

/* -- Page shell ---------------------------------------------------------- */
.z-legal-section { padding-top: clamp(3.5rem, 2.6rem + 3.8vw, 7rem); }
.z-legal { max-width: var(--z-legal-col); margin-inline: auto; }
.z-type-policy .shopify-policy__container {
  max-width: calc(var(--z-legal-col) + 2 * var(--z-gutter));
  padding-top: clamp(3.5rem, 2.6rem + 3.8vw, 7rem);
}

/* -- Title block: eyebrow · title · lead · last updated (then a rule) ----- */
.z-legal__head { display: grid; justify-items: start; gap: 0; margin-bottom: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); }
.z-legal__eyebrow { margin-bottom: 22px; }
.z-type-policy .shopify-policy__title {
  margin: 0 0 clamp(1.25rem, 1rem + 1vw, 1.75rem);
  padding: 0;
  border: 0;
}
.z-type-policy .shopify-policy__title::before {       /* eyebrow (decorative: Shopify owns this markup) */
  content: "Informação legal";
  content: "Informação legal" / "";
  display: flex;
  align-items: center;
  gap: .95em;
  margin-bottom: 22px;
  font-family: var(--z-font-caps);
  font-size: var(--z-fs-eyebrow);
  letter-spacing: var(--z-track-caps);
  text-transform: uppercase;
  color: var(--z-accent);
  background: linear-gradient(currentColor, currentColor) 0 50% / 2.6em 1px no-repeat;
  padding-left: calc(2.6em + .95em);
  opacity: 1;
}
:is(.z-legal__title, .z-type-policy .shopify-policy__title h1) {
  font-family: var(--z-font-display);
  font-size: var(--z-fs-display-l);
  font-weight: 300;
  line-height: .98;
  letter-spacing: var(--z-track-display);
  color: var(--z-fg);
  text-wrap: balance;
  max-width: 16ch;
}
.z-legal__title { margin: 0 0 clamp(1.25rem, 1rem + 1vw, 1.75rem); }

/* Lead: the first paragraph, set like a subtitle in Cormorant. */
:is(.z-legal__head, .z-legal-doc, .shopify-policy__body .rte) .z-legal-lead {
  max-width: 34em;
  margin: 0;
  font-family: var(--z-font-display);
  font-size: clamp(1.3125rem, 1.15rem + .7vw, 1.75rem);
  font-weight: 400;
  line-height: 1.36;
  letter-spacing: 0;
  color: var(--z-fg);
  text-wrap: pretty;
}
/* Last updated: an inscription line that closes the title block. */
:is(.z-legal__head, .z-legal-doc, .shopify-policy__body .rte) .z-legal-updated {
  display: block;
  width: 100%;
  max-width: none;
  margin-top: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  padding-bottom: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  border-bottom: 1px solid var(--z-rule);
  font-family: var(--z-font-caps);
  font-size: var(--z-fs-micro);
  letter-spacing: .24em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--z-fg-2);
}
:is(.z-legal__head, .z-legal-doc, .shopify-policy__body .rte) .z-legal-updated::before {
  content: "";
  display: inline-block;
  margin-right: 12px;
  vertical-align: .1em;
  width: 7px;
  height: 7px;
  background: var(--z-accent);
  -webkit-mask: var(--z-lozenge) center / contain no-repeat;
  mask: var(--z-lozenge) center / contain no-repeat;
}
.shopify-policy__body .rte > .z-legal-updated + * { margin-top: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); }

/* -- Running text ---------------------------------------------------------- */
:is(.z-legal-doc, .shopify-policy__body .rte) {
  max-width: none;
  font-size: var(--z-fs-base);
  line-height: 1.78;
  color: var(--z-fg-2);
  hyphens: manual;
  overflow-wrap: break-word;
}
:is(.z-legal-doc, .shopify-policy__body .rte) > :is(p, ul, ol) { max-width: 64ch; }
:is(.z-legal-doc, .shopify-policy__body .rte) > * + * { margin-top: 1.15em; }
:is(.z-legal-doc, .shopify-policy__body .rte) > h2 {
  position: relative;
  max-width: 26ch;
  margin-top: clamp(3rem, 2.4rem + 2.4vw, 4.75rem);
  padding-top: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-family: var(--z-font-display);
  font-size: var(--z-fs-display-s);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.005em;
  color: var(--z-fg);
  scroll-margin-top: calc(var(--z-header-h) + 24px);
}
:is(.z-legal-doc, .shopify-policy__body .rte) > h2::before {   /* a short engraved rule above each chapter */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 1px;
  background: var(--z-accent);
  opacity: .7;
}
:is(.z-legal-doc, .shopify-policy__body .rte) > h2 + * { margin-top: 1.1em; }
:is(.z-legal-doc, .shopify-policy__body .rte) > h3 {
  margin-top: 2.2em;
  font-family: var(--z-font-display);
  font-size: var(--z-fs-display-xs);
  font-weight: 400;
  line-height: 1.2;
  color: var(--z-fg);
  scroll-margin-top: calc(var(--z-header-h) + 24px);
}
:is(.z-legal-doc, .shopify-policy__body .rte) > h3 + * { margin-top: .9em; }
:is(.z-legal-doc, .shopify-policy__body .rte) li { padding-left: 1.5em; }
:is(.z-legal-doc, .shopify-policy__body .rte) ol { padding-left: 1.4em; }
:is(.z-legal-doc, .shopify-policy__body .rte) ol > li { padding-left: .35em; }
:is(.z-legal-doc, .shopify-policy__body .rte) li + li { margin-top: .6em; }
:is(.z-legal-doc, .shopify-policy__body .rte) a { color: var(--z-fg); text-decoration-color: color-mix(in srgb, var(--z-accent) 55%, transparent); text-underline-offset: .24em; }
:is(.z-legal-doc, .shopify-policy__body .rte) a:hover { color: var(--z-accent-hi); text-decoration-color: var(--z-accent); }
:is(.z-legal-doc, .shopify-policy__body .rte) code {
  padding: .1em .38em;
  border: 1px solid var(--z-rule-soft);
  border-radius: var(--z-radius-ui);
  background: rgba(201, 166, 91, .05);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .84em;
  color: var(--z-gold-hi);
  white-space: nowrap;
}
:is(.z-legal-doc, .shopify-policy__body .rte) :target { animation: z-legal-target 2.4s var(--z-ease-out); }
@keyframes z-legal-target { 0%, 30% { color: var(--z-accent-hi); } 100% { color: inherit; } }

/* -- Framed boxes: summary, official text --------------------------------- */
.z-legal-summary,
.z-legal-official {
  position: relative;
  padding: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem) clamp(1.25rem, .9rem + 1.8vw, 2.5rem);
  border: 1px solid var(--z-rule);
  background: linear-gradient(180deg, rgba(201, 166, 91, .045), transparent 45%), var(--z-onyx);
}
:is(.z-legal-doc, .shopify-policy__body .rte) > :is(.z-legal-summary, .z-legal-official, .z-legal-toc, .z-legal-form, .z-legal-actions, .z-legal-eu-notice, .z-legal-table-wrap) {
  margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem);
}
:is(.z-legal-doc, .shopify-policy__body .rte) > :is(.z-legal-summary, .z-legal-official, .z-legal-toc, .z-legal-form, .z-legal-actions, .z-legal-eu-notice, .z-legal-table-wrap) + * {
  margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem);
}
.z-legal-summary::before {                      /* inner rule, broken at the corners (as .z-frame) */
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--z-rule-soft);
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) center / calc(100% - 40px) 100% no-repeat,
    linear-gradient(#000 0 0) center / 100% calc(100% - 40px) no-repeat;
  mask:
    linear-gradient(#000 0 0) center / calc(100% - 40px) 100% no-repeat,
    linear-gradient(#000 0 0) center / 100% calc(100% - 40px) no-repeat;
}
.z-legal-summary::after {                       /* four corner flourishes */
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: var(--z-accent);
  opacity: .78;
  -webkit-mask:
    var(--z-corner-tl) top left / 24px no-repeat, var(--z-corner-tr) top right / 24px no-repeat,
    var(--z-corner-bl) bottom left / 24px no-repeat, var(--z-corner-br) bottom right / 24px no-repeat;
  mask:
    var(--z-corner-tl) top left / 24px no-repeat, var(--z-corner-tr) top right / 24px no-repeat,
    var(--z-corner-bl) bottom left / 24px no-repeat, var(--z-corner-br) bottom right / 24px no-repeat;
}
:is(.z-legal-summary, .z-legal-toc) > h2,
.z-legal-official > h3:first-child {
  position: static;
  max-width: none;
  margin: 0 0 1.1em;
  padding: 0;
  font-family: var(--z-font-caps);
  font-size: var(--z-fs-eyebrow);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: var(--z-track-caps);
  text-transform: uppercase;
  color: var(--z-accent);
}
:is(.z-legal-summary, .z-legal-toc) > h2::before { display: none; }
.z-legal-summary ul { margin: 0; max-width: none; }
.z-legal-summary li { font-size: var(--z-fs-sm); line-height: 1.65; }
.z-legal-summary li + li { margin-top: .75em; }
.z-legal-summary strong { color: var(--z-fg); }

.z-legal-official { border-color: var(--z-rule-soft); background: var(--z-onyx); font-size: var(--z-fs-sm); line-height: 1.7; }
.z-legal-official > * + * { margin-top: 1em; }
.z-legal-official > h3:not(:first-child) {
  margin-top: 2em;
  font-family: var(--z-font-caps);
  font-size: var(--z-fs-micro);
  letter-spacing: var(--z-track-caps);
  text-transform: uppercase;
  color: var(--z-accent);
}
.z-legal-official::before {                       /* "texto oficial" label on the frame */
  content: "Texto oficial";
  content: "Texto oficial" / "";
  position: absolute;
  top: 0;
  right: clamp(1.25rem, .9rem + 1.8vw, 2.5rem);
  transform: translateY(-50%);
  padding: 0 10px;
  background: var(--z-bg);
  font-family: var(--z-font-caps);
  font-size: 9.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--z-fg-2);
}

/* -- Index ------------------------------------------------------------------
   Phones/tablets: a framed list in the flow. Wide screens: a sticky rail. */
.z-legal-toc {
  padding: 22px 0 6px;
  border-block: 1px solid var(--z-rule);
}
/* right under the title block's closing rule: one hairline, not two */
.z-legal__head:has(.z-legal-updated) + .z-legal__body .z-legal-doc > .z-legal-toc:first-child,
:is(.z-legal-doc, .shopify-policy__body .rte) > .z-legal-updated + .z-legal-toc { border-top: 0; padding-top: 0; }
:is(.z-legal-doc, .shopify-policy__body .rte) .z-legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: z-toc; max-width: none; }
:is(.z-legal-doc, .shopify-policy__body .rte) .z-legal-toc li { margin: 0; padding: 0; counter-increment: z-toc; }
:is(.z-legal-doc, .shopify-policy__body .rte) .z-legal-toc li + li { margin-top: 0; border-top: 1px solid var(--z-rule-soft); }
.z-legal-toc a {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  align-items: baseline;
  padding: 11px 0 12px;
  color: var(--z-fg-2);
  font-size: var(--z-fs-sm);
  line-height: 1.45;
  text-decoration: none;
  transition: color var(--z-dur-base), padding-left var(--z-dur-slow) var(--z-ease-out);
}
.z-legal-toc a::before {
  content: counter(z-toc, decimal-leading-zero);
  font-family: var(--z-font-caps);
  font-size: var(--z-fs-micro);
  letter-spacing: .14em;
  color: var(--z-accent);
}
@media (hover: hover) { .z-legal-toc a:hover { color: var(--z-fg); padding-left: 4px; } }
.z-legal-toc a[aria-current="true"] { color: var(--z-accent-hi); }

@media (min-width: 1200px) {
  .z-legal--toc,
  .z-type-policy .shopify-policy__container:has(.z-legal-toc) { --z-legal-wide: calc(var(--z-legal-rail) + var(--z-legal-gap) + var(--z-legal-col)); }
  .z-legal--toc { max-width: var(--z-legal-wide); }
  .z-type-policy .shopify-policy__container:has(.z-legal-toc) { max-width: calc(var(--z-legal-wide) + 2 * var(--z-gutter)); }
  .z-legal--toc .z-legal__head,
  .z-type-policy .shopify-policy__container:has(.z-legal-toc) .shopify-policy__title {
    margin-left: calc(var(--z-legal-rail) + var(--z-legal-gap));
  }
  :is(.z-legal-doc, .shopify-policy__body .rte):has(> .z-legal-toc) {
    display: grid;
    grid-template-columns: var(--z-legal-rail) minmax(0, var(--z-legal-col));
    column-gap: var(--z-legal-gap);
    align-items: start;
  }
  :is(.z-legal-doc, .shopify-policy__body .rte):has(> .z-legal-toc) > * { grid-column: 2; }
  :is(.z-legal-doc, .shopify-policy__body .rte) > .z-legal-toc {
    grid-column: 1;
    grid-row: 1 / span 600;
    position: sticky;
    top: calc(var(--z-header-offset, 0px) + 40px);
    max-height: calc(100vh - var(--z-header-offset, 0px) - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-top: 0;
    padding: 0 0 0 0;
    border: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--z-rule) transparent;
    transition: top var(--z-dur-slow) var(--z-ease-out);
  }
  :is(.z-legal-doc, .shopify-policy__body .rte) > .z-legal-toc + * { margin-top: 0; }
  :is(.z-legal-doc, .shopify-policy__body .rte) > .z-legal-toc > h2 { padding-bottom: 14px; margin-bottom: 0; border-bottom: 1px solid var(--z-rule); }
  .z-legal-toc a { grid-template-columns: 1.9rem minmax(0, 1fr); padding: 9px 0 10px; font-size: var(--z-fs-xs); }
  .z-legal-toc a[aria-current="true"]::before { color: var(--z-accent-hi); }
  .z-legal-toc li { position: relative; }
  .z-legal-toc li:has(> a[aria-current="true"])::after {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    background: var(--z-accent-hi);
    -webkit-mask: var(--z-lozenge) center / contain no-repeat;
    mask: var(--z-lozenge) center / contain no-repeat;
  }
}

/* -- Tables: scroll inside their own frame on phones ------------------------ */
.z-legal-table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-top: 1px solid var(--z-rule);
  border-bottom: 1px solid var(--z-rule-soft);
  /* scroll shadows: covers move with the content, shadows stay at the edges */
  background:
    linear-gradient(90deg, var(--z-bg) 30%, transparent) left center / 36px 100% no-repeat local,
    linear-gradient(270deg, var(--z-bg) 30%, transparent) right center / 36px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(201, 166, 91, .18), transparent) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(201, 166, 91, .18), transparent) right center / 14px 100% no-repeat scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--z-rule) transparent;
}
.z-legal-table-wrap:focus-visible { outline: 2px solid var(--z-gold); outline-offset: 4px; }
:is(.z-legal-doc, .shopify-policy__body .rte) .z-legal-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--z-fs-sm);
  line-height: 1.55;
  hyphens: manual;
}
:is(.z-legal-doc, .shopify-policy__body .rte) .z-legal-table caption {
  caption-side: top;
  padding: 14px 0 12px;
  text-align: left;
  font-family: var(--z-font-caps);
  font-size: var(--z-fs-micro);
  letter-spacing: .22em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--z-accent);
}
:is(.z-legal-doc, .shopify-policy__body .rte) .z-legal-table th {
  padding: 12px 18px 12px 0;
  border-bottom: 1px solid var(--z-rule);
  font-family: var(--z-font-caps);
  font-size: var(--z-fs-micro);
  font-weight: 400;
  letter-spacing: .2em;
  text-align: left;
  text-transform: uppercase;
  color: var(--z-fg-2);
  white-space: nowrap;
}
:is(.z-legal-doc, .shopify-policy__body .rte) .z-legal-table td {
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--z-rule-soft);
  vertical-align: top;
  color: var(--z-fg-2);
}
:is(.z-legal-doc, .shopify-policy__body .rte) .z-legal-table td:first-child { color: var(--z-fg); min-width: 11rem; }
:is(.z-legal-doc, .shopify-policy__body .rte) .z-legal-table tr:last-child td { border-bottom: 0; }
@media (hover: hover) {
  :is(.z-legal-doc, .shopify-policy__body .rte) .z-legal-table tbody tr { transition: background-color var(--z-dur-base); }
  :is(.z-legal-doc, .shopify-policy__body .rte) .z-legal-table tbody tr:hover { background: rgba(201, 166, 91, .03); }
}

/* -- Lists of identity data and RAL entities ------------------------------- */
:is(.z-legal-doc, .shopify-policy__body .rte) > .z-legal-identity {
  max-width: none;
  border-top: 1px solid var(--z-rule);
}
.rte .z-legal-identity > li,
.rte .z-legal-entities > li { padding-left: 0; }
.rte .z-legal-identity > li::before,
.rte .z-legal-entities > li::before { display: none; }
.z-legal-identity > li {
  display: block;
  margin: 0;
  padding: 13px 0 14px;
  border-bottom: 1px solid var(--z-rule-soft);
  color: var(--z-fg);
  overflow-wrap: anywhere;
}
.rte .z-legal-identity > li + li { margin-top: 0; }
.z-legal-identity strong {
  display: block;
  font-family: var(--z-font-caps);
  font-size: var(--z-fs-micro);
  font-weight: 400;
  letter-spacing: .22em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--z-accent);
}
@media (min-width: 750px) {      /* label in a column, the value hanging beside it */
  .z-legal-identity > li { padding-left: 12.5rem; text-indent: -12.5rem; }
  .z-legal-identity strong { display: inline-block; width: 12.5rem; text-indent: 0; vertical-align: baseline; }
  .z-legal-identity > li > :not(strong) { text-indent: 0; }
}
:is(.z-legal-doc, .shopify-policy__body .rte) > .z-legal-entities { max-width: none; border-top: 1px solid var(--z-rule); }
.z-legal-entities > li {
  margin: 0;
  padding: 16px 0 17px;
  border-bottom: 1px solid var(--z-rule-soft);
  font-size: var(--z-fs-sm);
  line-height: 1.6;
}
.rte .z-legal-entities > li + li { margin-top: 0; }
.z-legal-entities strong { display: inline-block; margin-bottom: 4px; font-weight: 500; color: var(--z-fg); }

/* -- Model withdrawal form: a printed paper slip with fill-in lines -------- */
.z-legal-form {
  --z-fg: var(--z-ink);
  --z-fg-2: var(--z-ink-2);
  --z-rule: var(--z-line-ink);
  --z-rule-soft: var(--z-line-ink-soft);
  --z-accent: var(--z-gold-ink);
  position: relative;
  margin-inline: 0;
  padding: clamp(1.75rem, 1.2rem + 2.4vw, 3rem) clamp(1.25rem, .8rem + 2.6vw, 3.25rem);
  color: var(--z-ink);
  background: linear-gradient(170deg, rgba(255, 255, 255, .35), transparent 40%), var(--z-paper);
  isolation: isolate;
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9), 0 0 0 1px rgba(201, 166, 91, .25);
  color-scheme: light;
}
.z-legal-form::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--z-line-ink-soft);
  pointer-events: none;
}
.z-legal-form::after {               /* paper grain */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("brand-grain.png") 0 0 / 128px 128px repeat;
  opacity: .1;
  mix-blend-mode: multiply;
}
.rte .z-legal-form blockquote,
.z-legal-form blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--z-font-text);
  font-size: var(--z-fs-sm);
  font-style: normal;
  line-height: 1.7;
  color: var(--z-ink);
}
.z-legal-form blockquote > p { max-width: none; }
.z-legal-form blockquote > * + * { margin-top: .9em; }
.z-legal-form blockquote > p:first-child {
  margin-bottom: .2em;
  font-family: var(--z-font-display);
  font-size: var(--z-fs-display-xs);
  line-height: 1.2;
  text-align: center;
}
.z-legal-form blockquote > p:first-child strong { font-weight: 500; color: var(--z-ink); }
.z-legal-form blockquote > p:nth-child(2) { text-align: center; font-size: var(--z-fs-xs); font-style: italic; color: var(--z-ink-2); padding-bottom: .6em; border-bottom: 1px solid var(--z-line-ink); }
.z-legal-form blockquote > p:nth-child(n + 4):not(:last-child)::after {   /* the dotted line to write on */
  content: "";
  display: block;
  height: 1.7em;
  border-bottom: 1px dotted rgba(20, 18, 15, .45);
}
.z-legal-form blockquote > p:last-child { font-size: var(--z-fs-xs); color: var(--z-ink-2); }
.z-legal-form figcaption { position: relative; margin-top: 1.4em; padding-top: 1em; border-top: 1px solid var(--z-line-ink-soft); font-size: var(--z-fs-xs); line-height: 1.6; color: var(--z-ink-2); }
.z-legal-form a { color: var(--z-ink); }
.z-legal-form .z-placeholder { color: #6E5016; outline-color: rgba(138, 106, 43, .7); background: repeating-linear-gradient(-45deg, rgba(138, 106, 43, .14) 0 5px, transparent 5px 10px); }

/* -- EU notice slot, placeholders -------------------------------------------- */
.z-legal-eu-notice { margin-inline: 0; }
.z-legal-eu-notice > .z-legal-placeholder {
  display: grid;
  place-items: center;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  padding: 24px;
  margin: 0;
  text-align: center;
  font-size: var(--z-fs-sm);
  max-width: none;
}
.z-legal-eu-notice figcaption { margin-top: 1em; font-size: var(--z-fs-xs); line-height: 1.65; color: var(--z-fg-2); }
.z-legal-eu-notice img { width: 100%; height: auto; }
.z-legal-placeholder,
.rte .z-legal-placeholder {
  color: var(--z-gold-hi);
  background: repeating-linear-gradient(-45deg, rgba(242, 222, 162, .1) 0 6px, rgba(242, 222, 162, .025) 6px 12px);
  outline: 1px dashed rgba(242, 222, 162, .55);
  outline-offset: 2px;
}

/* -- Actions (the cookie preferences button) and notes ---------------------- */
.z-legal-actions {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) 0;
  border-block: 1px solid var(--z-rule);
}
.z-legal-actions > * { margin: 0; max-width: 60ch; }
.z-legal-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 2.1em;
  border: 0;
  border-radius: var(--z-radius-ui);
  background-color: var(--z-gold);
  background-image: var(--z-brush), var(--z-foil);
  background-size: auto, auto, 210% 100%;
  background-position: 0 0, 0 0, 18% 50%;
  box-shadow: inset 0 1px 0 rgba(255, 248, 225, .5), inset 0 -1px 0 rgba(20, 18, 15, .3), 0 1px 2px rgba(0, 0, 0, .55), 0 18px 36px -26px rgba(201, 166, 91, .5);
  color: var(--z-ink);
  font-family: var(--z-font-text);
  font-size: .78125rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: var(--z-track-ui);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-position var(--z-dur-epic) var(--z-ease-out), transform var(--z-dur-fast) var(--z-ease-out);
}
.z-legal-button::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(20, 18, 15, .2); border-radius: 1px; pointer-events: none; }
@media (hover: hover) { .z-legal-button:hover { background-position: 0 0, 0 0, 70% 50%; } }
.z-legal-button:active { transform: translateY(1px); }
.z-legal-button:focus-visible { outline: 2px solid var(--z-gold); outline-offset: 4px; }
.z-legal-note,
.rte .z-legal-note { font-size: var(--z-fs-xs); line-height: 1.65; color: var(--z-fg-2); }
:is(.z-legal-doc, .shopify-policy__body .rte) > .z-legal-note:last-child { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding-top: 1.25em; border-top: 1px solid var(--z-rule-soft); }

/* -- Product safety block (GPSR, product pages) ----------------------------- */
.z-gpsr { display: grid; gap: 18px; color: var(--z-fg-2); font-size: var(--z-fs-sm); line-height: 1.65; }
.z-gpsr h3 { font-family: var(--z-font-display); font-size: var(--z-fs-display-xs); font-weight: 400; line-height: 1.2; color: var(--z-fg); }
.z-gpsr h4 { margin-top: 6px; font-family: var(--z-font-caps); font-size: var(--z-fs-micro); font-weight: 400; letter-spacing: var(--z-track-caps); text-transform: uppercase; color: var(--z-accent); }
.z-gpsr__facts { display: grid; margin: 0; border-top: 1px solid var(--z-rule); }
.z-gpsr__facts > div { display: grid; gap: 2px 18px; padding: 12px 0 13px; border-bottom: 1px solid var(--z-rule-soft); }
.z-gpsr__facts dt { font-family: var(--z-font-caps); font-size: var(--z-fs-micro); letter-spacing: .2em; line-height: 1.8; text-transform: uppercase; color: var(--z-fg-2); }
.z-gpsr__facts dd { margin: 0; color: var(--z-fg); overflow-wrap: anywhere; }
@media (min-width: 750px) { .z-gpsr__facts > div { grid-template-columns: 11rem minmax(0, 1fr); align-items: baseline; } }
.z-gpsr__warnings { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.z-gpsr__warnings li { position: relative; padding-left: 1.4em; }
.z-gpsr__warnings li::before {
  content: "";
  position: absolute;
  left: .1em;
  top: .62em;
  width: .42em;
  height: .42em;
  background: var(--z-accent);
  -webkit-mask: var(--z-lozenge) center / contain no-repeat;
  mask: var(--z-lozenge) center / contain no-repeat;
}
.z-gpsr__contact { padding-top: 12px; border-top: 1px solid var(--z-rule-soft); font-size: var(--z-fs-xs); }

/* -- [Placeholders] marked by section-policy.js --------------------------- */
.z-legal-ph { white-space: normal; }

/* -- Phones ------------------------------------------------------------------- */
@media (max-width: 749px) {
  :is(.z-legal-doc, .shopify-policy__body .rte) > h2 { max-width: none; }
  .z-legal-identity > li { padding: 12px 0; }
}

/* -- Print: clean paper ------------------------------------------------------- */
@media print {
  @page { margin: 18mm 16mm; }
  html, body { background: #fff !important; color: #000 !important; }
  body::before,
  .z-announce, .z-header, .z-footer, .z-skip,
  .shopify-section-group-header-group, .shopify-section-group-footer-group,
  .z-consent, #zv-preview-note, .z-legal-toc, .z-legal-actions { display: none !important; }
  .z-legal, .z-type-policy .shopify-policy__container { max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .z-legal-section { padding: 0 !important; }
  .z-legal__head, .z-legal--toc .z-legal__head, .shopify-policy__title { margin-left: 0 !important; }
  :is(.z-legal-doc, .shopify-policy__body .rte) { display: block !important; color: #222 !important; font-size: 10.5pt; line-height: 1.55; }
  :is(.z-legal-doc, .shopify-policy__body .rte) > * { grid-column: auto !important; }
  :is(.z-legal__title, .shopify-policy__title h1, .z-legal-lead, .z-legal-doc h2, .z-legal-doc h3, .shopify-policy__body h2, .shopify-policy__body h3, strong, .z-legal-table td:first-child) { color: #000 !important; }
  .z-legal__title, .shopify-policy__title h1 { font-size: 30pt; }
  .z-legal-lead { font-size: 14pt !important; }
  .z-type-policy .shopify-policy__title::before, .z-legal__eyebrow, .z-legal-updated, .z-legal-summary h2, .z-legal-official h3, .z-legal-table caption, .z-legal-table th { color: #6B5120 !important; }
  :is(.z-legal-doc, .shopify-policy__body .rte) h2 { break-after: avoid; page-break-after: avoid; margin-top: 18pt; }
  .z-legal-summary, .z-legal-official, .z-legal-form, .z-legal-identity > li, .z-legal-table tr, .z-gpsr { break-inside: avoid; page-break-inside: avoid; }
  .z-legal-summary, .z-legal-official { background: none !important; border: 1px solid #b9a77a !important; }
  .z-legal-summary::after, .z-legal-summary::before, .z-legal-official::before { display: none; }
  .z-legal-table-wrap { overflow: visible !important; background: none !important; }
  .z-legal-table { min-width: 0 !important; }
  .z-legal-form { box-shadow: none !important; background: #fff !important; border: 1px solid #999; }
  a { color: #000 !important; text-decoration: underline; }
  :is(.z-legal-doc, .shopify-policy__body .rte) a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #555; word-break: break-all; }
  code { color: #000 !important; background: none !important; border-color: #ccc !important; }
  .z-placeholder, .z-legal-placeholder { color: #000 !important; background: none !important; outline: 1px dashed #999 !important; }
}

/* The title block already closes with a rule: the first framed block of the body drops its own. */
:is(.z-legal-doc, .shopify-policy__body .rte) > .z-legal-actions:first-child,
:is(.z-legal-doc, .shopify-policy__body .rte) > .z-legal-toc + .z-legal-actions,
.shopify-policy__body .rte > .z-legal-updated + .z-legal-actions { border-top: 0; padding-top: 0; }
@media (min-width: 1200px) {
  :is(.z-legal-doc, .shopify-policy__body .rte) > .z-legal-toc:first-child + * { margin-top: 0; }
}
