.legal-center{display:grid;gap:14px}.legal-summary{padding:16px;border:1px solid #34506b;border-radius:16px;background:linear-gradient(145deg,#142238,#102c31)}.legal-summary h2{margin:0 0 7px}.legal-status{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;background:#403019;color:#ffd58a;font-weight:800}.legal-status.signed{background:#123b31;color:#83efd0}.legal-doc{border:1px solid #30435e;border-radius:15px;background:#111b2e;overflow:hidden}.legal-doc summary{padding:15px 16px;cursor:pointer;font-weight:850;list-style:none}.legal-doc summary::-webkit-details-marker{display:none}.legal-doc summary:after{content:'展開';float:right;color:#8ebcff;font-size:13px}.legal-doc[open] summary:after{content:'收合'}.legal-copy{max-height:52vh;overflow:auto;padding:0 17px 18px;color:#d6dfeb;line-height:1.72}.legal-copy h3{color:#fff;margin:18px 0 6px}.legal-copy ul{padding-left:22px}.legal-copy li+li{margin-top:6px}.legal-alert{padding:13px 14px;border-left:4px solid #ffbf55;background:#332817;border-radius:10px;color:#ffe0a6}.legal-checks{display:grid;gap:10px;margin:14px 0}.legal-confirmations{margin:14px 0;border:1px solid #344761;border-radius:14px;background:#0e192c;overflow:hidden}.legal-confirmations>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;cursor:pointer;font-weight:850;list-style:none}.legal-confirmations>summary::-webkit-details-marker{display:none}.legal-confirmations>summary small{color:#8ebcff;font-size:13px;white-space:nowrap}.legal-confirmations[open]>summary{border-bottom:1px solid #344761}.legal-confirmations.confirmed{border-color:#277c68;background:#102a2b}.legal-confirmations.confirmed>summary small{color:#83efd0}.legal-confirmations .legal-checks{margin:0;padding:12px}.legal-check{display:grid;grid-template-columns:24px 1fr;gap:10px;align-items:start;padding:12px;border:1px solid #344761;border-radius:12px;background:#111b2e}.legal-check input{width:20px;height:20px;margin:2px 0}.legal-sign{position:sticky;bottom:0;padding:14px;border:1px solid #3a526e;border-radius:15px;background:#0d1728ee;backdrop-filter:blur(8px)}.legal-sign button{min-height:50px}.legal-blocker{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:16px;background:#020713e8}.legal-blocker.hidden{display:none}.legal-blocker-panel{width:min(720px,100%);max-height:94vh;overflow:auto;padding:20px;border:1px solid #3c526e;border-radius:20px;background:#101a2c;box-shadow:0 24px 80px #000b}.legal-blocker-panel h1{margin:0 0 7px}.legal-meta{color:#9fb0c7;font-size:13px}.legal-emergency{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.legal-emergency div{padding:11px;border-radius:12px;background:#19273d;text-align:center}.legal-emergency b,.legal-emergency small{display:block}.legal-emergency small{color:#9fb0c7}@media(max-width:560px){.legal-emergency{grid-template-columns:1fr}.legal-blocker-panel{padding:15px}.legal-copy{max-height:44vh}.legal-confirmations>summary{padding:13px 12px;font-size:15px}}

/* 2026-11-09：五項都勾好時「同意並簽署」變綠色，沒勾完是灰色，一眼看得出能不能按 */
[data-legal-sign]{appearance:none;border:0;border-radius:14px;padding:13px 22px;font:inherit;font-weight:900;font-size:15px;cursor:pointer;background:linear-gradient(135deg,#5ee6bd,#7fe0a0);color:#06231a;box-shadow:0 6px 18px rgba(94,230,189,.28);transition:background .2s,box-shadow .2s,transform .1s}
[data-legal-sign]:active:not([disabled]){transform:scale(.98)}
[data-legal-sign]:focus-visible{outline:2px solid #5ee6bd;outline-offset:2px}
[data-legal-sign][disabled]{background:#3a4652;color:#9aa7b2;box-shadow:none;cursor:not-allowed}

/* 2026-12-03：網站改淺色主題後，這個深色視窗的文字跟著變深 → 深字疊深底看不見。視窗內一律固定淺色字 */
.legal-blocker-panel,.legal-center{color:#e6edf7}
.legal-blocker-panel h1,.legal-blocker-panel h2,.legal-center h2,.legal-doc summary,.legal-confirmations>summary{color:#f4f7fc}
.legal-check,.legal-check span,.legal-check label,.legal-summary p,.legal-sign,.legal-sign p,.legal-sign small{color:#dbe4f0}
