/* ========================================
   Terms & Conditions Stylesheet
   ======================================== */

/* ========================================
   1. Base & Reset
   ======================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #444;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

a {
  text-decoration: none;
  color: #336699;
}

/* ========================================
   2. Layout
   ======================================== */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 1em;
}

@media (min-width: 768px) {
  .container {
    width: 860px;
    padding: 2em 1em;
  }
}

/* ========================================
   3. Typography
   ======================================== */
h1 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
}

h2 {
  margin: 3em 0 1.5em;
  padding: 0.5em 0;
  border-top: 1px solid #4394f0;
  border-bottom: 1px solid #ddd;
  font-size: 1.2em;
}

h3 {
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-size: 1.025em;
}

h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-size: 1em;
}

p {
  margin: 0.5em 0;
}

small {
  font-size: 0.85em;
  color: #666;
}

/* ========================================
   4. Table
   ======================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  table-layout: fixed;
}

th,
td {
  border: 1px solid #ddd;
  padding: 0.75em 1em;
  vertical-align: top;
}

th {
  background-color: #fafafa;
  font-weight: bold;
}

/* 테이블 헤더가 있는 경우 */
thead th {
  text-align: center;
}

thead th:first-child {
  width: 30%;
}

/* 테이블 첫 번째 열 (th)만 있는 기본형 */
tbody th {
  text-align: left;
  width: 30%;
}

/* ========================================
   5. List
   ======================================== */

/* 기본 순서 리스트 (약관 조항용) */
ol.list-terms {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

ol.list-terms > li {
  margin-bottom: 0.5em;
}

/* 중첩 리스트 */
ol.list-terms ol.list-terms {
  margin-top: 0.5em;
}

/* 대시(-) 리스트 */
ul.list-dash {
  margin: 0.5em 0;
  padding-left: 1em;
  list-style-type: none;
}

ul.list-dash > li {
  margin-bottom: 0.3em;
}

ul.list-dash > li::before {
  content: '- ';
}

/* 스타일 없는 리스트 */
ul.list-none {
  margin: 0.5em 0;
  padding-left: 0;
  list-style-type: none;
}

/* ========================================
   6. Components
   ======================================== */

/* 하단 안내문 */
.notice {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid #ccc;
  font-size: 0.9em;
}

/* 법령 안내 (관련 법령: ~) */
.legal-note {
  display: block;
  margin: 0.5em 0 1em;
  font-size: 0.85em;
  color: #666;
}

/* ========================================
   7. Utilities
   ======================================== */

/* 텍스트 정렬 */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* 텍스트 스타일 */
.text-semibold {
  font-weight: 600;
}

.text-bold {
  font-weight: 700;
}

/* 구분선 */
.divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1.5em 0;
}

.divider--dark {
  border-top-color: #aaa;
}

/* 여백 */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5em; }
.mt-2 { margin-top: 1em; }
.mt-3 { margin-top: 1.5em; }
.mt-4 { margin-top: 2em; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5em; }
.mb-2 { margin-bottom: 1em; }
.mb-3 { margin-bottom: 1.5em; }
.mb-4 { margin-bottom: 2em; }
