.bg { display: none; }
body { overflow: hidden; }

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* Snap sections */
.legal-hero,
.legal-content,
.site-footer {
  height: 100vh;
  scroll-snap-align: start;
}

/* Background logic */
.legal-hero,
.legal-content{
  position: relative;
  isolation: isolate;
}

.legal-hero::before,
.legal-content::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--legal-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 0;
}

.legal-hero::after,
.legal-content::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.15)
  );
  z-index: 1;
}

.legal-hero > .container,
.legal-content > .container{
  position: relative;
  z-index: 2;
}

/* Hero: dark bg → transparent overlay, white text */
.legal-hero{
  color: rgba(15,15,18,0.92);
}

.legal-hero::after{
  background: transparent;
}

/* Hero */
.legal-hero{
  display: grid;
  align-items: center;
}

.legal-hero > .container{
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  padding-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

/* Content section */
.legal-content{
    display: grid;
    align-items: center;
  }
  
  .legal-content__wrap{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 900px;
    padding-top: clamp(1rem, 2vh, 2rem);
    padding-bottom: clamp(8rem, 14vh, 11rem);
  }

.legal-card{
  margin-top: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  overflow: hidden;
  color: rgba(15,15,18,0.90);
}

.legal-scroll{
  max-height: 58vh;
  overflow-y: auto;
  padding: 1.4rem 1.4rem 1.6rem;
  line-height: 1.65;
}

.legal-scroll h3{
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: rgba(15,15,18,0.92);
}

.legal-scroll h4{
  color: rgba(15,15,18,0.90);
}

.legal-scroll p{
  margin: 0 0 1rem;
  color: rgba(15,15,18,0.84);
  max-width: 70ch;
}

.legal-scroll li{
  color: rgba(15,15,18,0.84);
}

.legal-content .legal-card .legal-scroll a{
  color: rgba(15,15,18,0.92);
}

.legal-scroll::-webkit-scrollbar{
  width: 10px;
}

.legal-scroll::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.14);
  border-radius: 999px;
}

@media (max-width: 700px){
  .legal-content__wrap{
    max-width: 100%;
  }

  .legal-scroll{
    max-height: 56vh;
    padding: 1.1rem 1rem 1.2rem;
  }
}

/* nasconde scrollbar ma mantiene scroll */
.legal-scroll{
    scrollbar-width: none; /* Firefox */
  }
  
  .legal-scroll::-webkit-scrollbar{
    display: none; /* Chrome/Safari */
  }
