.legal-section {
    padding: 2rem;
    min-height: 100vh;
    background: var(--background-color);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, var(--color-primary-4) 0%, transparent 100%);
    opacity: 0.1;
    z-index: 0;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary-4);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.legal-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--color-primary-4);
    border-radius: 3px;
}

.last-updated {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.8;
}

.legal-content {
    line-height: 1.6;
}

.legal-content section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
    background: var(--background-color);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.legal-content section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary-4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-content section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.legal-content section:hover::before {
    opacity: 1;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
    background: var(--color-primary-4);
    display: inline-block;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    color: white;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1rem;
}

.legal-content ul {
    list-style-type: none;
    padding-left: 1.5rem;
}

.legal-content ul li {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    transition: transform 0.2s ease;
    font-size: 1rem;
}

.legal-content ul li:hover {
    transform: translateX(5px);
}

.legal-content ul li::before {
    content: "•";
    color: var(--color-primary-4);
    position: absolute;
    left: 0;
    font-weight: bold;
}

footer {
    background: var(--card-background);
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary-4), transparent);
    opacity: 0.3;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-content nav {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-content nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
}

.footer-content nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-4);
    transition: width 0.3s ease;
}

.footer-content nav a:hover {
    color: var(--color-primary-4);
}

.footer-content nav a:hover::after {
    width: 100%;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
}

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary-4);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background-color: var(--color-primary-6);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .legal-section {
        padding: 1rem;
    }

    .legal-container {
        padding: 1.5rem;
    }

    .legal-container h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.3rem;
    }

    .footer-content nav {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content nav a::after {
        display: none;
    }

    .back-to-top-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .legal-section {
        padding: 0.5rem;
    }

    .legal-container {
        padding: 1rem;
    }

    .legal-container h1 {
        font-size: 1.8rem;
    }

    .legal-content section {
        padding: 1rem;
    }

    .legal-content h2 {
        font-size: 1.2rem;
    }
} 