/* Legal Pages Styling - 符合网站主题的法律页面样式 */

.legal-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #F5F4F7 0%, #FFFFFF 50%, #F5F4F7 100%);
    padding-top: 80px;
    padding-bottom: 60px;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.legal-header {
    text-align: center;
    padding: 3rem 0 2rem;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 3rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-header .update-time,
.legal-header .effective-time {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0.3rem 0;
}

/* Content Styles */
.legal-content {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

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

.legal-section h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-light);
    position: relative;
}

.legal-section h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

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

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

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

.legal-section ul {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-color);
}

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

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(44, 150, 120, 0.05) 0%, rgba(44, 150, 120, 0.1) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin-bottom: 0.8rem;
}

.highlight-box strong {
    color: var(--primary-color);
    font-weight: 600;
}

.highlight-box ul {
    margin-top: 0.8rem;
}

.highlight-box li {
    color: var(--text-color);
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFBF0 100%);
    border-left: 4px solid #F39C12;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.warning-box strong {
    color: #E67E22;
    font-weight: 600;
}

.warning-box li {
    color: var(--text-color);
}

/* Note Box */
.note-box {
    background: linear-gradient(135deg, #E8F5F1 0%, #F0F8F6 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.note-box strong {
    color: var(--primary-color);
    font-weight: 600;
}

.note-box p {
    margin-bottom: 0.5rem;
}

/* Contact Box */
.contact-box {
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.contact-box ul {
    margin: 0;
    list-style: none;
}

.contact-box li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.contact-box strong {
    color: var(--primary-color);
    min-width: 80px;
}

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

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

.response-time {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Table Styles */
.info-table {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-table thead {
    background: var(--primary-color);
    color: var(--white);
}

.info-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.info-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.info-table tbody tr:last-child td {
    border-bottom: none;
}

.info-table tbody tr:hover {
    background: var(--primary-light);
    transition: var(--transition);
}

/* Links */
.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.legal-content a:hover {
    border-bottom-color: var(--primary-color);
}

/* Footer Styles */
.legal-footer {
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 3rem;
    border-top: 2px solid var(--border-color);
}

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

.legal-footer p:first-child {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.legal-footer .footer-links {
    margin-top: 1.5rem;
}

.legal-footer .footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin: 0 0.5rem;
}

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

.legal-footer .separator {
    color: var(--text-light);
    margin: 0 0.5rem;
}

/* Logo Link */
.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 70px;
        padding-bottom: 40px;
    }

    .legal-container {
        padding: 0 1rem;
    }

    .legal-header {
        padding: 2rem 1rem 1.5rem;
        margin-bottom: 2rem;
    }

    .legal-header h1 {
        font-size: 1.8rem;
    }

    .legal-content {
        padding: 1.5rem;
        border-radius: 8px;
    }

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

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

    .legal-section h4 {
        font-size: 1rem;
    }

    .highlight-box,
    .warning-box,
    .note-box,
    .contact-box {
        padding: 1rem;
    }

    .info-table {
        font-size: 0.9rem;
    }

    .info-table th,
    .info-table td {
        padding: 0.7rem 0.5rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .legal-footer .footer-links {
        display: none;
    }

    .legal-page {
        background: white;
        padding-top: 0;
    }

    .legal-header,
    .legal-content {
        box-shadow: none;
        border-radius: 0;
    }

    .legal-content a {
        color: var(--text-color);
        border-bottom: none;
    }

    .legal-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8rem;
        color: var(--text-light);
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}

/* Accessibility */
.legal-content strong {
    font-weight: 600;
}

.legal-content em {
    font-style: italic;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section {
    animation: fadeIn 0.6s ease-out;
}

.legal-section:nth-child(1) { animation-delay: 0.1s; }
.legal-section:nth-child(2) { animation-delay: 0.2s; }
.legal-section:nth-child(3) { animation-delay: 0.3s; }
.legal-section:nth-child(4) { animation-delay: 0.4s; }

