/**
 * NISHOW 法律页面样式
 * 服务条款、隐私政策等页面
 * 基于 common.css 的扩展
 */

/* ========== 页面基础 ========== */
body.legal-page {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== 顶部导航 ========== */
.legal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.legal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.legal-brand .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.legal-brand .brand-name {
    font-size: 18px;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 主容器 ========== */
.legal-container {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
    width: 100%;
}

/* ========== 内容区 ========== */
.legal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
}

.legal-title {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.legal-title h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.legal-title h1 i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-title .update-date {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

/* ========== 章节 ========== */
section {
    margin-bottom: 32px;
}

section:last-child {
    margin-bottom: 0;
}

section h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

section h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 20px 0 12px;
}

section p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-align: justify;
}

section ul,
section ol {
    margin: 12px 0;
    padding-left: 24px;
}

section li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

section li strong {
    color: var(--text-primary);
}

section a {
    color: var(--accent-primary);
    text-decoration: none;
}

section a:hover {
    text-decoration: underline;
}

/* ========== 高亮块 ========== */
.highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
}

.highlight i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.highlight.info {
    background-color: rgba(168, 199, 250, 0.1);
    border-left: 4px solid var(--accent-primary);
}

.highlight.info i {
    color: var(--accent-primary);
}

.highlight.warning {
    background-color: rgba(253, 214, 99, 0.1);
    border-left: 4px solid var(--warning-color);
}

.highlight.warning i {
    color: var(--warning-color);
}

.highlight.success {
    background-color: rgba(129, 201, 149, 0.1);
    border-left: 4px solid var(--success-color);
}

.highlight.success i {
    color: var(--success-color);
}

/* ========== 表格 ========== */
.table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.info-table th,
.info-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.info-table th {
    background-color: var(--bg-tertiary);
    font-weight: 500;
    color: var(--text-primary);
}

.info-table td {
    color: var(--text-secondary);
}

.info-table tbody tr:hover {
    background-color: var(--bg-hover);
}

/* ========== 底部链接 ========== */
.legal-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    font-size: 14px;
    color: var(--text-tertiary);
}

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

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

.legal-footer .divider {
    margin: 0 16px;
    color: var(--border-color);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .legal-header {
        padding: 12px 16px;
    }

    .legal-container {
        padding: 24px 16px;
    }

    .legal-content {
        padding: 24px;
    }

    .legal-title h1 {
        font-size: 22px;
    }

    section h2 {
        font-size: 16px;
    }

    .highlight {
        padding: 12px 16px;
    }

    .info-table th,
    .info-table td {
        padding: 8px 12px;
        font-size: 13px;
    }
}
