
/* =========================================================
   Signup
   ========================================================= */

.signup-section {
    padding: 44px 0 80px;
}

.signup-container {
    max-width: 980px;
}

.signup-head {
    margin-bottom: 30px;
}

.signup-head h1 {
    margin: 14px 0 10px;
    font-size: 39px;
    line-height: 1.2;
    letter-spacing: -.045em;
}

.signup-head p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.signup-global-alert {
    margin-bottom: 20px;
}

.signup-form {
    display: grid;
    gap: 18px;
}

.signup-panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.signup-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.signup-step {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
}

.signup-panel-head h2 {
    margin: 0;
    font-size: 21px;
    letter-spacing: -.025em;
}

.signup-panel-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.signup-grid {
    display: grid;
    gap: 18px 20px;
}

.signup-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signup-span-2 {
    grid-column: 1 / -1;
}

.form-group label em {
    margin-left: 3px;
    color: #ef4444;
    font-style: normal;
    font-size: 12px;
}

.input-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.field-action-button {
    min-width: 116px;
    white-space: nowrap;
}

.verification-code-area {
    display: none;
    margin-top: 16px;
}

.verification-code-area.is-visible {
    display: grid;
}

.verification-code-input {
    letter-spacing: .18em;
    font-weight: 800;
}

.verification-meta {
    min-height: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.field-message {
    min-height: 18px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.field-message-success {
    color: #0f9f6e;
}

html[data-theme="dark"] .field-message-success {
    color: #6ee7b7;
}

.field-message-error {
    color: #dc2626;
}

html[data-theme="dark"] .field-message-error {
    color: #fca5a5;
}

.field-message-notice {
    color: var(--muted);
}

.form-control.is-verified {
    border-color: #10b981;
    box-shadow: 0 0 0 3px color-mix(in srgb, #10b981 12%, transparent);
}

.document-upload-box {
    position: relative;
    padding: 26px;
    border: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--line));
    border-radius: 14px;
    background: var(--surface-2);
    text-align: center;
}

.document-upload-box input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.document-upload-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    cursor: pointer;
}

.document-upload-label strong {
    font-size: 15px;
}

.document-upload-label span {
    color: var(--muted);
    font-size: 12px;
}

.document-file-info {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    word-break: break-all;
}

.upload-policy {
    display: grid;
    gap: 3px;
    margin-top: 12px;
}

.upload-policy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.signup-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.signup-agreement input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--brand);
}

.signup-submit-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.signup-submit-area p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.signup-submit-button {
    min-width: 160px;
    min-height: 48px;
}

.signup-complete-section {
    padding: 54px 0 84px;
}

.signup-complete-container {
    max-width: 680px;
}

.signup-complete-card {
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.complete-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: color-mix(in srgb, #10b981 14%, var(--surface));
    color: #10b981;
    font-size: 29px;
    font-weight: 900;
}

.signup-complete-card h1 {
    margin: 8px 0 14px;
    font-size: 31px;
    letter-spacing: -.035em;
}

.complete-description {
    margin: 0 auto;
    max-width: 520px;
    color: var(--muted);
    font-size: 15px;
}

.complete-summary {
    margin: 28px 0 0;
    padding: 4px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
    text-align: left;
}

.complete-summary > div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.complete-summary > div:last-child {
    border-bottom: 0;
}

.complete-summary dt {
    color: var(--muted);
    font-size: 13px;
}

.complete-summary dd {
    margin: 0;
    font-size: 14px;
    font-weight: 750;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-pending {
    background: var(--brand-soft);
    color: var(--brand);
}

.complete-actions {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 28px;
}

@media (max-width: 700px) {
    .signup-section {
        padding-top: 28px;
    }

    .signup-head h1 {
        font-size: 33px;
    }

    .signup-panel {
        padding: 22px 18px;
    }

    .signup-grid-2 {
        grid-template-columns: 1fr;
    }

    .signup-span-2 {
        grid-column: auto;
    }

    .signup-submit-area {
        align-items: stretch;
        flex-direction: column;
    }

    .signup-submit-button {
        width: 100%;
    }

    .input-action-row {
        grid-template-columns: 1fr;
    }

    .field-action-button {
        width: 100%;
    }

    .verification-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

@media (max-width: 560px) {
    .signup-section {
        padding: 20px 0 54px;
    }

    .signup-complete-card {
        padding: 30px 20px;
    }

    .complete-summary > div {
        grid-template-columns: 80px minmax(0, 1fr);
    }
}

/* =========================================================
   회원가입 - 입찰정보 / 주요 취급 부류 1개 선택
   ========================================================= */

.bid-category-group {
    display: grid;
    gap: 12px;
}

.bid-category-title {
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
}

.bid-category-title em {
    margin-left: 3px;
    color: #ef4444;
    font-style: normal;
    font-size: 12px;
}

.bid-category-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}

.bid-category-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    user-select: none;
    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

.bid-category-option:hover {
    border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
    background: color-mix(in srgb, var(--brand) 5%, var(--surface));
}

.bid-category-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.bid-category-option span {
    font-size: 14px;
    font-weight: 750;
}

.bid-category-option:has(input:checked) {
    border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
    background: var(--brand-soft);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 7%, transparent);
}

.bid-category-option:has(input:checked) span {
    color: var(--brand);
}

.bid-category-option:has(input:focus-visible) {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.bid-category-help {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

@media (max-width: 700px) {
    .bid-category-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .bid-category-options {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   입찰 부류 선택 - 버튼형 단일 선택
   ========================================================= */

.bid-category-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 2px;
    border: 1px solid transparent;
    border-radius: 13px;
    transition:
        border-color .16s ease,
        background .16s ease;
}

.bid-category-options.is-error {
    padding: 8px;
    border-color: color-mix(in srgb, #ef4444 55%, var(--line));
    background: color-mix(in srgb, #ef4444 5%, var(--surface));
}

.bid-category-option {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
}

.bid-category-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.bid-category-option > span {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.bid-category-option:hover > span {
    border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
    background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}

.bid-category-option input:checked + span {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 5px 14px color-mix(in srgb, var(--brand) 20%, transparent);
}

.bid-category-option input:focus-visible + span {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.bid-category-option input:active + span {
    transform: translateY(1px);
}

.signup-agreement-list {
    display: grid;
    gap: 10px;
}

@media (max-width: 700px) {
    .bid-category-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .bid-category-options {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
   사업자등록증 선택 상태 / 미리보기
   ========================================================= */

.document-file-info {
    display: grid;
    justify-items: center;
    gap: 4px;
    margin-top: 15px;
}

.document-file-empty {
    color: var(--muted);
    font-size: 13px;
}

.document-file-name {
    max-width: min(100%, 620px);
    color: var(--text);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.document-file-meta {
    color: var(--muted);
    font-size: 13px;
}

.document-selected-preview-button {
    margin-top: 12px;
}

.document-preview-modal {
    display: none;
    position: fixed;
    z-index: 1400;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.document-preview-modal.is-open {
    display: flex;
}

.document-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .56);
    backdrop-filter: blur(5px);
}

.document-preview-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 920px);
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 26px 80px rgba(15, 23, 42, .28);
}

.document-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.document-preview-head h2 {
    margin: 3px 0 0;
    font-size: 19px;
}

.document-preview-kicker {
    color: var(--brand);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
}

.document-preview-close {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 27px;
    line-height: 1;
}

.document-preview-close:hover {
    background: var(--surface-2);
    color: var(--text);
}

.document-preview-body {
    min-height: 320px;
    max-height: calc(90vh - 76px);
    overflow: auto;
    padding: 18px;
    background: var(--surface-2);
}

.document-preview-image {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 120px);
    margin: 0 auto;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.document-preview-frame {
    display: block;
    width: 100%;
    height: min(72vh, 760px);
    border: 0;
    border-radius: 8px;
    background: #fff;
}

.document-preview-message {
    margin: 40px 0;
    color: var(--muted);
    text-align: center;
}

body.document-preview-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .document-preview-modal {
        padding: 10px;
    }

    .document-preview-dialog {
        width: 100%;
        max-height: 94vh;
    }

    .document-preview-body {
        max-height: calc(94vh - 76px);
        padding: 10px;
    }
}


/* =========================================================
   사업자등록증 드래그앤드롭
   ========================================================= */

.document-upload-box[data-document-dropzone] {
    transition:
        border-color .16s ease,
        background-color .16s ease,
        box-shadow .16s ease;
}

.document-upload-box[data-document-dropzone].is-dragover {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 7%, var(--surface-2));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
}

.document-drop-hint {
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
}

.document-selected-preview-button[hidden] {
    display: none !important;
}


/* =========================================================
   넓게 보기 (1500px) - 회원가입 / 가입완료
   ========================================================= */
@media (min-width: 901px) {
    html[data-layout="wide"] .signup-head p {
        max-width: 860px;
    }

    html[data-layout="wide"] .signup-form {
        gap: 20px;
    }

    html[data-layout="wide"] .signup-panel {
        padding: 32px;
    }

    html[data-layout="wide"] .signup-panel-head {
        margin-bottom: 27px;
    }

    html[data-layout="wide"] .signup-step {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 14px;
    }

    html[data-layout="wide"] .signup-panel-head h2 {
        font-size: 23px;
    }

    html[data-layout="wide"] .signup-panel-head p,
    html[data-layout="wide"] .signup-agreement,
    html[data-layout="wide"] .bid-category-title {
        font-size: 15px;
    }

    html[data-layout="wide"] .signup-grid {
        gap: 20px 24px;
    }

    html[data-layout="wide"] .field-action-button,
    html[data-layout="wide"] .signup-submit-button {
        min-height: 52px;
        font-size: 16px;
    }

    html[data-layout="wide"] .field-message,
    html[data-layout="wide"] .verification-meta,
    html[data-layout="wide"] .upload-policy p,
    html[data-layout="wide"] .bid-category-help,
    html[data-layout="wide"] .document-file-info,
    html[data-layout="wide"] .signup-submit-area p {
        font-size: 14px;
    }

    html[data-layout="wide"] .document-upload-box {
        padding: 30px;
    }

    html[data-layout="wide"] .document-upload-label strong {
        font-size: 16px;
    }

    html[data-layout="wide"] .document-upload-label span {
        font-size: 13px;
    }

    html[data-layout="wide"] .bid-category-option > span,
    html[data-layout="wide"] .bid-category-option span {
        min-height: 52px;
        font-size: 15px;
    }

    html[data-layout="wide"] .complete-summary dt,
    html[data-layout="wide"] .status-badge {
        font-size: 13px;
    }

    html[data-layout="wide"] .complete-summary dd,
    html[data-layout="wide"] .complete-description {
        font-size: 15px;
    }
}

/* 회원가입 사전 약관/개인정보 동의 - signup 페이지 전용 */
.signup-legal-all { display:flex; align-items:center; gap:10px; min-height:48px; padding:12px 14px; border:1px solid color-mix(in srgb, var(--brand) 32%, var(--line)); border-radius:10px; background:color-mix(in srgb, var(--brand) 6%, var(--surface)); color:var(--text); font-size:14px; font-weight:800; cursor:pointer; }
.signup-legal-all input, .signup-legal-item input { width:17px; height:17px; flex:0 0 auto; accent-color:var(--brand); }
.signup-legal-list { margin-top:10px; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--surface); }
.signup-legal-item { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; min-height:46px; padding:10px 14px; cursor:pointer; }
.signup-legal-item + .signup-legal-item { border-top:1px solid var(--line); }
.signup-legal-item span { color:var(--text); font-size:13px; line-height:1.55; }
.signup-legal-item span strong { color:var(--brand); font-size:11px; }
.signup-legal-item a { color:var(--muted); font-size:11px; font-weight:750; text-decoration:none; }
.signup-legal-item a:hover { color:var(--brand); text-decoration:underline; }
.signup-legal-version { margin:9px 2px 0; color:var(--muted); font-size:11px; text-align:right; }
@media (max-width: 620px) { .signup-legal-item { grid-template-columns:auto minmax(0,1fr); } .signup-legal-item a { grid-column:2; } }


/* 2026-08-22 회원가입 1단계: 약관 전문 확인 화면 */
.signup-legal-step-container { max-width: 1180px; }
.signup-legal-step-form { display: grid; gap: 14px; }
.signup-legal-step-all { margin-bottom: 2px; }
.signup-legal-document-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-soft); }
.signup-legal-document-head { min-height: 48px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.signup-legal-document-head > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.signup-legal-document-head strong { color: var(--text); font-size: 14px; }
.signup-legal-document-head span { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 11%, var(--surface)); color: var(--brand); font-size: 10px; font-weight: 850; }
.signup-legal-document-head a { flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 750; text-decoration: none; }
.signup-legal-document-head a:hover { color: var(--brand); text-decoration: underline; }
.signup-legal-frame { display: block; width: 100%; height: 220px; border: 0; background: var(--surface); }
.signup-legal-document-agree { min-height: 46px; padding: 10px 14px; display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 750; cursor: pointer; }
.signup-legal-document-agree input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--brand); }
.signup-legal-step-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 2px; }
.signup-legal-step-bottom > span { color: var(--muted); font-size: 11px; }
.signup-legal-next { min-width: 120px; }
.signup-details-legal-summary { margin: -4px 0 14px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--muted); font-size: 11px; }
.signup-details-legal-summary a { color: var(--brand); font-weight: 750; text-decoration: none; }
.signup-details-legal-summary a:hover { text-decoration: underline; }
@media (max-width: 760px) {
    .signup-legal-frame { height: 190px; }
    .signup-legal-step-bottom { align-items: stretch; flex-direction: column; }
    .signup-legal-next { width: 100%; }
    .signup-details-legal-summary { justify-content: space-between; }
}


/* 회원가입 약관 전문 모달: 약관 페이지의 새 탭 이동 대신 현재 화면에서 전문 확인 */
.signup-legal-modal-open {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--primary, #2563eb);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.signup-legal-modal-open:hover {
    text-decoration: underline;
}

.signup-legal-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.signup-legal-modal.is-open {
    display: flex;
}

.signup-legal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
}

.signup-legal-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1040px, calc(100vw - 56px));
    height: min(820px, calc(100vh - 56px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line, #dbe3ef);
    border-radius: 16px;
    background: var(--surface, #ffffff);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.signup-legal-modal-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line, #e5e7eb);
}

.signup-legal-modal-head h2 {
    margin: 2px 0 0;
    font-size: 18px;
    line-height: 1.35;
}

.signup-legal-modal-kicker {
    display: block;
    color: var(--text-muted, #64748b);
    font-size: 11px;
    font-weight: 700;
}

.signup-legal-modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line, #dbe3ef);
    border-radius: 10px;
    background: var(--surface-2, #f8fafc);
    color: var(--text, #0f172a);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.signup-legal-modal-close:hover {
    border-color: var(--primary, #2563eb);
    color: var(--primary, #2563eb);
}

.signup-legal-modal-body {
    min-height: 0;
    flex: 1 1 auto;
    background: var(--surface-2, #f8fafc);
}

.signup-legal-modal-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--surface, #ffffff);
}

body.signup-legal-modal-opened {
    overflow: hidden;
}

@media (max-width: 720px) {
    .signup-legal-modal {
        padding: 12px;
    }

    .signup-legal-modal-dialog {
        width: calc(100vw - 24px);
        height: calc(100vh - 24px);
        border-radius: 12px;
    }

    .signup-legal-modal-head {
        padding: 13px 14px;
    }
}


/* 약관 전문 모달: 야간모드 외곽선이 과도하게 밝아지지 않도록 공통 야간 라인톤 사용 */
html[data-theme="dark"] .signup-legal-modal-dialog {
    border-color: color-mix(in srgb, var(--line) 78%, transparent);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}
html[data-theme="dark"] .signup-legal-modal-head {
    border-bottom-color: color-mix(in srgb, var(--line) 72%, transparent);
}
html[data-theme="dark"] .signup-legal-modal-close {
    border-color: color-mix(in srgb, var(--line) 82%, transparent);
}
html[data-theme="dark"] .signup-legal-modal-close:hover {
    border-color: var(--brand, #3b82f6);
}
