/* =========================================================
   FOOTER
========================================================= */

#footer {
    --footer-blue: #007dc3;
    --footer-green: #c1d72e;
    --footer-text: #667078;
    --footer-dark: #3e484f;
    --footer-line: #e2e8eb;

    position: relative;
    overflow: visible;

    border-top: 1px solid var(--footer-line);

    background:
        linear-gradient(
            135deg,
            #f7fbfc 0%,
            #f4f9f7 100%
        );

    font-family:
        "Pretendard",
        "Noto Sans KR",
        sans-serif;
}


/* =========================================================
   MAIN
========================================================= */

#footer .footer-main {
    position: relative;
	overflow: visible;
}


/* 아주 은은한 브랜드 컬러 */
#footer .footer-main::before {
    content: "";

    position: absolute;

    left: -130px;
    bottom: -150px;

    width: 340px;
    height: 340px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(193,215,46,.10) 0%,
            rgba(193,215,46,.035) 52%,
            rgba(193,215,46,0) 75%
        );

    pointer-events: none;
}


#footer .footer-main::after {
    content: "";

    position: absolute;

    right: -150px;
    bottom: -170px;

    width: 390px;
    height: 390px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0,125,195,.09) 0%,
            rgba(0,125,195,.025) 52%,
            rgba(0,125,195,0) 75%
        );

    pointer-events: none;
}


/* =========================================================
   INNER
========================================================= */

#footer .footer-inner {
    position: relative;
    z-index: 2;

    width: min(1440px, calc(100% - 60px));

    margin: 0 auto;

    padding: 45px 0 46px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 70px;

    box-sizing: border-box;
}


/* =========================================================
   LEFT
========================================================= */

#footer .footer-left {
    flex: 1 1 auto;

    display: flex;
    align-items: center;

    gap: 55px;

    min-width: 0;
}


/* BRAND */

#footer .footer-brand {
    flex: 0 0 250px;
}


#footer .footer-logo {
    display: block;

    width: 220px;
    max-width: 100%;

    height: auto;

    margin: 0 0 13px;
}


#footer .footer-slogan {
    margin: 0;

    color: #7c878e;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.6;
}


/* =========================================================
   INFORMATION
========================================================= */

#footer .footer-info {
    min-width: 0;
}


#footer address {
    margin: 0 0 13px;

    color: var(--footer-dark);

    font-size: 15px;
    font-style: normal;
    font-weight: 700;

    line-height: 1.6;

    text-align: left;
}


#footer .footer-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px 24px;

    margin: 0 0 14px;
}


#footer .footer-contact span {
    color: var(--footer-text);

    font-size: 14px;

    line-height: 1.5;
}


#footer .footer-contact b {
    margin-right: 5px;

    color: #424c53;

    font-weight: 700;
}


#footer .footer-contact a {
    color: inherit;

    text-decoration: none;
}


#footer .footer-contact a:hover {
    color: var(--footer-blue);
}


/* COPYRIGHT */

#footer .copyright {
    margin: 0;

    color: #9aa3a9;

    font-size: 12px;
    font-weight: 500;

    line-height: 1.6;
}


#footer .footer-maker {
    margin-left: 9px;
}


#footer .copyright a {
    color: #667078;

    font-weight: 700;

    text-decoration: none;
}


#footer .copyright a:hover {
    color: var(--footer-blue);
}


/* =========================================================
   RIGHT
========================================================= */

#footer .footer-right {
    flex: 0 0 290px;

    display: flex;
    flex-direction: column;

    gap: 17px;
}


/* =========================================================
   POLICY LINKS
========================================================= */

#footer .footer-links {
    display: flex;
    align-items: center;

    gap: 18px;
}


#footer .footer-links a {
    position: relative;

    color: #59636a;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition: color .2s ease;
}


#footer .footer-links a:first-child {
    color: var(--footer-blue);
}


#footer .footer-links a:hover {
    color: var(--footer-blue);
}


#footer .footer-links a + a::before {
    content: "";

    position: absolute;

    left: -9px;
    top: 50%;

    width: 1px;
    height: 12px;

    transform: translateY(-50%);

    background: #d5dce0;
}


/* =========================================================
   FAMILY SITE
========================================================= */

#footer .family-site {
    position: relative;
    width: 100%;
}


#footer .family-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    height: 46px;

    padding: 0 16px;

    box-sizing: border-box;

    border: 1px solid #d9e1e5;
    border-radius: 12px;

    background: rgba(255,255,255,.78);

    color: #505a61;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease;
}


#footer .family-toggle:hover,
#footer .family-toggle[aria-expanded="true"] {
    border-color: #b9d9e8;

    background: #fff;
}


#footer .family-toggle i {
    font-size: 18px;

    transition: transform .2s ease;
}


#footer .family-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}


/* =========================================================
   FAMILY LIST
========================================================= */

#footer .family-list {
    display: none;

    position: absolute;

    left: 0;
    right: 0;
    bottom: 56px;

    z-index: 999;

    max-height: 330px;

    margin: 0;
    padding: 8px 0;

    overflow-y: auto;

    list-style: none;

    border: 1px solid #dbe3e7;
    border-radius: 14px;

    background: #fff;

    box-shadow:
        0 18px 38px rgba(0,65,100,.13);
}


#footer .family-list.open {
    display: block;
}


#footer .family-list li {
    margin: 0;
    padding: 0;
}


#footer .family-list a {
    display: block;

    padding: 10px 15px;

    color: #586269;

    font-size: 13px;
    line-height: 1.45;

    text-decoration: none;

    transition:
        background .15s ease,
        color .15s ease;
}


#footer .family-list a:hover,
#footer .family-list a:focus {
    background: #f3f9fc;

    color: var(--footer-blue);
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

#footer a:focus-visible,
#footer button:focus-visible {
    outline: 3px solid var(--footer-blue);
    outline-offset: 3px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    #footer .footer-inner {
        align-items: flex-start;

        gap: 40px;
    }


    #footer .footer-left {
        display: block;
    }


    #footer .footer-brand {
        margin-bottom: 25px;
    }


    #footer .footer-right {
        flex-basis: 250px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    #footer .footer-inner {
        width: calc(100% - 36px);

        padding: 32px 0 36px;

        display: block;
    }


    #footer .footer-left {
        display: block;
    }


    #footer .footer-brand {
        margin: 0 0 25px;

        text-align: center;
    }


    #footer .footer-logo {
        width: 190px;

        margin: 0 auto 11px;
    }


    #footer .footer-slogan {
        font-size: 13px;
    }


    #footer .footer-info {
        text-align: center;
    }


    #footer address {
        margin-bottom: 15px;

        font-size: 14px;

        text-align: center;
    }


    #footer .footer-contact {
        display: block;

        margin-bottom: 18px;
    }


    #footer .footer-contact span {
        display: block;

        margin-bottom: 6px;

        font-size: 13px;
    }


    #footer .copyright {
        font-size: 11px;

        line-height: 1.75;
    }


    #footer .footer-maker {
        display: block;

        margin: 3px 0 0;
    }


    /* RIGHT */

    #footer .footer-right {
        width: 100%;

        margin-top: 27px;
        padding-top: 22px;

        border-top: 1px solid #dfe5e8;
    }


    #footer .footer-links {
        justify-content: center;

        margin-bottom: 2px;
    }


    #footer .footer-links a {
        font-size: 13px;
    }


    #footer .family-toggle {
        height: 48px;
    }


    #footer .family-list {
        bottom: 57px;
    }

}