@charset "UTF-8";

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Noto Sans KR', sans-serif; }
ul, li, ol { list-style: none; }
a { text-decoration: none; }
button { border-radius: 12px; background: #116dc7; color: #fff; border: none; font-size: 18px; cursor: pointer; }
body, html { height: 100%; }
body { background-color: #f7f8fa; }

/* 닫기 버튼 */
button.close-agreement { width: 100%; max-width: 140px; height: 40px; display: block; margin: 60px auto 0; font-size: 16px; border-radius: 6px; }

/* 에러 메시지 */
.term-error { color: #c00; text-align: center; padding: 40px 0; }

/* ── black-box 기본 wrapper ── */
.table-align-center { text-align: center; }
.agreement__term-detail-inner { height: 100%; padding: 20px 20px 30px 20px; }
.agreement__term-detail-inner > h3,
.agreement__term-detail-inner > h2 { font-size: 16px; margin-bottom: 20px; font-weight: bold; }
.agreement__term-detail-inner h3 + p { margin: 20px 0; }
.agreement__term-detail-inner > p { font-size: 14px; line-height: 22px; margin-bottom: 30px; }
.agreement__term-detail-inner ul { margin-bottom: 30px; }
.agreement__term-detail-inner ul li { margin: 20px 0 0 0; font-size: 14px; line-height: 22px; }
.agreement__term-detail-inner ul li dl { margin: 20px 0 0 0; }
.agreement__term-detail-inner ul li dl dd { padding: 0; font-size: 12px; margin: 0 0 14px 0; line-height: 22px; background: none; }
.agreement__term-detail-inner table { max-width: 800px; width: 100%; font-size: 12px; margin: 12px 0; border-collapse: collapse; }
.agreement__term-detail-inner table + h3 { margin-top: 30px; }
.agreement__term-detail-inner table th { background: #eee; }
.agreement__term-detail-inner table th,
.agreement__term-detail-inner table td { padding: 4px; border: 1px solid #484848; }
.agreement__term-detail-inner table .min-width-36 { min-width: 36px; }
.agreement__term-detail-inner table .min-width-70 { min-width: 70px; }
.agreement__term-detail-inner table .min-width-86 { min-width: 86px; }
.agreement__term-detail-inner table .min-width-100 { min-width: 100px; }
.agreement__term-detail-inner table td { word-break: break-all; }
.agreement__term-detail-inner .table-wrapper { max-width: 800px; display: flex; gap: 0; flex-direction: column; margin: 20px 0 10px 0; }
.agreement__term-detail-inner .table-wrapper table { margin: 4px 0; width: 100%; }

@media screen and (min-width: 500px) {
    .agreement__term-detail-inner .table-wrapper { flex-direction: row; gap: 10px; }
    .agreement__term-detail-inner .table-wrapper table { width: 50%; }
}

/* ── 약관 본문 콘텐츠 스타일 (container-fluid / ruleDescription 기반) ── */
.container-fluid {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px 48px;
    color: #333;
    font-size: 15px;
    line-height: 1.8;
}

h4 { margin-bottom: 24px; padding-bottom: 12px; font-size: 24px; font-weight: 700; }

.ruleDescription,
.terms-description { margin-bottom: 40px; }

.ruleDescription h5,
.terms-description h5 { margin-bottom: 16px; padding-bottom: 10px; font-size: 20px; font-weight: 700; }

.rule-sub-title,
.terms-sub-title { margin-top: 10px; }

.ruleDescription ul,
.ruleDescription ol,
.terms-description ul,
.terms-description ol { margin: 12px 0 0; padding-left: 22px; }

.sub-li { margin-top: 6px; margin-left: 16px; }

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 16px;
    margin-bottom: 20px;
}

.rule-table,
.terms-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }

.rule-table th, .rule-table td,
.terms-table th, .terms-table td { border: 1px solid #ddd; padding: 12px; text-align: center; vertical-align: middle; }

.rule-table th, .terms-table th { background-color: #f7f7f7; font-weight: 700; }

.rule-table th:nth-child(1), .rule-table td:nth-child(1),
.terms-table th:nth-child(1), .terms-table td:nth-child(1) { white-space: nowrap; }

.sub-2 { list-style-type: '* '; margin-top: 16px; padding-left: 12px; }
.sub-2 li { margin-bottom: 8px; font-size: 14px; line-height: 1.6; color: #666; }
.sub-2 li::marker { color: #333; font-weight: bold; font-size: 15px; }

.row, .col-xs-12 { margin: 0; padding: 0; }

/* Tablet */
@media (max-width: 768px) {
    .container-fluid { padding: 24px 16px 40px; font-size: 14px; }
    h4 { font-size: 22px; margin-bottom: 20px; }
    .ruleDescription, .terms-description { margin-bottom: 32px; }
    .ruleDescription h5, .terms-description h5 { font-size: 18px; }
    .ruleDescription ul, .ruleDescription ol,
    .terms-description ul, .terms-description ol { padding-left: 18px; }
    .sub-li { margin-left: 12px; }
    .rule-table, .terms-table { min-width: auto; font-size: 12px; }
    .rule-table th, .rule-table td,
    .terms-table th, .terms-table td { padding: 8px 6px; white-space: normal !important; }
    .sub-2 { padding-left: 0; }
    .sub-2 li { font-size: 13px; }
}

/* Mobile */
@media (max-width: 480px) {
    .container-fluid { padding: 20px 14px 32px; font-size: 13px; line-height: 1.7; }
    h4 { font-size: 20px; margin-bottom: 16px; }
    .ruleDescription h5, .terms-description h5 { font-size: 17px; }
    .ruleDescription ul, .ruleDescription ol,
    .terms-description ul, .terms-description ol { padding-left: 16px; }
    .sub-li { margin-left: 8px; }
    .rule-table, .terms-table { min-width: auto; font-size: 10.5px; }
    .rule-table th, .rule-table td,
    .terms-table th, .terms-table td { padding: 6px 4px; white-space: normal !important; }
    .sub-2 { padding-left: 0; }
    .sub-2 li { font-size: 12px; }
}
