/* General Terms and Conditions - Terms Page Styles (shared: /terms/, /saas-terms/) */

/* Header - Celltrion Logo (top left), 스크롤 시 글이 뒤로 숨겨짐 */
.header-logo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 1.5rem;
    background: #fff;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); /* 스크롤 시 헤더와 본문 구분 */
}

.celltrion-logo {
    height: 36px;
    width: auto;
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 11pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
    padding: 2rem;
    padding-top: 5.5rem; /* 고정 헤더 높이(로고36px + 패딩40px) 확보 */
    margin: 0 auto;
    max-width: 1000px;
}

.terms-document {
    margin: 0 auto;
    padding: 0;
}

h1 {
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

/* 본문 컨테이너 */
.terms-content {
    text-align: justify;
}

/* 워드처럼 페이지당 A4 높이(297mm) 고정, 두 열 고르게 채움 */
.terms-page {
    height: 297mm;
    column-count: 2;
    column-gap: 2.5rem;
    column-fill: balance;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #999;
}

.terms-content p {
    margin-bottom: 0.75rem;
}

.section-title {
    font-weight: bold;
    text-decoration: underline;
}

.section-num {
    font-weight: bold;
}

/* Full-paragraph underline (e.g. Section 29 SaaS scope disclaimer) */
.terms-par-underline {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.terms-content .section {
    break-inside: auto;
    margin-bottom: 0.75rem;
}

.terms-content .section p,
.terms-content .sub-section,
.terms-content .sub-sub-section {
    break-inside: auto;
}

.terms-page.terms-page-single-col {
    column-fill: auto;
}

.terms-content .terms-page:last-child {
    column-fill: auto;
}

.terms-content .sub-section {
    margin-left: 1.5em;
    margin-bottom: 0.5rem;
}

.terms-content .sub-sub-section {
    margin-left: 2em;
    margin-bottom: 0.5rem;
}

.underline {
    text-decoration: underline;
}

/* Print styles */
@media print {
    body {
        background: #fff;
        padding: 0;
        padding-top: 0;
    }

    .header-logo {
        position: absolute;
        padding: 10mm 15mm;
    }

    .terms-page {
        height: auto;
        page-break-after: always;
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .terms-content .section {
        page-break-inside: avoid;
    }
}

@page {
    size: A4;
    margin: 20mm;
}
