/* privacy.css */

/* 오버레이 */
.popup-overlay {
    position: fixed;
    top: 6rem; /* ← site-header 값 명시 */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
}
/* 팝업 기본 구조 */
.popup {
    width: 90%;
    height: 85%;
    margin: 5% auto 0;
    background-color: #ffffff;
    /*border-radius: 8px;*/
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}
.popup-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}
/* 타이틀 고정 */
.popup-title {
    position: relative;
    padding: 1.5rem 2rem;
    background: #f9f9f9;
    border-bottom: 1px solid #dddddd;
}
.popup-title button {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}
.icon-closed {
    margin-top: 0.5rem;
    width: 1.6rem;
    height: 1.6rem;
}
.popup-title h2 {
    font-size: 1.8rem;
    margin: 0;
    text-align: center;
}
/* 콘텐츠 영역 스크롤 */
.popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 2rem;
    font-size: 1.5rem;
    line-height: 2.2rem;
    color: #333333;
}
.content-wrapper {
    height: 100%;
    overflow-y: auto;  /* ← 실제 스크롤 대상 */
}
.privacy-intro {
    margin: 1rem 0 3rem 0;
    padding: 0 0 3rem 0;
    font-weight: 500;
    border-bottom: 1px solid #dddddd;
}
.privacy-intro .company-name {
    font-weight: 700;
}
.privacy-list-item {
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #dddddd;
}
.li-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}
.li-content {
    font-weight: 500;
}
.privacy-sublist {
    margin-top: 2rem;
    list-style: disc;
    padding-left: 2rem;
}
.inner-li {
    margin-bottom: 2rem;
}
.inner-li:last-child {
    margin-bottom: unset;
}
.inner-li-title {
    font-weight: 700;
    margin-bottom: 2rem;
}
.add-content {
    margin-top: 2rem;
}
.privacy-history-heading {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #6c757d;
}
.privacy-history-table {
    border-collapse: collapse;
    font-size: 1.4rem;
    text-align: center;
    width: 100%;
}
.privacy-history-table th,
.privacy-history-table td {
    border: 1px solid #d8d8d8;
    padding: 0.8rem 1rem;
}
.privacy-history-table th {
    background-color: #eeeeee;
    font-weight: 700;
}
.privacy-history-table td a {
    text-decoration: underline;
    cursor: pointer;
}

/* Small: 480px ~ 767px (일반 스마트폰 가로 등) */
@media (min-width: 480px) {

}

/* Medium: 768px ~ 1023px (태블릿 세로/가로) */
@media (min-width: 768px) {
    .popup-title {
        padding: 2rem 4rem;
    }
    .popup-title h2 {
        font-size: 2.2rem;
    }
    .popup-title button {
        right: 4rem;
    }
    .icon-closed {
        width: 2.2rem;
        height: 2.2rem;
    }
    .popup-content {
        padding: 4rem 4rem;
        font-size: 1.6rem;
        line-height: 2.4rem;
    }
    .li-title {
        font-size: 2.2rem;
    }
    .privacy-history-table {
        font-size: 1.5rem;
    }


}

/* Large: 1024px ~ 1279px (소형 데스크탑, 노트북) */
@media (min-width: 1024px) {
    .popup-overlay {
        top: 8rem;
    }
    .popup-title h2 {
        font-size: 2.6rem;
    }
    .icon-closed {
        width: 2.4rem;
        height: 2.4rem;
    }
    .popup-content {
        /*word-break: keep-all;*/
    }
    .privacy-list-item {
        display: flex;
        width: 100%
    }
    .li-title {
        width: 40%;
        font-size: 2.6rem;
        line-height: 3.4rem;
    }
    .li-content {
        width: 60%;
    }
    .privacy-history-table {
        font-size: 1.5rem;
    }
}

/* Extra Large: 1280px 이상 (고해상도 데스크탑) */
@media (min-width: 1280px) {
    .popup {
        width: 80%;
    }
    .popup-title{
        /*padding: 2rem 12rem;*/
    }
    .popup-content {
        padding: 4rem 12rem;
    }

}