/* Integrated Legal Page Styles matching Solvoro Theme */

.legal-page-container {
    padding: calc(var(--space) * 1.5) var(--space) calc(var(--space) * 2);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* New Standalone Header (sits outside the card) */
.legal-header-standalone {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    animation: titleReveal 0.8s ease forwards;
}

.legal-header-standalone h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-0);
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    /* Optional: Gradient text for the main title */
    background: linear-gradient(135deg, var(--text-0), var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.last-updated {
    font-size: 1rem;
    color: var(--text-1);
    font-weight: 500;
    opacity: 0.9;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--accent-2); /* The little underline from your image */
}

/* The Content Card */
.legal-content-wrapper {
    max-width: 1000px;
    width: 100%;
    
    /* Glassmorphism Card Style */
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    padding: calc(var(--space) * 2);
    box-shadow: var(--shadow-1);
    backdrop-filter: blur(18px) saturate(140%);
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-0);
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.legal-body section {
    margin-bottom: 30px;
    margin-top: -50px;
}

.legal-body h2 {
    font-size: 1.4rem;
    color: var(--text-0);
    margin-bottom: 16px;
    font-weight: 700;
}

.legal-body p, .legal-body li {
    font-size: 1rem;
    color: var(--text-1);
    line-height: 1.7;
    margin-bottom: 12px;
}

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

.legal-body li::marker {
    color: var(--accent-1);
}

/* --- AGREEMENT BOX (Red Border) --- */
.agreement-box {
    /* Separate box styling */
    background: rgba(255, 50, 50, 0.03); /* Very subtle red tint */
    border: 1px solid rgba(255, 80, 80, 0.4); /* Red border */
    border-left: 4px solid #ff4d4d; /* Thick red left accent */
    
    padding: 24px;
    margin-top: 50px;
    border-radius: var(--r-md);
    color: var(--text-0);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.agreement-box p {
    margin: 0;
    font-weight: 600;
}

/* Contact Link */
.contact-link {
    color: var(--accent-1);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--accent-2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .legal-page-container {
        padding-top: 120px;
    }
    .legal-content-wrapper {
        padding: 20px;
    }
    .legal-header-standalone h1 {
        font-size: 2rem;
    }
}