/* ==========================================================================
   Débora Denúbila — Rodapé legal, páginas jurídicas e consentimento de cookies
   Carregado depois de styles.css.
   ========================================================================== */

/* Rodapé legal Nextep ----------------------------------------------------- */
.legal-footer {
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: var(--muted-footer);
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-bottom: 10px;
}

.legal-links a {
  color: inherit;
  text-decoration: none;
}

.legal-links a:hover,
.legal-footer a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-footer p {
  margin: 4px auto;
  max-width: 980px;
  color: var(--muted-footer);
  font-size: inherit;
  line-height: inherit;
  text-align: center;
}

.legal-footer a {
  color: inherit;
  text-decoration: none;
}

.legal-footer strong {
  color: #E7E3DB;
  font-weight: 600;
}

.legal-consent {
  color: #C9C6BF !important;
}

/* Páginas jurídicas ------------------------------------------------------- */
.legal-page {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 100px;
  background: #fff;
}

.legal-page__inner {
  max-width: 820px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease;
}

.legal-back:hover {
  color: var(--gold-text);
}

.legal-updated {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.legal-page h1 {
  margin-top: 8px;
  color: var(--brand);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.legal-page h2 {
  margin-top: 34px;
  color: var(--brand);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-page p {
  margin-top: 12px;
}

.legal-page ul {
  margin-top: 12px;
  padding-left: 22px;
  list-style: disc;
}

.legal-page li + li {
  margin-top: 6px;
}

.legal-page a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: var(--gold-text);
}

.legal-page strong {
  color: var(--text);
}

.legal-page code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--sage-bg);
  color: var(--brand);
  font-size: .9em;
}

.legal-intro {
  margin-top: 18px;
  color: var(--text) !important;
  font-size: 17px !important;
}

.legal-contact {
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.legal-contact p:first-child {
  margin-top: 0;
}

/* Aviso de cookies -------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 150;
  width: min(720px, calc(100vw - 32px));
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 22px 60px rgba(15, 20, 17, .24);
  transform: translateX(-50%);
  animation: cookie-rise .35s var(--ease-out) both;
}

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

.cookie-banner__title {
  color: var(--brand);
  font-size: 16px;
  font-weight: 700;
}

.cookie-banner__text {
  margin-top: 4px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
}

.cookie-banner__text a,
.cookie-modal__dialog a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.cookie-btn:hover {
  border-color: var(--brand);
  background: var(--sage-bg);
}

.cookie-btn--primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.cookie-btn--primary:hover {
  border-color: var(--gold-deep);
  background: var(--gold-deep);
}

.cookie-btn:focus-visible,
.cookie-modal__close:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 3px;
}

body.cookie-ui-open .whatsapp {
  opacity: 0;
  visibility: hidden;
  transform: scale(.92);
  pointer-events: none;
}

@keyframes cookie-rise {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Modal de preferências --------------------------------------------------- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}

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

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 17, .64);
  backdrop-filter: blur(2px);
}

.cookie-modal__dialog {
  position: relative;
  width: min(530px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100svh - 40px);
  overflow: auto;
  padding: 26px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(15, 20, 17, .32);
}

.cookie-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.cookie-modal__close:hover {
  background: var(--sage-bg);
  color: var(--brand);
}

.cookie-modal__close .icon {
  width: 18px;
  height: 18px;
}

.cookie-modal h2 {
  padding-right: 40px;
  color: var(--brand);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.cookie-modal__lead {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.cookie-group {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.cookie-group input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand);
}

.cookie-group__body {
  min-width: 0;
}

.cookie-group strong {
  display: block;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}

.cookie-group small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.cookie-modal__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

/* Responsivo -------------------------------------------------------------- */
@media (max-width: 900px) {
  .legal-footer {
    padding: 18px 0 22px;
  }

  .legal-links {
    gap: 6px 14px;
  }
}

@media (max-width: 600px) {
  .legal-page {
    padding-top: calc(var(--header-h) + 36px);
    padding-bottom: 72px;
  }

  .legal-page h1 {
    font-size: 32px;
  }

  .legal-page h2 {
    margin-top: 28px;
    font-size: 19px;
  }

  .legal-page p,
  .legal-page li {
    font-size: 15px;
  }

  .legal-intro {
    font-size: 16px !important;
  }

  .legal-footer {
    padding: 16px 0 20px;
    font-size: 11px;
  }

  .legal-links {
    gap: 4px 12px;
  }

  .cookie-banner {
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 16px;
  }

  .cookie-banner__actions .cookie-btn {
    flex: 1 1 auto;
  }

  .cookie-modal {
    padding: 12px;
  }

  .cookie-modal__dialog {
    padding: 22px 18px;
  }

  .cookie-modal__actions .cookie-btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }
}

@media print {
  .cookie-banner,
  .cookie-modal {
    display: none !important;
  }
}
