/* Legal Pages Styles - Uses variables from style.css */

.legal-page {
    min-height: 100vh;
    background: var(--bg-light);
    padding: 8rem var(--space-lg) 4rem;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 4rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: transform var(--transition);
}

.back-link:hover {
    transform: translateX(-4px);
}

.legal-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.last-updated {
    color: var(--text-gray);
    font-size: 1rem;
}

.legal-content {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.legal-intro {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-left: 4px solid var(--purple);
    border-radius: 8px;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.legal-section h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--purple);
}

.legal-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legal-section ul,
.legal-section ol {
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.8;
}

.legal-section li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.legal-section li strong {
    color: var(--purple);
    font-weight: 600;
}

.legal-section a {
    color: var(--purple);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.legal-section a:hover {
    border-bottom-color: var(--purple);
}

.contact-info {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.contact-info strong {
    color: var(--purple);
}

/* Navigation for legal pages */
.nav-floating {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-floating .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.nav-floating .logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-gray);
    text-decoration: none;
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--purple);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 111, 255, 0.4);
}

.mobile-menu-toggle {
    display: none;
}

/* Footer for legal pages */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: white;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: white;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 6rem 1rem 3rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.125rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-dark);
        border-radius: 2px;
    }
}
