/* static/legal.css */

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-400: #94a3b8;
    --slate-50: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    background-color: #0f172a;
    color: #f8fafc;
    overflow-y: auto !important; /* Force scrolling */
    height: auto !important;
    min-height: 100vh;
}

body {
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.1), transparent 40%),
                radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.05), transparent 40%);
    padding: 80px 24px;
}

.legal-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    animation: appear 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes appear {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

header.legal-header {
    margin-bottom: 60px;
    text-align: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    margin-bottom: 48px;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-box {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.logo-link span {
    font-size: 32px;
    font-weight: 950;
    color: white;
    letter-spacing: -0.05em;
}

.legal-header h1 {
    font-size: 56px;
    font-weight: 950;
    letter-spacing: -0.06em;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.last-updated {
    font-size: 14px;
    font-weight: 800;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.legal-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px;
    border-radius: 80px; /* Floating Island effect */
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.5);
}

.legal-content section {
    margin-bottom: 64px;
}

.legal-content h2 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.legal-content h2::before {
    content: '';
    width: 32px;
    height: 4px;
    background: #10b981;
    border-radius: 100px;
}

.legal-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: #cbd5e1;
    margin: 32px 0 16px 0;
}

.legal-content p {
    font-size: 17px;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 20px;
    font-weight: 500;
}

.legal-content ul {
    list-style: none;
    margin-bottom: 24px;
}

.legal-content li {
    font-size: 17px;
    color: #94a3b8;
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    font-weight: 500;
}

.legal-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 900;
}

.legal-footer {
    margin-top: 80px;
    text-align: center;
}

.back-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #10b981;
}

@media (max-width: 768px) {
    body { padding: 40px 16px; }
    .legal-card { padding: 40px 24px; border-radius: 40px; }
    .legal-header h1 { font-size: 36px; }
    .logo-link span { font-size: 24px; }
    .logo-box { width: 48px; height: 48px; padding: 8px; }
}
