/* The privacy notice of the site (LGPD) and the links that reopen it. One sheet for every page: the main page, the
   landing, the service pages and privacidade/. The notice is built by consentimento.js; without JavaScript it does
   not exist and nothing is measured.
   It holds neither the scroll nor the focus, and leaves when the visitor chooses. Aceitar and Recusar are the same
   button twice; Escolher is a line of text. No colour says which one to press.
   Where it stands was measured against what each page keeps at the foot of its first screen (15/11/2026, thirteen
   screens from 320x568 to 1920x1080: D:\hawl-qa\saida\lgpd\chegada.mjs and fundo.mjs):
   - on a computer it stands on the left. On the reading pages it is a low strip, about 74 px tall, because their two
     buttons stand right above where a taller card would be. On the main page it is a card 424 px wide: the rail and
     the buttons are on the right, and the controls of the sections are in the middle of the foot;
   - on the landing of the Prospect it goes to the right, because the left foot of the film holds the pause and the
     scene marks;
   - on a phone it is a card as wide as the screen; on the main page it stands above the button of the hero and the
     round button of WhatsApp.
   .hc is the box and a size container; .hc-in lays the content out: side by side when the box is 640 px or wider. */

.hc {
  position: fixed;
  z-index: 80; /* over the rail (60), the footer (61) and the logo (70); under the sheets that cross the screen (90, 100) */
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(424px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  container-type: inline-size;
  border: 1px solid #1e2d68;
  border-radius: 16px;
  background: linear-gradient(180deg, #0b1438 0, #070d27 100%);
  box-shadow: 0 18px 48px rgb(2 4 12 / .6);
  color: var(--body, #bbc0cd);
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  animation: hc-in 420ms var(--ease, ease) both;
}
@keyframes hc-in { from { opacity: 0; transform: translateY(12px); } }
.hc:focus { outline: none; }
.hc:focus-visible { outline: 2px solid var(--focus, #ffb65c); outline-offset: 2px; }
.hc-in { padding: 18px 20px 14px; }
/* The question, in white, and its note run as one paragraph. */
.hc .hc-text { margin: 0; text-wrap: pretty; }
.hc-ask { color: var(--paper, #f5f5f7); font-weight: 600; }
.hc-note a { color: var(--paper, #f5f5f7); text-decoration: underline; text-decoration-color: #ffffff5c; text-decoration-thickness: 1px; text-underline-offset: .22em; white-space: nowrap; transition: text-decoration-color 200ms var(--ease, ease); }
.hc-note a:hover { text-decoration-color: var(--accent, #ffb65c); }
.hc-note a:focus-visible { outline-offset: 3px; border-radius: 2px; }

/* The two permissions: a box to tick, its name and what it is. Rows between hairlines, like the lists of the site. */
.hc-options { min-width: 0; margin: 14px 0 0; padding: 0; border: 0; border-top: 1px solid #1b2a5e; }
.hc-options legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hc-option { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0 12px; min-height: 44px; padding: 11px 0; border-bottom: 1px solid #1b2a5e; cursor: pointer; }
.hc-option input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue, #2457f5); cursor: pointer; }
.hc-option input:focus-visible { outline: 2px solid var(--focus, #ffb65c); outline-offset: 2px; }
.hc-option strong { display: block; color: var(--paper, #f5f5f7); font-weight: 600; font-size: 15px; line-height: 1.35; }
.hc-option span span { display: block; font-size: 13.5px; line-height: 1.45; }

.hc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; }
.hc-button { flex: 1 1 96px; min-height: 44px; padding: 0 18px; border: 1px solid #40508a; border-radius: 22px; background: none; color: var(--paper, #f5f5f7); font: inherit; font-weight: 600; line-height: 1; transition: background-color 200ms var(--ease, ease), border-color 200ms var(--ease, ease); }
.hc-more { flex: none; min-height: 44px; padding: 0 8px; background: none; color: var(--paper, #f5f5f7); font: inherit; text-decoration: underline; text-decoration-color: #ffffff5c; text-decoration-thickness: 1px; text-underline-offset: .3em; transition: text-decoration-color 200ms var(--ease, ease); }
.hc-button:focus-visible, .hc-more:focus-visible { outline: 2px solid var(--focus, #ffb65c); outline-offset: 2px; }
.hc-more:focus-visible { border-radius: 4px; }
@media (hover: hover) and (pointer: fine) {
  .hc-button:hover { background: rgb(255 255 255 / .08); border-color: #7f93d6; }
  .hc-more:hover { text-decoration-color: var(--accent, #ffb65c); }
}

/* What a screen reader hears when the notice arrives and when the choice is kept. */
.hc-status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The low strip: the paragraph on the left, the buttons beside it. With the two permissions open ([data-open]) it is
   a card again, the permissions side by side and the buttons under them. A browser without container queries keeps
   the card, which works the same. */
@container (min-width: 640px) {
  .hc-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 28px; padding: 14px 16px 14px 22px; }
  .hc-actions { flex-wrap: nowrap; margin-top: 0; }
  .hc-button { flex: none; min-width: 104px; }
  .hc[data-open] .hc-in { display: block; padding: 18px 22px 14px; }
  .hc[data-open] .hc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .hc[data-open] .hc-actions { justify-content: flex-end; margin-top: 14px; }
  .hc[data-open] .hc-button { min-width: 128px; }
}
@media (min-width: 1024px) {
  .hc { width: min(860px, calc(100vw - 32px)); }
  /* The main page keeps the card: its sections hold their controls in the middle of the foot (the tabs of Frentes
     start 537 px from the left at 1440, the steps of Branding 467 px), and the card ends at 440 px. */
  .hc[data-dock="principal"] { width: 424px; }
  /* The landing: no wider than what the controls of the film leave free (the play button and the six marks: they end
     284 px from the left edge at 1024 x 768, 452 at 1366 x 700 and 497 at 1707 x 941). From 1250 px up there is room
     for the buttons beside the text, and the card is lower. Below that a wider card was tried and is no lower. */
  .pl-page > .hc { width: min(860px, max(424px, calc(100vw - 620px))); }
  @media (min-width: 1250px) { .pl-page > .hc { width: min(860px, calc(100vw - 560px)); } }
}
/* The landing of the Prospect: to the right, clear of its rail of sections (34 px wide, 6 px from the edge). */
@media (min-width: 561px) {
  .pl-page > .hc { left: auto; right: max(56px, env(safe-area-inset-right, 0px)); }
}
/* The main page on a tablet: its hero keeps a button in the middle of the foot, up to 84 px from it. */
@media (min-width: 561px) and (max-width: 1023px) {
  .hc[data-dock="principal"] { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); }
}
/* A phone: the card takes the width. On the main page the foot of the screen belongs to the button of the hero
   (up to 78 px from it) and to the round button of WhatsApp (.sp-hud-call: 52 px, 16 px from the foot), so the card
   stands above them. */
@media (max-width: 560px) {
  .hc { left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .hc-in { padding: 16px 16px 12px; }
  .hc[data-dock="principal"] { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 98px); max-height: calc(100dvh - 98px); }
}
/* The narrowest phones: the three buttons still share one row. */
@media (max-width: 360px) {
  .hc-button { flex-basis: 80px; padding: 0 8px; }
  .hc-more { padding: 0 4px; }
}
/* Up to 380 px the main page raises the pause of its hero to 88 px from the foot, where the card stands. While the
   notice is on the page (html[data-hc-open], with its height in --hc-rise, both set by consentimento.js), the pause
   rides just above it, so that it can always be pressed. */
@media (max-width: 380px) {
  html[data-hc-open] .hh-motion-button, html[data-hc-open] .hh-controls[data-scene="true"] .hh-motion-button { bottom: calc(var(--hc-rise, 260px) + 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hc { animation: none; }
  .hc-button, .hc-more, .hc-note a { transition: none; }
}
@media print { .hc, .hc-status { display: none !important; } }

/* Main page: the link that reopens the notice. On a computer it closes the line of the e-mail, on the right. On a
   phone the menu of the footer is a grid of three columns whose last row holds one word alone (Contato): the link
   takes the two empty places of that row, so the footer keeps its height and nothing moves towards the name HAWL
   (measured over 13 widths, from 320 to 2560 px: D:\hawl-qa\saida\lgpd\rodape.mjs). If the menu gains an eleventh
   word, this link needs another place. These rules stand here because sections/footer.css only reaches the page
   through a build. */
.footer-privacy { margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; color: var(--body); font-size: clamp(14px, .82vw, 19px); white-space: nowrap; transition: color .2s var(--ease); }
.footer-privacy:hover { color: var(--paper); }
.footer-privacy:focus-visible { outline: 2px solid #bcd0ff; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 760px) {
  /* The menu is told the row it already takes: two items may share a row only when both name it. */
  .sf-top > .footer-nav:not(.footer-services) { grid-row: 1; }
  .footer-privacy { grid-area: 1 / 1 / 2 / -1; place-self: end; margin: 0 0 8px; }
}
