.legal-consent {
    margin: 4px 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f7f8fc;
    font-size: 14px;
    color: #555;
}

.legal-consent-row {
    margin: 4px 0;
    min-height: 24px;
}

.legal-consent-row .form-check-input {
    cursor: pointer;
}

.legal-consent-row a {
    color: var(--primary-color, #5b5fde);
    text-decoration: none;
}

/* 2026-11-10: the login page shows one line of text where the two boxes used to be. */
.legal-consent--notice {
    margin: 0 0 14px;
    padding: 0;
    background: none;
    text-align: center;
}

.legal-consent-notice {
    font-size: 13px;
    line-height: 1.7;
    color: #8a8f99;
}

.legal-consent-notice a {
    color: var(--primary-color, #5b5fde);
    text-decoration: none;
    /* Keep 《服务条款》/《隐私政策》 whole on a 390px screen instead of breaking inside the title. */
    white-space: nowrap;
}

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

.legal-consent-message {
    color: #c0392b;
    font-size: 13px;
    margin-top: 4px;
}

.legal-consent-message:empty {
    display: none;
}

.legal-notice-bar {
    position: relative;
    z-index: 1050;
    padding: 10px 44px 10px 16px;
    background: #fff8e6;
    color: #6b4f00;
    font-size: 14px;
    border-bottom: 1px solid #f3e2b3;
}

.legal-notice-bar a {
    color: #8a5a00;
    text-decoration: underline;
}

.legal-notice-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    font-size: 18px;
    color: #8a5a00;
    cursor: pointer;
}
