/* 法律文档页面样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f5f7fa;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* 头部样式 */
.legal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 40px 40px;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #fff;
}

.legal-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.update-date {
    font-size: 14px;
    opacity: 0.8;
}

/* 主要内容区域 */
.legal-content {
    padding: 40px;
}

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

.intro-section > p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.important-notice {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.important-notice strong {
    color: #856404;
}

/* 章节样式 */
.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.legal-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin: 20px 0 15px;
}

.legal-section p {
    margin-bottom: 15px;
    text-align: justify;
}

.legal-section ul {
    margin: 15px 0 15px 30px;
}

.legal-section li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.legal-section a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.legal-section a:hover {
    border-bottom-color: #667eea;
}

/* 联系信息 */
.contact-info {
    list-style: none;
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.contact-info li {
    margin-bottom: 12px;
    padding-left: 0;
}

.contact-info a {
    color: #667eea;
    text-decoration: none;
}

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

/* 结尾部分 */
.closing-section {
    margin-top: 60px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.closing-section p {
    margin-bottom: 15px;
}

.version-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    font-size: 14px;
    color: #6c757d;
}

.version-info p {
    margin-bottom: 5px;
}

/* 页脚 */
.legal-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 40px;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.legal-footer p {
    font-size: 14px;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .legal-header {
        padding: 40px 20px 30px;
    }

    .legal-header h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 16px;
    }

    .legal-content {
        padding: 30px 20px;
    }

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

    .legal-section h3 {
        font-size: 16px;
    }

    .legal-footer {
        padding: 20px;
    }

    .footer-links a {
        display: block;
        margin: 10px 0;
    }
}

/* 打印样式 */
@media print {
    .back-link,
    .legal-footer {
        display: none;
    }

    .legal-header {
        background: none;
        color: #000;
    }

    .legal-container {
        box-shadow: none;
    }

    body {
        background-color: #fff;
    }
}

