/* Legal pages styling (Privacy Policy, Terms of Service, etc.) */
.legal-container {
    max-width: 800px;
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.5s ease-out;
}

.legal-header__title {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.legal-header__date {
    color: var(--text-light);
    font-size: 1.1rem;
}

.legal-section {
    background-color: var(--card-background);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.legal-section__title {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.legal-section__content {
    color: var(--text-light);
    line-height: 1.6;
}

.legal-list {
    list-style: none;
    padding-left: 0;
}

.legal-list__item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.legal-list__item::before {
    content: "•";
    color: var(--text-light);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.legal-link {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-link:hover,
.legal-link:focus {
    color: var(--button-hover-background);
    text-decoration: none;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--card-background);
    color: var(--text-light);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
    background-color: var(--text-light);
    color: var(--background-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
