/* 引入 Font Awesome 以显示返回按钮图标 */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

.top-header {
    background-color: var(--surface-color);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--text-color);
    padding: 5px 10px;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.back-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.top-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--title-color);
}

.legal-content {
    padding: 20px;
    background-color: var(--surface-color);
    line-height: 1.8;
    font-size: 13px; /* 缩小正文字体 */
    color: #666; /* 使用深灰色，比纯黑更柔和 */
    padding-bottom: 100px; /* 新增：为底部按钮留出空间 */
}

.legal-content .meta {
    font-size: 12px;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

.legal-content h2, .legal-content h3, .legal-content h4 {
    color: var(--title-color);
    margin-top: 28px; /* 增加大标题间距 */
    margin-bottom: 14px;
    font-weight: 600;
}

.legal-content h2 { font-size: 18px; }
.legal-content h3 { font-size: 16px; }

.legal-content p {
    margin-bottom: 16px;
    color: var(--text-color);
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.legal-content li {
    margin-bottom: 8px;
}

/* 新增：底部固定操作栏样式 */
.bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px 30px 20px; /* 增加底部安全区域的内边距 */
    background: linear-gradient(to top, var(--surface-color), rgba(255,255,255,0)); /* 底部渐变，使其不那么突兀 */
    z-index: 100;
}
