/* 기본 여백 제거 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #000000;
  overflow-x: hidden;
  font-family: 'NanumSquareNeo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #ffffff;
}

.terms {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  background: #000000;
  color: #ffffff;
  position: relative;
}

/* 메인 컨텐츠 영역 */
.terms__main {
  flex: 1;
  margin-left: 0;
  padding: 80px 20px 40px 20px;
  max-width: 900px;
  background: #000000;
  display: flex;
  flex-direction: column;
}

.terms__container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.terms__title {
  text-align: center;
}

.terms__last-updated, .terms__section, .terms__contact {
  text-align: left;
}

.terms__title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333333;
}

.terms__last-updated {
  color: #b3b3b3;
  font-size: 14px;
  margin-bottom: 40px;
}

.terms__section {
  margin-bottom: 40px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  border: none;
  scroll-margin-top: 90px;
}

.terms__section:hover {
  transform: none;
  box-shadow: none;
  background: none;
  border: none;
}

.terms__section-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333333;
  display: block;
}

.terms__section-title::before {
  display: none;
}

.terms__content {
  font-size: 16px;
  line-height: 1.8;
  color: #e0e0e0;
  scroll-margin-top: 90px;
}

.terms__content p {
  margin-bottom: 16px;
}

.terms__content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: #ffffff;
}

.terms__content ul, 
.terms__content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.terms__content li {
  margin-bottom: 8px;
}

.terms__content a {
  color: #4a9eff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.terms__content a:hover {
  border-bottom-color: #4a9eff;
}

.terms__content code {
  background: #1a1a1a;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  font-size: 14px;
  color: #e0e0e0;
}

.terms__contact {
  margin-top: 60px;
  padding: 30px;
  background: #1a1a1a;
  border-radius: 6px;
  border: 1px solid #333333;
}

.terms__contact .terms__section-title {
  border: none;
  margin-bottom: 16px;
  color: #ffffff;
}

.terms__table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #181818;
  color: #e0e0e0;
  font-size: 15px;
  border-radius: 8px;
  overflow: hidden;
}
.terms__table th, .terms__table td {
  border: 1px solid #333;
  padding: 12px 10px;
  text-align: left;
}
.terms__table th {
  background: #23272f;
  color: #4a9eff;
  font-weight: 700;
}
.terms__table tr:nth-child(even) {
  background: #202020;
}
.terms__table tr:nth-child(odd) {
  background: #181818;
}
@media (max-width: 768px) {
  .terms__table, .terms__table thead, .terms__table tbody, .terms__table th, .terms__table td, .terms__table tr {
    display: block;
    width: 100%;
  }
  .terms__table thead {
    display: none;
  }
  .terms__table tr {
    margin-bottom: 16px;
    border-bottom: 2px solid #333;
  }
  .terms__table td {
    padding-left: 50%;
    position: relative;
    text-align: left;
    border: none;
    border-bottom: 1px solid #333;
  }
  .terms__table td:before {
    position: absolute;
    top: 12px;
    left: 10px;
    width: 45%;
    white-space: nowrap;
    color: #4a9eff;
    font-weight: 700;
    content: attr(data-label);
  }
}

@media (max-width: 480px) {
  .terms__main {
    padding: 80px 20px 40px 20px;
  }

  .terms__title {
    font-size: 24px;
  }

  .terms__section-title {
    font-size: 20px;
  }

  .terms__content {
    font-size: 14px;
  }

  .terms__contact {
    padding: 20px;
  }
} 