/* Legal (scripts/legal.js): the footer's bottom line, the cookie banner, the privacy policy. */

/* ---------- footer: © year Bra-ko · CNPJ — Privacy · Cookies ----------
   The last row of the footer column; the line field above gives it the room. */
#contact .bk-legal {
  position: relative;
  z-index: 2;
  flex: none;
  align-self: stretch;            /* the footer column centres its items; this row spans it */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: -23px;              /* the footer's 51px gap, brought down to ~28px here */
  font: 400 14px/1.4 var(--bk-font, "DM Sans", sans-serif);
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.5);
}
#contact .bk-legal p { margin: 0; }
#contact .bk-legal__sep { margin: 0 0.55em; color: rgba(255, 255, 255, 0.28); }
#contact .bk-legal__links { display: flex; align-items: center; gap: 24px; }
#contact .bk-legal__links a,
#contact .bk-legal__links button {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; letter-spacing: inherit; color: inherit; text-decoration: none;
  transition: color 200ms ease;
}
#contact .bk-legal__links a:hover,
#contact .bk-legal__links button:hover { color: #fff; }
@media (max-width: 810px) {
  #contact .bk-legal { margin-top: -12px; font-size: 13px; flex-direction: column; align-items: flex-start; }
}

/* ---------- cookie notice: one compact line at the bottom centre ----------
   icon · short notice · See more · Accept. "See more" opens a tooltip above it (hover, focus or
   tap: .is-open) with the details, the policy and the "essential only" choice. */
.bk-cookies {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 2147482900;            /* above the page, under the sheets and the cursor */
  width: max-content;
  max-width: calc(100vw - 24px);
  font-family: var(--bk-font, "DM Sans", sans-serif);
  color: #0b0b0b;
  opacity: 0;
  transform: translateX(-50%);
  translate: 0 18px;
  transition: opacity 360ms ease, translate 620ms cubic-bezier(0.16, 1, 0.3, 1);
}
.bk-cookies[hidden] { display: none; }
.bk-cookies.is-in { opacity: 1; translate: 0 0; }
.bk-cookies__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 16px; border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 11, 11, 0.08);
}
.bk-cookies__ico { width: 18px; height: 18px; flex: none; display: block; color: #0b0b0b; }
.bk-cookies__short { font-size: 14px; line-height: 1.3; letter-spacing: -0.01em; color: #2a2a2a; }
.bk-cookies__more {
  flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: rgba(11, 11, 11, 0.06); color: #0b0b0b; cursor: pointer;
  font: 500 14px/1 var(--bk-font, "DM Sans", sans-serif); letter-spacing: -0.01em; transition: background 200ms ease;
}
.bk-cookies__more:hover, .bk-cookies.is-open .bk-cookies__more { background: rgba(11, 11, 11, 0.1); }
.bk-cookies__btn {
  flex: none; height: 36px; padding: 0 18px; border: 0; border-radius: 999px;
  background: #0b0b0b; color: #fff; cursor: pointer;
  font: 500 14px/1 var(--bk-font, "DM Sans", sans-serif); letter-spacing: -0.01em;
  transition: background 200ms ease, transform 200ms ease;
}
.bk-cookies__btn:hover { background: #2a2a2a; }
.bk-cookies__btn:active { transform: translateY(1px); }
/* the tooltip, above the line, with a small notch */
.bk-cookies__tip {
  position: absolute; left: 50%; bottom: calc(100% + 12px);
  width: min(360px, calc(100vw - 24px)); padding: 16px 18px;
  border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 11, 11, 0.08);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 220ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 320ms;
}
.bk-cookies__tip::before {   /* invisible bridge, so the pointer can travel from the bar to the tip */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px;
}
.bk-cookies__tip::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 12px; height: 12px;
  background: #fff; box-shadow: 1px 1px 0 rgba(11, 11, 11, 0.08);
  transform: translate(-50%, -6px) rotate(45deg);
}
.bk-cookies.is-open .bk-cookies__tip, .bk-cookies__tip:focus-within {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 220ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}
.bk-cookies__text { margin: 0; font-size: 14px; line-height: 1.5; color: #5f5f5b; text-wrap: pretty; }
.bk-cookies__text a { color: #0b0b0b; text-decoration: none; box-shadow: inset 0 -1px 0 rgba(11, 11, 11, 0.3); transition: box-shadow 200ms ease; }
.bk-cookies__text a:hover { box-shadow: inset 0 -1px 0 #0b0b0b; }
.bk-cookies__link {
  margin-top: 10px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 14px/1.4 var(--bk-font, "DM Sans", sans-serif); letter-spacing: -0.01em; color: #0b0b0b;
  box-shadow: inset 0 -1px 0 rgba(11, 11, 11, 0.3); transition: box-shadow 200ms ease;
}
.bk-cookies__link:hover { box-shadow: inset 0 -1px 0 #0b0b0b; }
@media (max-width: 810px) {
  .bk-cookies { bottom: 12px; }
  .bk-cookies__short { font-size: 13px; }
  .bk-cookies__bar { gap: 8px; padding-left: 12px; }
}
@media (max-width: 480px) {
  .bk-cookies__short { display: none; }    /* phones: icon · See more · Accept */
  .bk-cookies__bar::before { content: "Cookies"; font-size: 14px; font-weight: 500; order: 0; }
  .bk-cookies__ico { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-cookies, .bk-cookies__tip { transition: none; }
  .bk-cookies { translate: none; }
}

/* ---------- privacy policy, in the side panel (contact-sheet.css) ---------- */
.bk-privacy { gap: 26px; }
.bk-privacy__item h3 { margin: 0 0 8px; font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; }
.bk-privacy__item p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #4f4f4b; text-wrap: pretty; }
.bk-privacy__item a { color: #0b0b0b; text-decoration: none; box-shadow: inset 0 -1px 0 rgba(11, 11, 11, 0.3); }
.bk-privacy__item a:hover { box-shadow: inset 0 -1px 0 #0b0b0b; }
.bk-cs .bk-privacy__prefs { background: rgba(11, 11, 11, 0.06); color: #0b0b0b; box-shadow: none; padding: 0 22px 0 18px; }
.bk-cs .bk-privacy__prefs:hover { background: rgba(11, 11, 11, 0.1); }
.bk-cs .bk-privacy__prefs svg { width: 18px; height: 18px; }
