/* ========================================
   Legal Pages Styles (Accessibility, Terms, Privacy)
   ======================================== */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-blue-light) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.1), transparent 70%);
    animation: floatAnimation 8s ease-in-out infinite;
}

.page-header h1 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.page-header p {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* Legal Section */
.legal-section {
    padding: 80px 0 100px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.legal-updated {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 40px;
}

.legal-block {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

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

.legal-block h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    padding-right: 20px;
}

.legal-block h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.legal-block h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 25px 0 15px;
}

.legal-block p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.legal-block ul {
    margin: 15px 0;
    padding-right: 25px;
}

.legal-block li {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-gray);
    margin-bottom: 10px;
    position: relative;
}

.legal-block li::marker {
    color: var(--primary-color);
}

.legal-block li strong {
    color: var(--text-dark);
}

.legal-block a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.legal-block a:hover {
    text-decoration: underline;
}

/* Contact Info Box */
.contact-info-box {
    background: rgba(0, 102, 255, 0.05);
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 25px 30px;
    margin: 20px 0;
}

.contact-info-box p {
    margin-bottom: 10px;
}

.contact-info-box p:last-child {
    margin-bottom: 0;
}

/* Important Note Box */
.important-note {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-md);
    padding: 20px 25px;
    margin: 20px 0;
}

.important-note p {
    color: var(--text-dark);
    margin-bottom: 0;
}

/* Table of Contents */
.legal-toc {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 40px;
}

.legal-toc h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    margin-bottom: 8px;
}

.legal-toc a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
}

.legal-toc a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 36px;
    }

    .legal-content {
        padding: 0 15px;
    }

    .legal-block h2 {
        font-size: 20px;
    }

    .contact-info-box {
        padding: 20px;
    }
}
