/* 
 * LEGAL PAGES (Terms, Privacy Policy) 
 * Typography and layout for long-form text
 */

.legal-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 140px 6vw 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.legal-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    color: #fff
}

.legal-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.legal-content-section {
    padding: 80px 6vw 120px;
    background: #ffffff;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    color: #334155;
    font-size: 1.1rem;
    line-height: 1.8;
}

.legal-container h2 {
    font-size: 2rem;
    color: #0f172a;
    margin: 48px 0 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.legal-container h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 32px 0 16px;
    font-weight: 600;
}

.legal-container p {
    margin-bottom: 24px;
}

.legal-container ul,
.legal-container ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.legal-container li {
    margin-bottom: 12px;
}

.legal-container a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s;
}

.legal-container a:hover {
    color: #1d4ed8;
}

.legal-last-updated {
    font-size: 0.95rem;
    color: #64748b;
    font-style: italic;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 120px 6vw 60px;
    }

    .legal-content-section {
        padding: 60px 6vw 80px;
    }

    .legal-container {
        font-size: 1.05rem;
    }

    .legal-container h2 {
        font-size: 1.75rem;
        margin: 40px 0 20px;
    }
}

/* --- Page Entrance Transition for Legal Pages --- */
#main {
    opacity: 1;
    /* Fallback if animation is not supported */
    animation: legalFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes legalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}