.legal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.legal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ajout d'un gradient pour le fade out en haut */
.legal-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, black 20%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

/* Ajout d'un gradient pour le fade in en bas */
.legal-content::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, black 20%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.legal-scroll {
    position: absolute;
    width: 80%;
    max-width: 1000px;
    animation: scrollUp 45s linear infinite;
    padding: 0 0 20vh 0;
    top: 50%;
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 80%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 80%,
        transparent 100%
    );
}

.legal-item {
    text-align: center;
    margin-bottom: 4rem;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
}

.legal-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.legal-item h2 {
    font-size: 2rem;
    margin: 1rem 0;
    color: white;
    text-transform: uppercase;
}

.legal-item p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

h1 {
    position: fixed;
    top: 2rem;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 3rem;
    text-transform: uppercase;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* On ajoute une classe qui sera ajoutée via JavaScript */
h1.fade-out {
    opacity: 0;
}

@keyframes scrollUp {
    from {
        transform: translateY(50vh);
    }
    to {
        transform: translateY(-100%);
    }
}

@keyframes fadeOutTitle {
    0% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Ajoutez une classe pour le style hover */
.legal-item:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Style pour les liens */
.legal-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-item a:hover {
    color: #ff7b00;
} 