/* ========================================
   Terms Pages - Common Styles
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

::-moz-selection {
    background: #ffc20e;
    color: #333;
}
::selection {
    background: #ffc20e;
    color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    color: #333;
    width: 100%;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    word-break: keep-all;
    background: #f8f9fa;
}

/* Page wrapper */
.terms-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 50px 40px 80px;
    background: #fff;
    min-height: 100vh;
}

/* Page title */
.terms-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    padding-bottom: 30px;
    margin-bottom: 40px;
    border-bottom: 2px solid #1a1a2e;
    letter-spacing: -0.02em;
}

/* Chapter headings */
.container h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 45px;
    margin-bottom: 15px;
    padding: 12px 18px;
    background: #f0f2f5;
    border-left: 4px solid #ffc20e;
    border-radius: 0 6px 6px 0;
}

/* Article titles */
strong.tit {
    display: block;
    margin-top: 22px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #2c5282;
}

strong {
    display: block;
    margin: 20px 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #2c5282;
    text-align: left;
    line-height: 1.6;
    letter-spacing: -0.02em;
}

/* Paragraphs */
p.desc {
    margin-top: 8px;
    color: #444;
    letter-spacing: -0.02em;
}

/* Lists */
ul {
    margin-top: 8px;
    margin-left: 0;
    padding-left: 20px;
    list-style: none;
}

ul li {
    margin-top: 6px;
    color: #444;
    position: relative;
}

.list_2depth {
    padding-left: 20px;
    padding-bottom: 8px;
    color: #616161;
    font-size: 14px;
}

.txt_num {
    display: inline-block;
    min-width: 18px;
    margin-left: -20px;
    vertical-align: top;
    color: #888;
    font-weight: 500;
}

/* Tables */
table {
    width: 100%;
    margin: 14px 0;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    font-size: 14px;
}

thead {
    background: #f7fafc;
}

th {
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    color: #2d3748;
    border: 1px solid #e2e8f0;
    background: #f7fafc;
}

td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    vertical-align: top;
    color: #4a5568;
}

tbody tr:hover {
    background: #f7fafc;
}

tfoot td {
    text-align: center;
    font-size: 13px;
    color: #718096;
    background: #f7fafc;
}

/* Definition lists */
dl {
    margin: 8px 0;
    padding: 10px 16px;
    background: #f7fafc;
    border-radius: 6px;
}

dt {
    display: inline;
    font-weight: 600;
    color: #2d3748;
}

dd {
    display: inline;
    color: #4a5568;
}

/* Company info section */
.mt {
    margin-top: 20px;
}

/* Small text */
small {
    display: block;
    margin: 8px 0;
    color: #718096;
    font-size: 13px;
}

/* Company info styling */
.container > p:not(.desc) {
    color: #555;
    line-height: 1.8;
}

/* Footer area */
.terms-footer {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 40px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .terms-wrapper {
        padding: 30px 20px 60px;
    }

    .terms-page-title {
        font-size: 22px;
        padding-bottom: 20px;
        margin-bottom: 30px;
    }

    .container h3 {
        font-size: 16px;
        padding: 10px 14px;
    }

    table {
        font-size: 13px;
    }

    th, td {
        padding: 8px 10px;
    }
}

@media screen and (max-width: 480px) {
    .terms-wrapper {
        padding: 20px 16px 40px;
    }

    .terms-page-title {
        font-size: 20px;
    }

    html, body {
        font-size: 14px;
    }
}
