.legal-page {
    background-color: #F3F4F6;
    padding: 140px 0 var(--space-2xl) 0;
    min-height: 100vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.legal-back-link {
    display: inline-block;
    color: #8A2BE2;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: opacity var(--duration-fast);
}

.legal-back-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.legal-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 3rem 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    color: #334155;
    font-size: 16px;
    line-height: 1.8;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-header h1 {
    font-family: var(--font-heading);
    color: #0F172A;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.legal-header h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8A2BE2, #FF1493);
    border-radius: 2px;
}

.legal-date {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-top: 2rem;
}

.legal-content h2 {
    font-family: var(--font-heading);
    color: #0F172A;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 3.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ensure the first h2 doesn't have top margin */
.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h2 .legal-num {
    color: #8A2BE2;
    font-weight: 700;
}

.legal-content p {
    margin-bottom: 1.5rem;
}

.legal-content ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: #0F172A;
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 var(--space-xl) 0;
    }

    .legal-card {
        padding: 2rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }
}

.legal-highlight {
    background-color: #F8FAFC;
    border-left: 4px solid #8A2BE2;
    /* Primary Purple */
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.legal-highlight svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #8A2BE2;
    margin-top: 2px;
}

.legal-highlight p {
    margin-bottom: 0 !important;
}

.legal-highlight strong {
    color: #0F172A;
}