/* ==========================================================================
   法律条款页面 (服务条款 & 隐私政策) 专属样式
   采用极简、高可读性的苹果排版风格
   ========================================================================== */

/* 修复 Logo 异常放大的问题，与首页保持一致 */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}
.logo-img {
    height: 44px !important;
    width: auto !important;
    max-width: 100px !important;
    position: relative;
    z-index: 2;
    mix-blend-mode: screen;
}
.logo-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    margin-left: -8px;
    transform: skewX(-12deg);
}

/* 强制限制 Footer Logo，防止某些浏览器下渲染异常 */
.footer-logo {
    height: 36px !important;
    width: auto !important;
    max-width: 80px !important;
    mix-blend-mode: screen;
    vertical-align: middle;
    display: inline-block !important;
}

.legal-main {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.legal-container {
    width: 100%;
    max-width: 800px; /* 控制阅读宽度，符合人体工学 */
    padding: 60px;
    margin: 0 20px;
}

/* 顶部标题区 */
.legal-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.legal-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

/* 正文排版优化 */
.legal-content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.8; /* 增加行高，提升阅读舒适度 */
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 40px 0 20px 0;
    letter-spacing: 0.5px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin: 0 0 20px 0;
}

.legal-content strong {
    color: #fff;
    font-weight: 600;
}

/* 列表样式优化 */
.legal-content ul {
    margin: 0 0 24px 0;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 12px;
    position: relative;
}

.legal-content li::marker {
    color: rgba(255, 255, 255, 0.4);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .legal-container {
        padding: 40px 24px;
    }
    
    .legal-header h1 {
        font-size: 28px;
    }
    
    .legal-content {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .legal-container { padding: 32px 16px; }
    .legal-header h1 { font-size: 22px; }
    .legal-content { font-size: 14px; }
}