/* Stili pagine legali e footer */

html.page--legal {
  overflow-x: hidden;
  overflow-y: auto;
}

body.page--legal {
  height: auto;
  min-height: 100dvh;
  overflow-x: clip;
  overflow-y: visible;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
  padding: clamp(1.25rem, 3vmin, 2rem) clamp(1rem, 3vmin, 1.5rem);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__social {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.65rem;
}

.site-footer__nav a {
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.3s ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__nav a:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
}

.site-footer__copy {
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.28);
}

/* Icona Instagram dark — effetto glitch VHS */
.social-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
  transition: transform 0.2s ease;
}

.social-ig__stack {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
}

.social-ig--home .social-ig__stack {
  width: 1.65rem;
  height: 1.65rem;
}

.social-ig__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.social-ig__layer--base {
  color: rgba(255, 255, 255, 0.46);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.08));
}

.social-ig__layer--red {
  color: var(--vhs-red, rgba(255, 72, 72, 0.65));
  opacity: 0;
  animation: ig-chroma-red var(--rhythm, 12s) steps(1) infinite;
}

.social-ig__layer--cyan {
  color: var(--vhs-cyan, rgba(72, 196, 255, 0.65));
  opacity: 0;
  animation: ig-chroma-cyan var(--rhythm, 12s) steps(1) infinite;
}

.social-ig:hover .social-ig__layer--base,
.social-ig:focus-visible .social-ig__layer--base {
  color: rgba(255, 255, 255, 0.88);
}

.social-ig:hover,
.social-ig:focus-visible {
  transform: scale(1.06);
}

.social-ig:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 5px;
  border-radius: 2px;
}

@keyframes ig-chroma-red {
  0%, 82%, 88%, 100% {
    opacity: 0;
    transform: translate(0, 0);
  }

  83%, 85% {
    opacity: 0.9;
    transform: translate(-1.5px, 0.5px);
  }

  84%, 86% {
    opacity: 0.65;
    transform: translate(1px, -0.5px);
  }

  87% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes ig-chroma-cyan {
  0%, 82%, 88%, 100% {
    opacity: 0;
    transform: translate(0, 0);
  }

  83%, 85% {
    opacity: 0.9;
    transform: translate(1.5px, -0.5px);
  }

  84%, 86% {
    opacity: 0.65;
    transform: translate(-1px, 0.5px);
  }

  87% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

.home-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: calc(var(--logo-size) * 0.06);
}

.home-links__join {
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: clamp(0.6875rem, 2vmin, 0.8125rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.48);
  transition: color 0.3s ease;
}

.home-links__join:hover,
.home-links__join:focus-visible {
  color: rgba(255, 255, 255, 0.9);
}

.home-links__join:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 4px;
}

.legal-page {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vmin, 2.75rem) clamp(1rem, 3vmin, 1.5rem) clamp(2rem, 5vmin, 3rem);
}

.legal-page__title {
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: clamp(1rem, 3vmin, 1.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.35rem;
}

.legal-page__updated {
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 1.75rem;
}

.legal-page h2 {
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 1.75rem 0 0.65rem;
}

.legal-page p,
.legal-page li {
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
}

.legal-page ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.legal-page a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: #fff;
}

.legal-page__back {
  display: inline-block;
  margin-top: 2rem;
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.45);
}

.legal-page__back:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Checkbox consenso privacy */
.join-form__field--consent {
  margin-top: 0.25rem;
}

.join-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}

.join-form__consent input {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: #fff;
  cursor: pointer;
}

.join-form__consent span {
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.join-form__consent a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.join-form__consent a:hover {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .social-ig__layer--red,
  .social-ig__layer--cyan {
    animation: none;
    opacity: 0;
  }

  .social-ig:hover,
  .social-ig:focus-visible {
    transform: none;
  }
}
