/* Pagine legali (privacy / termini) + cookie banner — Caffè Toninho */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
}

.legal-updated {
  color: var(--light-gray);
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: var(--_spacing-system---spacing--spacing-4xl);
}

.legal-page h2 {
  font-family: var(--_typography---fonts--primary-font);
  color: var(--black);
  font-size: var(--_typography---typography--h4);
  font-weight: var(--_typography---font-weight--light);
  letter-spacing: var(--_typography---letter-spacing--h4-letter-spacing);
  margin-top: var(--_spacing-system---spacing--spacing-4xl);
  margin-bottom: var(--_spacing-system---spacing--spacing-l);
}

.legal-page p {
  color: var(--dark-gray);
  font-size: var(--_typography---body-text--text-xs);
  line-height: 1.7;
  margin-bottom: var(--_spacing-system---spacing--spacing-l);
}

.legal-page p strong {
  color: var(--black);
  font-weight: var(--_typography---font-weight--medium);
}

.footer-legal-links {
  display: flex;
  justify-content: flex-end;
  gap: var(--_spacing-system---spacing--spacing-l);
}

.footer-legal-link {
  color: var(--dark-gray);
  font-size: 13px;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-link:hover {
  color: var(--black);
}

/* --------------------------------------------------------------------------
   COOKIE BANNER (GDPR): consenso a Google Analytics, niente profiling
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 18px 15px 22px;
  background-color: #1c1613f2;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid #f3e8d81a;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1310px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-banner-text {
  color: var(--dark-gray);
  font-size: 14px;
  line-height: 1.55;
  max-width: 840px;
}

.cookie-banner-text a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  border: 1px solid #f3e8d826;
  border-radius: var(--_spacing-system---border-radius--button-radius);
  background-color: transparent;
  color: var(--dark-gray);
  font-family: var(--_typography---fonts--text-body);
  font-size: 13px;
  font-weight: var(--_typography---font-weight--medium);
  letter-spacing: 0.4px;
  padding: 11px 22px;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.cookie-btn:hover {
  color: var(--black);
  border-color: #f3e8d873;
}

.cookie-btn.is-primary {
  background-color: var(--black);
  border-color: var(--black);
  color: #1c1613;
}

.cookie-btn.is-primary:hover {
  opacity: 0.9;
}

.cookie-reopen {
  position: fixed;
  left: 15px;
  bottom: 15px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #4d3e36;
  border-radius: var(--_spacing-system---border-radius--button-radius);
  background-color: #1c1613e6;
  color: var(--dark-gray);
  font-size: 12px;
  letter-spacing: 0.3px;
  padding: 8px 14px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, color 0.3s ease, border-color 0.3s ease;
}

.cookie-reopen.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-reopen:hover {
  color: var(--black);
  border-color: var(--light-gray);
}

/* Footer credit "by FRED STUDIO" con animazione underline al passaggio del mouse */
.footer-credit {
  color: var(--dark-gray);
  font-size: 13px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.footer-credit-link {
  position: relative;
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-credit-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.footer-credit-link:hover {
  opacity: 0.75;
}

.footer-credit-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media screen and (max-width: 767px) {
  .footer-credit {
    width: auto;
    text-align: center;
  }
}

/* Footer bottom: layout ordinato (2 colonne desktop, stack centrato su mobile) */
.bottom-footer-copyrights-grid {
  grid-template-rows: auto;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 32px;
  row-gap: 0;
}

.rights-wrapper {
  min-width: 0;
}

.rights {
  display: block;
  text-align: left;
  text-wrap: pretty;
}

.rights-wrapper.footer-legal-links {
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
}

.footer-legal-link,
.footer-credit {
  white-space: nowrap;
}

.footer-credit {
  border-left: 1px solid var(--divider-gray);
  padding-left: 16px;
  margin-left: 4px;
}

@media screen and (max-width: 991px) {
  .bottom-footer-copyrights-grid {
    grid-template-columns: 1fr auto;
    column-gap: 24px;
  }
}

@media screen and (max-width: 767px) {
  .bottom-footer-copyrights-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
    text-align: center;
  }

  .rights-wrapper {
    width: 100%;
    justify-content: center;
  }

  .rights {
    text-align: center;
    text-wrap: balance;
    max-width: 560px;
  }

  .rights-wrapper.footer-legal-links {
    justify-content: center;
  }

  .footer-credit {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
}

@media screen and (max-width: 479px) {
  .bottom-footer-copyrights-grid {
    row-gap: 8px;
  }

  .rights-wrapper.footer-legal-links {
    row-gap: 6px;
    column-gap: 16px;
  }
}

@media screen and (min-width: 992px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner-actions {
    flex: 0 0 auto;
  }
}
