/* The gate marks the document only after a real presentation delay. */
#appLoading,
html[data-ui-render-pending]::before {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    content: "";
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 단순 스피너 */

#appLoading .spinner,
html[data-ui-render-pending]::after {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #eee;
    border-top-color: #ff3900;
    /* 브랜드 컬러 써도 됨 */
    animation: appLoadingSpin 0.8s linear infinite;
}

html[data-ui-render-pending]::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    margin: -20px 0 0 -20px;
    box-sizing: border-box;
    z-index: 10000;
}

@media (prefers-reduced-motion: reduce) {
    #appLoading .spinner,
    html[data-ui-render-pending]::after {
        animation: none;
    }
}

@keyframes appLoadingSpin {
    to {
        transform: rotate(360deg);
    }
}

/* 114114 public policy pages. Presentation only; policy wording is unchanged. */

:root {
    --policy-orange: #ff3900;
    --policy-text: #292d33;
    --policy-muted: #717780;
    --policy-border: #e5e8ec;
}

:where(body.policy-ui, body:has(> .terms-container)) * {
    box-sizing: border-box;
}

:where(html:has(> body.policy-ui), html:has(> body > .terms-container)) {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

:where(body.policy-ui, body:has(> .terms-container)) {
    color-scheme: light;
    margin: 0;
    background: #f5f6f8;
    color: var(--policy-text);
    font-family: Arial, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

:where(body.policy-ui, body:has(> .terms-container)) button, :where(body.policy-ui, body:has(> .terms-container)) select {
    font: inherit;
}

:where(body.policy-ui, body:has(> .terms-container)) a {
    color: inherit;
}

:where(body.policy-ui, body:has(> .terms-container)) a:focus-visible, :where(body.policy-ui, body:has(> .terms-container)) button:focus-visible, :where(body.policy-ui, body:has(> .terms-container)) select:focus-visible {
    outline: 2px solid var(--policy-orange);
    outline-offset: 4px;
}

.policy-header {
    border-bottom: 1px solid var(--policy-border);
    background: #fff;
}

.policy-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(100% - 64px, 1040px);
    min-height: 88px;
    margin: 0 auto;
}

.policy-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.policy-brand img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
}

.policy-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 42px;
    padding: 7px 13px 7px 8px;
    border: 1px solid var(--policy-border);
    border-radius: 7px;
    background: #fff;
    color: #656b74;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.policy-home:hover {
    background: #f7f8fa;
    color: #292d33;
}

.policy-main {
    width: min(100% - 64px, 1040px);
    margin: 36px auto 64px;
}

.policy-nav {
    display: flex;
    gap: 30px;
    min-width: 0;
    margin-bottom: 26px;
    border-bottom: 1px solid #dce0e5;
}

.policy-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 3px 13px;
    border-bottom: 3px solid transparent;
    color: #777d85;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

.policy-nav a[aria-current='page'] {
    border-bottom-color: var(--policy-orange);
    color: var(--policy-orange);
}

.policy-nav a:hover {
    color: var(--policy-orange);
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-container {
    width: min(100% - 64px, 1040px);
    max-width: none;
    margin: 40px auto;
    padding: 42px 48px 32px;
    border: 1px solid var(--policy-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px #27364b04;
}

.policy-main .terms-container {
    width: 100%;
    margin: 0;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-title {
    margin: 0 0 33px;
    padding: 0 0 26px;
    border-bottom: 1px solid var(--policy-border);
    color: #252931;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -1px;
    text-align: left;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-content {
    color: #555b64;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.95;
    letter-spacing: -.15px;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-content h3 {
    margin: 35px 0 14px;
    padding: 0 0 0 13px;
    border: 0;
    border-left: 3px solid var(--policy-orange);
    color: #2e333b;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: -.55px;
    scroll-margin-top: 25px;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-content h3:first-child {
    margin-top: 0;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-content p {
    margin: 12px 0;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-content ul {
    margin: 12px 0;
    padding-left: 23px;
    list-style-type: disc;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-content ul ul {
    margin: 7px 0 13px;
    padding-left: 20px;
    color: #6c727b;
    list-style-type: circle;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-content li {
    margin: 6px 0;
    padding-left: 2px;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-content li::marker {
    color: #a7adb6;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-content a {
    color: #d23812;
    text-decoration: underline;
    text-underline-offset: 3px;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-content a:hover {
    color: var(--policy-orange);
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-content b, :where(body.policy-ui, body:has(> .terms-container)) .terms-content strong {
    color: #333943;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-content table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: inherit;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-content th, :where(body.policy-ui, body:has(> .terms-container)) .terms-content td {
    padding: 10px;
    border: 1px solid var(--policy-border);
    overflow-wrap: anywhere;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-content th {
    background: #f7f8fa;
    color: #343a43;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-content img {
    max-width: 100%;
    height: auto;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-footer {
    padding: 18px 22px;
    border-radius: 9px;
    background: #fff;
}

.policy-main .terms-footer {
    margin: 0 0 18px;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-footer > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin: 0 !important;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-footer label {
    color: #797f88;
    font-size: 13px;
    line-height: 1.7;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-footer label b {
    margin-left: 5px;
    color: #424852;
    font-weight: 600;
}

:where(body.policy-ui, body:has(> .terms-container)) .terms-footer select {
    max-width: 100%;
    min-width: 218px;
    min-height: 42px;
    padding: 8px 34px 8px 12px;
    border: 1px solid #dde1e6;
    border-radius: 6px;
    background-color: #fff;
    color: #555c66;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

:where(body.policy-ui, body:has(> .terms-container)) .btn-container {
    margin: 34px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--policy-border);
    text-align: center;
}

:where(body.policy-ui, body:has(> .terms-container)) .btn-container button {
    min-width: 134px;
    min-height: 45px;
    padding: 10px 26px;
    border: 1px solid #dce0e5;
    border-radius: 7px;
    background: #fff;
    color: #555c66;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
}

:where(body.policy-ui, body:has(> .terms-container)) .btn-container button:hover {
    border-color: #ffb19c;
    background: #fff6f2;
    color: #e93c0a;
}

@media (max-width: 767px) {
    :where(body.policy-ui, body:has(> .terms-container)) {
        font-size: 14px;
        background: #f6f7f9;
    }

    .policy-header-inner {
        width: calc(100% - 36px);
        min-height: 68px;
        gap: 14px;
    }

    .policy-brand {
        gap: 4px;
    }

    .policy-brand img {
        width: 175px;
    }

    .policy-home {
        min-height: 36px;
        padding: 6px 9px 6px 4px;
        border-color: transparent;
        font-size: 12px;
    }

    .policy-main {
        width: calc(100% - 24px);
        margin: 20px auto 32px;
    }

    .policy-nav {
        gap: 0;
        margin: 0 4px 19px;
    }

    .policy-nav a {
        flex: 1 1 0;
        min-width: 0;
        min-height: 46px;
        padding: 0 3px 12px;
        font-size: 15px;
        letter-spacing: -.4px;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-container {
        width: calc(100% - 24px);
        margin: 20px auto;
        padding: 26px 19px 23px;
        border-radius: 10px;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-title {
        margin-bottom: 24px;
        padding-bottom: 20px;
        font-size: 24px;
        letter-spacing: -.8px;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-content {
        font-size: 14px;
        line-height: 1.95;
        letter-spacing: -.25px;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-content h3 {
        margin: 29px 0 12px;
        padding-left: 10px;
        font-size: 17px;
        line-height: 1.6;
        letter-spacing: -.5px;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-content p {
        margin: 10px 0;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-content ul {
        padding-left: 18px;
        margin: 10px 0;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-content ul ul {
        padding-left: 16px;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-content li {
        margin: 7px 0;
        padding-left: 0;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-footer {
        padding: 15px 17px;
        border-radius: 9px;
    }

    .policy-main .terms-footer {
        margin-bottom: 14px;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-footer > div {
        display: block;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-footer label {
        display: block;
        font-size: 12px;
        letter-spacing: -.25px;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-footer select {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        margin-top: 10px;
        font-size: 13px;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .btn-container {
        margin-top: 27px;
        padding-top: 23px;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .btn-container button {
        min-height: 44px;
        font-size: 13px;
    }
}

@media (max-width: 359px) {
    .policy-header-inner {
        width: calc(100% - 28px);
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-container {
        padding-right: 16px;
        padding-left: 16px;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-title {
        font-size: 22px;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-content h3 {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    :where(html:has(> body.policy-ui), html:has(> body > .terms-container)) {
        scroll-behavior: auto;
    }
}

@media print {
    :where(html:has(> body.policy-ui), html:has(> body > .terms-container)), :where(body.policy-ui, body:has(> .terms-container)) {
        background: #fff;
        color: #000;
    }

    .policy-header, .policy-nav, :where(body.policy-ui, body:has(> .terms-container)) .terms-footer, :where(body.policy-ui, body:has(> .terms-container)) .btn-container {
        display: none !important;
    }

    .policy-main {
        width: 100%;
        margin: 0;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-container, .policy-main .terms-container {
        width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-title {
        margin-bottom: 20px;
        padding-bottom: 15px;
        font-size: 22pt;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-content {
        color: #000;
        font-size: 10pt;
        line-height: 1.7;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-content h3 {
        break-after: avoid;
        margin-top: 22px;
        font-size: 12pt;
        color: #000;
        border-left-color: #555;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-content a {
        color: #000;
    }

    :where(body.policy-ui, body:has(> .terms-container)) .terms-content li {
        break-inside: avoid;
    }
}
