*{box-sizing:border-box}body{margin:0;background:#fff;color:#162238;font-family:system-ui,"Malgun Gothic",sans-serif}.background{display:block;width:100%;height:auto}dialog{width:min(440px,calc(100% - 32px));padding:32px;border:0;border-radius:16px;box-shadow:0 16px 64px #14203840;color:inherit}dialog::backdrop{background:#10182895}html:has(dialog[open]){overflow:hidden}h1{margin:0;font-size:23px}p{margin:14px 0 26px;line-height:1.6}form{text-align:right}button{font:inherit;font-weight:650;cursor:pointer;border:0;border-radius:8px;padding:11px 18px;background:#2062d7;color:#fff}button:focus-visible{outline:3px solid #131f36;outline-offset:3px}

dialog form{margin-top:24px}

/* Keep each capture at or below its original viewport width. */
.background {
  max-width: 1440px;
  margin-inline: auto;
}

@media (max-width: 1099px) {
  .background { max-width: 820px; }
}

@media (max-width: 599px) {
  .background { max-width: 390px; }
}

dialog {
  width: min(760px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: clamp(16px, 4vw, 32px);
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
dialog h1 {
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.35;
}
.notice-body {
  margin-top: 16px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  line-height: 1.65;
  font-size: 15px;
}
.notice-body h2 { font-size: 17px; margin: 20px 0 8px; }
.notice-body p, .notice-body ul { margin: 0 0 10px; }
.notice-body ul { padding-left: 22px; }
.notice-body li + li { margin-top: 5px; }
.notice-body a { color: #1455bc; overflow-wrap: anywhere; }
dialog form { margin-top: 14px; }
/* Preserve Korean word boundaries and keep the title and close button visible. */
dialog h1, .notice-body { word-break: keep-all; overflow-wrap: anywhere; }
dialog h1, dialog form { flex-shrink: 0; }
.notice-body { scrollbar-gutter: stable; padding-right: 8px; }
.notice-body p { line-height: 1.75; margin-bottom: 14px; }
.notice-body h2 { line-height: 1.5; margin-top: 26px; }

.notice-body:focus { outline: none; }

/* Exclude only the partner section from the original responsive captures. */
.site-image { --capture-width: 2160; --before: 4077; --after: 2294; max-width: 1440px; margin-inline: auto; }
.image-slice { position: relative; overflow: hidden; }
.image-before { aspect-ratio: var(--capture-width) / var(--before); }
.image-after { aspect-ratio: var(--capture-width) / var(--after); }
.image-slice .background { position: absolute; width: 100%; max-width: none; height: auto; left: 0; }
.image-before .background { top: 0; }
.image-after .background { bottom: 0; }
@media (max-width: 1099px) {
  .site-image { --capture-width: 1230; --before: 3804; --after: 2938; max-width: 820px; }
}
@media (max-width: 599px) {
  .site-image { --capture-width: 585; --before: 5210; --after: 4002; max-width: 390px; }
}

.consult-link {
  position: fixed;
  right: max(calc((100% - var(--site-image-width)) / 2 + 16px), calc(env(safe-area-inset-right) + 12px));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 2147483647;
  display: inline-flex;
  align-items: center;
  min-height: 49px;
  padding: 0 20px;
  border-radius: 999px;
  background: #2062d7;
  color: #fff;
  font: 700 16px/1.3 system-ui, sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 16px #182b4433;
}
.consult-link:focus-visible { outline: 3px solid #2879cb; outline-offset: 3px; }
body:has(dialog[open]) > .consult-link { visibility: hidden; }

:root { --site-image-width: 1440px; }
@media (max-width: 1099px) { :root { --site-image-width: 820px; } }
@media (max-width: 599px) { :root { --site-image-width: 390px; } }

.notice-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; margin-top: 14px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.notice-actions form { margin: 0; }
.notice-actions .consult-link { position: static; z-index: auto; min-height: 48px; border-radius: 8px; box-shadow: none; justify-content: center; }
.notice-actions button { min-height: 48px; }

@media (max-width: 599px) { .notice-actions { flex-direction: row-reverse; } }
