/* 法律文档 / 隐私政策页 */

.legal-page-fullbleed {
    min-height: 100vh;
    min-height: 100dvh;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}

.legal-page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px clamp(16px, 4vw, 32px);
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.legal-page-version {
    font-size: 12px;
    color: #94a3b8;
}

.legal-page-scroll {
    flex: 1;
    overflow: auto;
    padding: 24px clamp(16px, 4vw, 48px) 100px;
}

.legal-doc {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    font-size: 14px;
    line-height: 1.75;
    color: #334155;
}

.legal-doc-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.legal-doc-title {
    margin: 0 0 12px;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.legal-doc-meta {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
}

.legal-doc-lead {
    font-weight: 500;
    color: #475569;
}

.legal-doc h2 {
    margin: 28px 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.legal-doc h3 {
    margin: 18px 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.legal-doc p {
    margin: 0 0 12px;
}

.legal-doc ul,
.legal-doc ol {
    margin: 0 0 14px;
    padding-left: 1.4em;
}

.legal-doc li {
    margin-bottom: 6px;
}

.legal-doc a {
    color: #2563eb;
    text-decoration: none;
}

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

.legal-doc-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: right;
    font-size: 13px;
    color: #64748b;
}

.legal-doc-footer p {
    margin: 0 0 4px;
}

/* 注册页隐私同意 */
.register-privacy-consent {
    margin: 16px 0 4px;
    padding: 14px 14px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.register-privacy-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.65;
    color: #475569;
    user-select: none;
}

.register-privacy-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #2563eb;
    cursor: pointer;
}

.register-privacy-consent a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.register-privacy-consent a:hover {
    text-decoration: underline;
}

.btn-link-inline {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: #2563eb;
    cursor: pointer;
    text-decoration: underline;
}

.btn-link-inline:hover {
    color: #1d4ed8;
}

.register-privacy-consent.is-error {
    border-color: #fca5a5;
    background: #fef2f2;
}

.register-privacy-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.45);
}

.register-privacy-modal.is-open {
    display: flex;
}

.register-privacy-modal-dialog {
    width: 100%;
    max-width: 720px;
    max-height: min(88vh, 900px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.register-privacy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.register-privacy-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.register-privacy-modal-body {
    flex: 1;
    overflow: auto;
    padding: 20px;
    font-size: 13px;
    line-height: 1.7;
    color: #475569;
}

.register-privacy-modal-body .legal-doc {
    max-width: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.register-privacy-modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.register-privacy-modal-footer .btn {
    min-width: 120px;
}
