/* ========================================
   法律页面样式 (隐私政策 & 服务条款)
   统一薄荷绿主题设计
   ======================================== */

/* 主容器 */
.legal-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 140px 24px 80px;
}

/* 页面头部 */
.legal-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.15);
}

.legal-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.legal-header .subtitle {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 24px;
}

/* 更新日期卡片 */
.update-info {
    display: inline-block;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.08) 0%, rgba(78, 205, 196, 0.04) 100%);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 12px;
    padding: 16px 32px;
    text-align: center;
}

.update-info .update-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 4px;
}

.update-info .update-date {
    font-size: 1rem;
    font-weight: 600;
    color: #4ECDC4;
}

/* 重要提示框 */
.important-notice {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFBF0 100%);
    border-left: 4px solid #FFC107;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

.important-notice-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.important-notice-icon {
    width: 24px;
    height: 24px;
    background: #FFC107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.important-notice h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #856404;
    margin: 0;
}

.important-notice p {
    color: #856404;
    line-height: 1.7;
    margin: 0;
}

/* 章节标题 */
.legal-section {
    margin-bottom: 48px;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #4ECDC4;
    display: inline-block;
}

.legal-section h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #2D3436;
    margin: 32px 0 16px;
}

.legal-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4A4A4A;
    margin: 24px 0 12px;
}

/* 段落 */
.legal-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4A4A4A;
    margin-bottom: 16px;
}

.legal-section p strong {
    color: #2D3436;
    font-weight: 600;
}

/* 列表 */
.legal-section ul {
    margin: 16px 0;
    padding-left: 0;
    list-style: none;
}

.legal-section ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    line-height: 1.7;
    color: #4A4A4A;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #4ECDC4;
    border-radius: 50%;
}

.legal-section ul li strong {
    color: #2D3436;
}

/* 有序列表 */
.legal-section ol {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-section ol li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #4A4A4A;
}

/* 联系信息卡片 */
.contact-card {
    background: #4ECDC4;
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin: 48px 0;
    box-shadow: 0 12px 40px rgba(78, 205, 196, 0.25);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    text-align: center;
}

.contact-card-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-item-value {
    font-size: 1.125rem;
    color: white;
    font-weight: 600;
    word-break: break-word;
}

.contact-item a {
    color: white;
    text-decoration: none;
}

/* 页脚说明 */
.legal-footer-note {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid rgba(78, 205, 196, 0.15);
    margin-top: 48px;
}

.legal-footer-note p {
    font-size: 0.875rem;
    color: #999;
    margin: 0;
}

/* 链接样式 */
.legal-section a {
    color: #4ECDC4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.legal-section a:hover {
    color: #44A39D;
    border-bottom-color: #4ECDC4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .legal-page-container {
        padding: 120px 20px 60px;
    }

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

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

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

    .contact-card {
        padding: 28px 20px;
    }

    .contact-card-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .update-info {
        padding: 12px 24px;
    }
}

/* 导航栏品牌名称样式统一 */
.navbar .brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选中文本样式 */
::selection {
    background: rgba(78, 205, 196, 0.3);
    color: #1a1a1a;
}

::-moz-selection {
    background: rgba(78, 205, 196, 0.3);
    color: #1a1a1a;
}
