/* ==========================================================
   ARCA — COOKIES (complemento do .cookie-banner de styles.css)
========================================================== */

.cookie-banner a {
  color: var(--contrast);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-customize {
  align-self: center;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.cookie-customize:hover { color: var(--contrast); }

html.cookie-modal-open { overflow: hidden; }

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cookie-modal[hidden] { display: none; }

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 43, 60, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.cookie-modal-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--radius-large);
  background: var(--white);
  box-shadow: var(--shadow-large);
}

.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.cookie-modal-head h2 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
}

.cookie-modal-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.cookie-modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}

.cookie-modal-intro {
  margin-bottom: 16px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
  cursor: pointer;
}

.cookie-option:first-of-type { cursor: default; }

.cookie-option strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.cookie-option p {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.cookie-always {
  flex-shrink: 0;
  color: var(--contrast);
  font-size: 12.5px;
  font-weight: 600;
}

.cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
}

.cookie-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cookie-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c9d4d8;
  transition: background 180ms ease;
  pointer-events: none;
}

.cookie-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform 180ms ease;
}

.cookie-switch input:checked + span { background: var(--primary); }
.cookie-switch input:checked + span::after { transform: translateX(20px); }
.cookie-switch input:focus-visible + span { box-shadow: var(--focus-ring); }

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}

.cookie-modal-actions .btn {
  flex: 1 1 140px;
  min-height: 44px;
  font-size: 14px;
}

.cookie-modal-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--contrast);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Links legais no rodapé (todas as páginas) */

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 40px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid #ffffff1f;
}

.footer-legal-links a,
.footer-legal-links button {
  padding: 0;
  border: 0;
  background: none;
  color: #ffffffb3;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 160ms ease;
}

.footer-legal-links a:hover,
.footer-legal-links button:hover { color: #fff; }

.footer-legal-links + .footer-bottom { margin-top: 0; }
