#gmc-consent, .gmc-policy {
  --gmc-ink: var(--tinta, #102b41);
  --gmc-blue: var(--marino, #134489);
  --gmc-wash: #eaf3fa;
  --gmc-rule: #c9daea;
  color: var(--gmc-ink);
  font-family: var(--sans, system-ui, sans-serif);
}

#gmc-consent [hidden], .gmc-manage[hidden] { display: none !important; }

#gmc-consent .gmc-banner {
  position: fixed;
  inset-inline-end: max(clamp(16px, 2.5vw, 40px), env(safe-area-inset-right));
  bottom: max(clamp(16px, 2.5vw, 32px), env(safe-area-inset-bottom));
  z-index: 99980;
  box-sizing: border-box;
  width: min(27rem, calc(100% - 32px));
  max-height: 85dvh;
  overflow: auto;
  padding: clamp(16px, 3vw, 24px) clamp(16px, 3vw, 24px) 6px;
  background: #fff;
  border: 1px solid var(--gmc-rule);
  box-shadow: 0 8px 26px rgb(15 40 65 / 13%);
}

#gmc-consent h2 {
  margin: 0 0 6px;
  color: var(--gmc-ink);
  font: 400 clamp(1.5rem, 2.3vw, 1.8rem)/1.13 var(--serif, Georgia, serif);
  letter-spacing: -.025em;
}

#gmc-consent p {
  margin: 0;
  color: var(--gmc-ink);
  font: 400 .96rem/1.45 var(--sans, system-ui, sans-serif);
}

#gmc-consent a, .gmc-policy a { color: var(--gmc-blue); text-decoration: underline; text-underline-offset: .17em; }
#gmc-consent .gmc-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
#gmc-consent .gmc-banner .gmc-actions { margin-block: 14px 6px; }

#gmc-consent button, button.gmc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .6rem .5rem;
  min-height: 44px;
  border: 1px solid var(--gmc-blue, #134489);
  border-radius: 0;
  background: var(--gmc-blue, #134489);
  color: #fff;
  font: 600 .95rem/1.15 var(--sans, system-ui, sans-serif);
  text-align: center;
  text-transform: none;
  cursor: pointer;
}

#gmc-consent button:not(.gmc-link):hover { background: #102b41; color: #fff; }
#gmc-consent button.gmc-link, button.gmc-link {
  color: var(--gmc-blue, #134489);
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: .17em;
}

#gmc-consent .gmc-banner-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: .75rem;
  border-top: 1px solid var(--gmc-rule);
}

#gmc-consent .gmc-banner-links :is(button, a) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  gap: .45rem;
  font: 600 .89rem/1.2 var(--sans, system-ui, sans-serif);
  text-decoration: none;
}

#gmc-consent .gmc-banner-links :is(button, a):hover { text-decoration: underline; }

.gmc-controls-icon {
  display: inline-block;
  flex: 0 0 14px;
  height: 12px;
  color: inherit;
  background:
    linear-gradient(currentColor, currentColor) 0 3px / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 8px / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 1px / 2px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 9px 6px / 2px 5px no-repeat;
}

#gmc-consent :is(a, button, input):focus-visible, .gmc-policy :is(button, a):focus-visible, button.gmc-manage:focus-visible {
  outline: 2px solid #134489;
  outline-offset: 3px;
}

#gmc-consent .gmc-dialog {
  box-sizing: border-box;
  width: min(34rem, calc(100% - 24px));
  max-height: 90dvh;
  overflow: auto;
  padding: 0;
  background: #fff;
  border: 1px solid var(--gmc-rule);
  color: var(--gmc-ink);
}

#gmc-consent .gmc-dialog::backdrop { background: rgb(16 43 65 / 50%); }
#gmc-consent .gmc-dialog-header {
  padding: clamp(16px, 4vw, 26px);
  background: var(--gmc-wash);
  border-bottom: 1px solid var(--gmc-rule);
}
#gmc-consent .gmc-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#gmc-consent .gmc-dialog h2 { font-size: clamp(1.55rem, 4.5vw, 2.25rem); }
#gmc-consent .gmc-close {
  width: 44px;
  flex: 0 0 44px;
  padding: 0;
  color: var(--gmc-blue);
  border-color: transparent;
  font-size: 1.55rem;
  background: transparent;
}
#gmc-consent .gmc-form { margin: 0; padding: 0 clamp(16px, 4vw, 26px) clamp(16px, 4vw, 26px); }
#gmc-consent .gmc-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: .9rem 0;
  border-bottom: 1px solid var(--gmc-rule);
  font-size: .94rem;
  line-height: 1.4;
}
#gmc-consent .gmc-category strong { display: block; font-size: 1.05rem; }
#gmc-consent label.gmc-category { cursor: pointer; }
#gmc-consent .gmc-category input { margin: 0 .45rem; width: 22px; height: 22px; flex: 0 0 22px; accent-color: var(--gmc-blue); }

@media (forced-colors: none) {
  #gmc-consent .gmc-category input {
    appearance: none;
    margin: 0;
    width: 40px;
    height: 24px;
    flex-basis: 40px;
    border: 1px solid #6886a3;
    border-radius: 20px;
    background: radial-gradient(circle at 11px 50%, #496a8b 6px, transparent 6.5px) #fff;
    cursor: pointer;
  }
  #gmc-consent .gmc-category input:checked {
    background: radial-gradient(circle at 27px 50%, #fff 6px, transparent 6.5px) var(--gmc-blue);
    border-color: var(--gmc-blue);
  }
}
#gmc-consent .gmc-category p { font-size: inherit; }
#gmc-consent .gmc-required { white-space: nowrap; color: var(--gmc-blue); font-weight: 600; }
#gmc-consent .gmc-dialog .gmc-actions { padding-top: 1rem; }
#gmc-consent button.gmc-save { grid-column: 1 / -1; background: var(--gmc-wash); color: var(--gmc-blue); }

button.gmc-manage {
  min-height: 44px;
  padding: .5rem 0;
  justify-content: start;
  font-size: inherit;
}
#gmc-consent > .gmc-manage {
  position: fixed;
  z-index: 1000;
  bottom: 1rem;
  left: 1rem;
  padding-inline: .65rem;
  border: 1px solid var(--gmc-rule);
  background: #fff;
}

.pagina:has(> .gmc-policy) {
  box-sizing: border-box;
  max-width: 90rem;
  margin-inline: auto;
  padding-bottom: clamp(3rem, 8vw, 7rem);
}

.pagina:has(> .gmc-policy) .pagina-titulo { margin-bottom: clamp(1.3rem, 3vw, 2.25rem); }

.gmc-policy-intro {
  max-width: 68ch;
  margin-bottom: clamp(1.75rem, 4.8vw, 4rem);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
}
.gmc-policy-intro p { margin: 0 0 .85rem; }
.gmc-policy-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 3.2fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: start;
}
.gmc-policy-nav {
  padding: clamp(1rem, 2.3vw, 1.6rem);
  background: var(--gmc-wash);
}
.gmc-policy-nav ul { list-style: none; margin: 0 0 .75rem; padding: 0; }
.gmc-policy-nav li + li { border-top: 1px solid var(--gmc-rule); }
.gmc-policy-nav a { display: block; padding-block: .62rem; }
.gmc-policy-nav button, .gmc-policy-end button {
  padding-inline: .9rem;
  color: #fff;
  background: var(--gmc-blue);
  border-color: var(--gmc-blue);
  text-decoration: none;
}
.gmc-policy-nav button:hover, .gmc-policy-end button:hover { color: #fff; background: #102b41; }
.gmc-policy-section {
  border-top: 1px solid var(--gmc-rule);
  padding-block: clamp(1.1rem, 2.75vw, 2.2rem);
  scroll-margin-top: 8rem;
}
.gmc-policy-section + .gmc-policy-section { margin-top: .75rem; }
.gmc-policy-section h2 {
  margin: 0 0 1rem;
  color: var(--gmc-ink);
  font: 400 clamp(1.7rem, 3.5vw, 2.6rem)/1.1 var(--serif, Georgia, serif);
}
.gmc-policy-section dl { margin: 0; }
.gmc-policy-entry {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.1fr);
  gap: .3rem 1rem;
  padding-block: .9rem;
  border-bottom: 1px solid var(--gmc-rule);
}
.gmc-policy-entry:last-child { border-bottom: 0; }
.gmc-policy dt { font-weight: 600; }
.gmc-policy dd { margin: 0; overflow-wrap: anywhere; }
.gmc-policy code { overflow-wrap: anywhere; font-size: .86em; }
.gmc-policy-provider { display: block; color: var(--gmc-blue); font-weight: 600; margin-bottom: .15rem; }
.gmc-policy-note { margin: .8rem 0 0; padding: .85rem 1rem; background: var(--gmc-wash); }

@media (min-width: 761px) {
  .gmc-policy-nav { position: sticky; top: 8rem; }
}
@media (max-width: 760px) {
  .gmc-policy-layout, .gmc-policy-entry { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  #gmc-consent .gmc-banner {
    width: auto;
    inset-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  #gmc-consent .gmc-required { max-width: 5rem; white-space: normal; text-align: right; }
}
