/* 法律页面样式 - Privacy Policy, Terms of Service */
.privacypage,
.termspage {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.legal-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 面包屑导航 */
.legal-container .breadcrumb {
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.legal-container .breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    font-size: 14px;
    flex-wrap: wrap;
}

.legal-container .breadcrumb li {
    display: flex;
    align-items: center;
}

.legal-container .breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: #999;
}

.legal-container .breadcrumb a {
    color: #009688;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-container .breadcrumb a:hover {
    color: #00796b;
    text-decoration: underline;
}

.legal-container .breadcrumb li[aria-current="page"] {
    color: #666;
    font-weight: 500;
}

/* 页面头部 */
.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #009688;
}

.legal-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.2;
}

.last-updated {
    font-size: 1rem;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 10px;
}

.agreement-notice {
    font-size: 1.1rem;
    color: #e74c3c;
    font-weight: 500;
    background-color: #ffeaa7;
    padding: 12px 20px;
    border-radius: 5px;
    border-left: 4px solid #fdcb6e;
    margin-top: 15px;
}

/* 主要内容区域 */
.legal-content {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

/* 节样式 */
.policy-section,
.terms-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.policy-section:last-child,
.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2,
.terms-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding: 0 0 10px 0;
    border-bottom: 2px solid #f1f1f1;
    position: relative;
}

.policy-section h2::after,
.terms-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #009688, #4DB6AC);
}

.policy-section h3,
.terms-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #34495e;
    margin: 25px 0 15px 0;
}

.policy-section h4,
.terms-section h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 20px 0 10px 0;
}

.policy-section p,
.terms-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
    text-align: justify;
}

.policy-section ul,
.terms-section ul {
    margin: 15px 0 20px 20px;
    padding: 0;
}

.policy-section li,
.terms-section li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
}

.policy-section li::before,
.terms-section li::before {
    content: "•";
    color: #009688;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.policy-section strong,
.terms-section strong {
    color: #2c3e50;
    font-weight: 600;
}

/* 联系信息 */
.contact-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #009688;
}

.contact-info p {
    margin: 8px 0;
    color: #444;
}

.contact-info a {
    color: #009688;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #00796b;
    text-decoration: underline;
}

/* 同意/接受区域 */
.policy-consent,
.terms-acceptance {
    background: linear-gradient(135deg, #009688, #4DB6AC);
    color: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 5px 15px rgba(0, 150, 136, 0.3);
}

.policy-consent p,
.terms-acceptance p {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    color: white;
}

/* 重要通知样式 */
.important-notice {
    background-color: #ffeaa7;
    border-left: 4px solid #fdcb6e;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.important-notice h3 {
    color: #d35400;
    margin-top: 0;
}

.important-notice p {
    color: #444;
    margin-bottom: 0;
}

/* 表格样式（用于可能的数据处理说明） */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.legal-table th {
    background-color: #009688;
    color: white;
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
}

.legal-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.legal-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.legal-table tr:hover {
    background-color: #f1f1f1;
}

/* 代码块样式（用于示例代码） */
.legal-code {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 15px 0;
    overflow-x: auto;
}

/* 引用样式 */
.legal-quote {
    border-left: 4px solid #009688;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 0 5px 5px 0;
}

/* 可折叠部分（用于FAQ样式） */
.legal-accordion {
    margin: 20px 0;
}

.accordion-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: #009688;
    transition: transform 0.3s;
}

.accordion-header.active::after {
    content: '-';
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-content.active {
    padding: 20px;
    max-height: 1000px;
}

/* 打印样式 */
@media print {
    .legal-container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .legal-content {
        box-shadow: none;
        padding: 0;
    }
    
    .breadcrumb,
    .agreement-notice,
    .policy-consent,
    .terms-acceptance {
        display: none;
    }
    
    .policy-section,
    .terms-section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .legal-container {
        padding: 0 15px;
    }
    
    .legal-header h1 {
        font-size: 2.2rem;
    }
    
    .legal-content {
        padding: 25px;
    }
    
    .policy-section h2,
    .terms-section h2 {
        font-size: 1.6rem;
    }
    
    .policy-section h3,
    .terms-section h3 {
        font-size: 1.3rem;
    }
    
    .policy-section p,
    .terms-section p {
        font-size: 1rem;
    }
    
    .policy-consent,
    .terms-acceptance {
        padding: 20px;
    }
    
    .policy-consent p,
    .terms-acceptance p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.8rem;
    }
    
    .legal-content {
        padding: 20px 15px;
    }
    
    .policy-section h2,
    .terms-section h2 {
        font-size: 1.4rem;
    }
    
    .policy-section h3,
    .terms-section h3 {
        font-size: 1.2rem;
    }
    
    .policy-section ul,
    .terms-section ul {
        margin-left: 15px;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .last-updated {
        font-size: 0.9rem;
    }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
    .privacypage,
    .termspage {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .legal-content {
        background-color: #1e1e1e;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    
    .legal-header h1 {
        color: #e0e0e0;
    }
    
    .policy-section h2,
    .terms-section h2,
    .policy-section h3,
    .terms-section h3,
    .policy-section h4,
    .terms-section h4 {
        color: #e0e0e0;
    }
    
    .policy-section p,
    .terms-section p,
    .policy-section li,
    .terms-section li {
        color: #b0b0b0;
    }
    
    .policy-section strong,
    .terms-section strong {
        color: #e0e0e0;
    }
    
    .contact-info {
        background-color: #252525;
    }
    
    .legal-table {
        border-color: #444;
    }
    
    .legal-table th {
        background-color: #00695c;
    }
    
    .legal-table td {
        border-color: #444;
        color: #b0b0b0;
    }
    
    .legal-table tr:nth-child(even) {
        background-color: #252525;
    }
    
    .legal-table tr:hover {
        background-color: #333;
    }
    
    .important-notice {
        background-color: #2d2d2d;
        border-left-color: #795548;
    }
    
    .important-notice h3 {
        color: #ff8a65;
    }
    
    .accordion-header {
        background-color: #252525;
        color: #e0e0e0;
    }
    
    .accordion-header:hover {
        background-color: #333;
    }
}