/* Time-gated legal notice popup (2026-12-02 15:00 ~ 12-17 19:00 KST). Markup is built by notice-popup.js. */
html.notice-open,html.notice-open body{overflow:hidden}
.notice-backdrop{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(7,21,45,.62)}
/* The whole notice incl. the seal must fit one screen (accounting takes evidence screenshots), so the modal is sized
   from the scan's aspect ratio (1653x2337: w/h .7073, h/w 1.4138) plus the header+footer height (--nc), and the image
   is contained inside it. --nw is the widest the modal may be. */
.notice-modal{--nc:120px;--nw:min(720px,calc(100vw - 32px));position:relative;display:flex;flex-direction:column;width:min(var(--nw),calc((90vh - var(--nc)) * .7073));height:min(90vh,calc(var(--nw) * 1.4138 + var(--nc)));width:min(var(--nw),calc((90dvh - var(--nc)) * .7073));height:min(90dvh,calc(var(--nw) * 1.4138 + var(--nc)));background:#fff;color:var(--ink,#101d35);border-radius:8px;box-shadow:0 24px 60px rgba(7,21,45,.35);overflow:hidden}
.notice-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 14px 22px;border-bottom:1px solid var(--line,#e0e5ed);background:#fff}
.notice-head h2{margin:0;font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:1.4}
.notice-close{flex:none;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;font-size:28px;line-height:1;cursor:pointer}
.notice-close:hover{background:var(--pale,#f3f6fb)}
.notice-close:focus-visible,.notice-pdf:focus-visible{outline:3px solid #46a2ff;outline-offset:2px}
.notice-body{flex:1 1 auto;min-height:0;overflow:hidden;background:#fff}
.notice-body img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:#fff}
.notice-foot{display:flex;justify-content:flex-end;padding:12px 22px;border-top:1px solid var(--line,#e0e5ed);background:#fff}
.notice-pdf{color:var(--blue,#1749f4);font-size:15px;font-weight:500;text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){.notice-modal{--nc:108px;--nw:calc(100vw - 20px)}.notice-backdrop{padding:10px}.notice-head{padding:10px 8px 10px 16px}.notice-head h2{font-size:16px}.notice-foot{padding:10px 16px}}
/* very short screens only: full-width image with internal scroll as a fallback */
@media(max-height:499px){.notice-modal{width:var(--nw);height:auto;max-height:90vh}.notice-body{overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.notice-body img{height:auto}}
