/* Legal Pages Styles */

.legal-page {
    min-height: calc(100vh - 80px);
    padding-top: 6rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.policy-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
}

.policy-summary i {
    font-size: 1.2rem;
}

.legal-content {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    line-height: 1.7;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.legal-section h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.legal-section h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.legal-section p {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legal-section ul, .legal-section ol {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-primary);
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

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

.subsection {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.subsection h3 {
    margin-top: 0;
    color: #667eea;
}

/* Purpose Grid */
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.purpose-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.purpose-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.purpose-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.purpose-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.purpose-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Privacy Commitment */
.privacy-commitment {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border-radius: 12px;
    margin: 2rem 0;
}

.commitment-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.commitment-text h3 {
    color: white;
    margin: 0 0 0.5rem 0;
}

.commitment-text p {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

/* Security Measures */
.security-measures {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.security-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.security-item h4 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.security-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.right-item h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.right-item i {
    font-size: 1.2rem;
}

.right-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Info */
.contact-info {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method i {
    font-size: 1.2rem;
    color: #667eea;
    width: 20px;
    text-align: center;
}

.contact-method a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* Service Grid (Terms page) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.service-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Disclaimer Box */
.disclaimer-box {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.disclaimer-box h4 {
    color: white;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-box p {
    color: white;
    margin: 0;
}

/* Refund Policy */
.refund-policy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.refund-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.refund-item h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.refund-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Notice Boxes */
.availability-notice,
.liability-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.availability-notice h3,
.liability-notice h3 {
    color: #1e40af;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.availability-notice p,
.liability-notice p {
    color: #1e40af;
    margin: 0;
}

/* Legal Footer */
.legal-footer {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-footer p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: #667eea;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 5rem;
    }
    
    .legal-header h1 {
        font-size: 2.5rem;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.8rem;
    }
    
    .purpose-grid,
    .service-grid,
    .rights-grid,
    .refund-policy {
        grid-template-columns: 1fr;
    }
    
    .privacy-commitment {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .policy-summary {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .legal-header {
        padding: 1.5rem 1rem;
    }
    
    .legal-content {
        padding: 1.5rem 1rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .subsection {
        padding: 1rem;
    }
}
