
/* ==========================================================
   HANCOT PLATFORM - COMMON FOOTER
   PC / TABLET / MOBILE RESPONSIVE
========================================================== */

.domain-footer {
    width: 100%;
    margin-top: 48px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    color: #475569;
    font-size: calc(14px * var(--hc-font-scale, 1));
    line-height: 1.65;
}

.domain-footer *,
.domain-footer *::before,
.domain-footer *::after {
    box-sizing: border-box;
}

/* 1. 전체 컨테이너 */
.hc-footer-container {
    width: 100%;
    max-width: var(--hc-content-max, 1440px);
    margin: 0 auto;
    padding: 44px 28px 22px;
}

/* 2. PC 4열 */
.hc-footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 34px;
    align-items: start;
}

/* 3. 브랜드 */
.hc-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.hc-footer-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    border-radius: 11px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
}

.hc-footer-logo-text {
    color: #0f172a;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hc-footer-slogan {
    max-width: 310px;
    margin: 0 0 18px;
    color: #64748b;
    font-size: 0.96em;
    line-height: 1.85;
    word-break: keep-all;
}

.hc-footer-security {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 7px 11px;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.83em;
    font-weight: 600;
}

.hc-footer-security i {
    font-size: 1.15em;
}

/* 4. 메뉴 */
.hc-footer-column {
    min-width: 0;
}

.hc-footer-title {
    margin: 3px 0 17px;
    color: #0f172a;
    font-size: 1.04em;
    font-weight: 700;
    line-height: 1.4;
}

.hc-footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hc-footer-links li {
    min-width: 0;
    margin: 0;
    padding: 0;
    line-height: 1.55;
}

.hc-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    color: #64748b;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.hc-footer-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hc-footer-links a:focus-visible,
.hc-footer-bottom-links a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
    border-radius: 3px;
}

.hc-footer-links i {
    color: #64748b;
    font-size: 1.08em;
}

/* 5. 고객센터 */
.hc-footer-info li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.hc-footer-info-label {
    min-width: 62px;
    color: #475569;
    font-weight: 600;
}

/* 6. 개인정보처리방침 강조 */
.hc-footer-privacy {
    color: #1d4ed8 !important;
    font-weight: 700;
}

/* 7. 하단 저작권 */
.hc-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 38px;
    padding-top: 19px;
    border-top: 1px solid #e2e8f0;
}

.hc-footer-copyright {
    color: #94a3b8;
    font-size: 0.88em;
}

.hc-footer-copyright strong {
    color: #64748b;
    font-weight: 700;
}

.hc-footer-bottom-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hc-footer-bottom-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.9em;
    text-decoration: none;
}

.hc-footer-bottom-links a:hover {
    color: #1d4ed8;
}

/* ==========================================================
   TABLET - 769px ~ 1100px
========================================================== */
@media (min-width: 769px) and (max-width: 1100px) {

    .hc-footer-container {
        padding: 36px 24px 22px;
    }

    .hc-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 26px;
    }
}

/* ==========================================================
   MOBILE - 768px 이하
========================================================== */
@media (max-width: 768px) {

    .domain-footer {
        margin-top: 28px;
    }

    .hc-footer-container {
        padding: 28px 18px 20px;
    }

    .hc-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 27px;
    }

    .hc-footer-logo {
        margin-bottom: 12px;
    }

    .hc-footer-logo-mark {
        width: 35px;
        height: 35px;
        font-size: 21px;
    }

    .hc-footer-logo-text {
        font-size: 21px;
    }

    .hc-footer-slogan {
        max-width: none;
        margin-bottom: 13px;
        font-size: 0.93em;
    }

    .hc-footer-title {
        margin-bottom: 12px;
    }

    .hc-footer-links {
        gap: 10px;
    }

    .hc-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 28px;
        padding-top: 18px;
    }

    .hc-footer-bottom-links {
        gap: 18px;
    }
}

/* 매우 작은 모바일 */
@media (max-width: 360px) {

    .hc-footer-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hc-footer-security {
        font-size: 0.76em;
    }
}
