/* 약관 공통 스타일 */
html {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior-x: none;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  background: #fff;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 4px 4px 4px;
}

.container h2:first-child {
    margin-top:12px;
}

.header {
  background-color: white;
  position: fixed;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 0;
  left: 0;
  right: 0;
}

.header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 24px;
  }
}

section {
  margin-bottom: 32px;
}

section h2 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 24px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #efefef;
}

section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-top: 20px;
  margin-bottom: 12px;
}

section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #555;
  margin-top: 16px;
  margin-bottom: 8px;
}

p {
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

@media (max-width: 768px) {
  p {
    font-size: 14px;
  }
}

strong {
  font-weight: 600;
  color: #333;
}

/* 리스트 스타일 */
ul, ol {
  margin: 12px 0;
  padding-left: 24px;
}

ul li, ol li {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

@media (max-width: 768px) {
  ul li, ol li {
    font-size: 14px;
  }
}

ol[type="a"] {
  list-style-type: lower-alpha;
}

ol[type="i"] {
  list-style-type: lower-roman;
}

/* 테이블 스타일 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  overflow-x: auto;
  display: block;
}

@media (max-width: 768px) {
  table {
    font-size: 13px;
  }
}

thead {
  background-color: #f5f7fa;
}

th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
}

td {
  padding: 12px;
  border: 1px solid #e0e0e0;
  color: #555;
  vertical-align: top;
}

@media (max-width: 768px) {
  th, td {
    padding: 8px;
  }
}

tbody tr:hover {
  background-color: #fafafa;
}

/* 날짜 섹션 */
.date {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid #e0e0e0;
  font-size: 14px;
  color: #666;
}

.date p {
  margin: 4px 0;
  font-size: 14px;
  color: #666;
}

/* 약관 콘텐츠 */
.terms-content {
  padding: 0;
}

.terms-content h2 {
  font-size: 17px;
  margin-top: 32px;
}

.terms-content h3 {
  font-size: 15px;
  margin-top: 16px;
}

/* 강조 텍스트 */
.highlight {
  background-color: #fff3cd;
  padding: 2px 4px;
  border-radius: 3px;
}

/* 참고사항 박스 */
.note-box {
  background-color: #f8f9fa;
  border-left: 4px solid #6580ff;
  padding: 16px;
  margin: 16px 0;
  border-radius: 4px;
}

.note-box p:first-child {
  margin-top: 0;
}

.note-box p:last-child {
  margin-bottom: 0;
}
