/* =========================================
   약관·개인정보처리방침 — 버전 표시줄
   (본문 모양은 기존 terms.css / privacy.css 그대로 쓴다)
   ========================================= */

.tdoc-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3.2cqw;
    flex-wrap: wrap;
    padding: 3.733cqw 0 4.266cqw;
    border-bottom: 1px solid #E9ECF2;
    margin-bottom: 4.266cqw;
}

.tdoc-bar-current {
    display: flex;
    align-items: baseline;
    gap: 2.133cqw;
}

.tdoc-bar-label {
    font-size: 3.2cqw;
    color: #8A8F98;
}

.tdoc-bar-date {
    font-size: 3.733cqw;
    font-weight: 700;
    color: #111827;
}

/* 지난 버전 선택 */
.tdoc-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tdoc-select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #D8DCE5;
    border-radius: 2.133cqw;
    background: #fff;
    color: #374151;
    font-family: inherit;
    font-size: 3.2cqw;
    padding: 2.133cqw 8cqw 2.133cqw 3.2cqw;
    cursor: pointer;
    max-width: 60cqw;
}

.tdoc-select-arrow {
    position: absolute;
    right: 3.2cqw;
    font-size: 2.933cqw;
    color: #9CA3AF;
    pointer-events: none;
}

/* 안내 줄 — 지난 버전 / 개정 예고 */
.tdoc-notice {
    display: flex;
    align-items: flex-start;
    gap: 2.4cqw;
    padding: 3.2cqw 3.733cqw;
    border-radius: 2.133cqw;
    font-size: 3.466cqw;
    line-height: 1.6;
    margin-bottom: 4.266cqw;
}

.tdoc-notice i {
    margin-top: 0.533cqw;
    flex-shrink: 0;
}

.tdoc-notice a {
    font-weight: 700;
    text-decoration: underline;
    color: inherit;
}

/* 지난 버전을 보고 있음 — 지금 보이는 내용이 현행이 아니라는 건 분명히 알려야 한다 */
.tdoc-notice--past {
    background: #FFF6E5;
    color: #8A5A00;
}

/* 개정 예고 — 시행 전 사전 고지 */
.tdoc-notice--upcoming {
    background: #EEF2FF;
    color: #3730A3;
}

.tdoc-upcoming-summary {
    display: block;
    margin-top: 1.066cqw;
    font-style: normal;
    color: #4C51BF;
    font-size: 3.2cqw;
}

/* 개정 요약 */
.tdoc-summary {
    background: #F7F5FF;
    border: 1px solid #E2D9FF;
    border-radius: 2.133cqw;
    padding: 3.2cqw 3.733cqw;
    margin-bottom: 4.266cqw;
}

.tdoc-summary-title {
    font-size: 3.466cqw;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.066cqw;
}

.tdoc-summary-body {
    font-size: 3.2cqw;
    line-height: 1.7;
    color: #4B5563;
    margin: 0;
    white-space: pre-wrap;   /* 관리자가 줄바꿈으로 항목을 나눠 적는다 */
}

.tdoc-empty {
    text-align: center;
    padding: 16cqw 0;
    color: #9CA3AF;
}

.tdoc-empty i {
    font-size: 10.666cqw;
    margin-bottom: 3.2cqw;
    display: block;
    color: #D1D5DB;
}

/* 스크린리더 전용 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
