/* legal.css */
:root {
    --legal-bg: #f8fafc;
    --legal-card-bg: #ffffff;
    --legal-text: #334155;
    --legal-heading: #0f172a;
    --legal-primary: #25D366;
    --legal-secondary: #0f172a;
    --legal-border: #e2e8f0;
}

body.legal-page {
    background-color: var(--legal-bg);
    color: var(--legal-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

.legal-section {
    animation: fadeIn 0.6s ease-out both;
}

.legal-section:nth-child(2) {
    animation-delay: 0.1s;
}

.legal-section:nth-child(3) {
    animation-delay: 0.2s;
}

.legal-section:nth-child(4) {
    animation-delay: 0.3s;
}

.legal-section:nth-child(5) {
    animation-delay: 0.4s;
}

.legal-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.legal-main {
    flex: 1;
    background: var(--legal-card-bg);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.legal-main:hover {
    transform: translateY(-2px);
}

.legal-sidebar {
    width: 280px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #64748b;
}

.breadcrumb a {
    color: var(--legal-primary);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 8px;
}

h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--legal-heading);
    margin-bottom: 8px;
}

.last-updated {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--legal-border);
    padding-bottom: 20px;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--legal-heading);
    margin: 40px 0 20px;
    scroll-margin-top: 120px;
}

p {
    margin-bottom: 20px;
}

ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

.info-box {
    background: #f1f5f9;
    border-left: 4px solid var(--legal-primary);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.toc {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--legal-border);
}

.toc h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--legal-heading);
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc ul li {
    margin-bottom: 12px;
}

.toc ul li a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: block;
}

.toc ul li a:hover,
.toc ul li a.active {
    color: var(--legal-primary);
    font-weight: 600;
}

@media (max-width: 992px) {
    .legal-container {
        flex-direction: column;
    }

    .legal-sidebar {
        display: none;
    }

    .legal-main {
        padding: 30px;
    }
}