/* ========================================
   Legal Pages Styles (Privacy & Terms)
   ======================================== */

.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--card-border);
}

.legal-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px 8px 8px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.legal-app-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
}

.legal-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legal-header h1 {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-updated {
    font-size: 15px;
    color: var(--text-muted);
}

/* Content Sections */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-section ul {
    margin-bottom: 16px;
    padding-left: 0;
}

.legal-section li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.legal-section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--gradient);
    border-radius: 50%;
}

.legal-section strong {
    color: var(--text-primary);
}

/* Callout Boxes */
.legal-callout {
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.legal-callout p {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-callout p:last-child {
    margin-bottom: 0;
}

.legal-callout ul {
    margin-bottom: 12px;
}

.legal-callout.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.legal-callout.warning p,
.legal-callout.warning li {
    color: #F59E0B;
}

.legal-callout.warning li::before {
    background: #F59E0B;
}

.legal-callout.danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    text-align: center;
}

.legal-callout.danger p {
    color: #EF4444;
    font-size: 18px;
    margin: 0;
}

/* Email Link */
.legal-email {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gradient);
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition);
}

.legal-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

/* Footer Links */
.legal-footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--card-border);
}

.legal-footer-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.legal-footer-links a:hover {
    color: var(--gradient-start);
}

/* Simplified Footer for Legal Pages */
.legal-page + .footer {
    padding: 40px 0;
}

.legal-page + .footer .footer-content,
.legal-page + .footer .footer-brand,
.legal-page + .footer .footer-links {
    display: none;
}

/* Responsive */
@media (max-width: 640px) {
    .legal-page {
        padding: 100px 0 60px;
    }
    
    .legal-header {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
    
    .legal-section {
        margin-bottom: 32px;
    }
    
    .legal-section h2 {
        font-size: 20px;
    }
    
    .legal-callout {
        padding: 16px 20px;
    }
    
    .legal-footer-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}
