/*
 * 이용약관·개인정보 처리방침 문서 페이지. styles.css의 색·글꼴 변수와 gnav·foot 규칙 위에 얹는다.
 * 소개 페이지와 달리 움직임이 없고 main.js도 읽지 않는다.
 */

.legal {
  font-size: 16px;
  line-height: 1.75;
}

/* 소개 페이지의 gnav는 히어로 위에 겹치도록 음수 여백을 쓴다. 문서 페이지는 겹칠 히어로가 없다. */
.legal .gnav {
  margin-bottom: 0;
}

.legal .gnav .legal-nav {
  display: flex;
  gap: 20px;
}

.legal-nav a[aria-current='page'] {
  opacity: 1;
  font-weight: 700;
}

.doc {
  padding: 56px 0 96px;
}

.doc__wrap {
  width: min(820px, 100% - 44px);
  margin-inline: auto;
}

.doc__head {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.doc h1 {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.024em;
}

.doc__meta {
  margin-top: 10px;
  color: var(--mist);
  font-size: 14px;
}

.doc__lead {
  margin-top: 20px;
}

.summary {
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--paper);
}

.doc .summary h2 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-size: 17px;
}

.doc .summary ul {
  margin-top: 0;
}

.toc {
  margin-top: 32px;
  font-size: 15px;
}

.doc .toc h2 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-size: 15px;
  color: var(--mist);
}

.doc .toc ol {
  margin-top: 0;
  columns: 2 280px;
  column-gap: 32px;
  list-style: none;
  padding: 0;
}

.doc .toc li {
  break-inside: avoid;
  margin-top: 0;
  padding: 3px 0;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.doc h2 {
  margin-top: 56px;
  padding-top: 8px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.doc h3 {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.doc p,
.doc ol,
.doc ul,
.doc .table-scroll {
  margin-top: 12px;
}

.doc ol {
  list-style: decimal;
  padding-left: 1.4em;
}

.doc ul {
  list-style: disc;
  padding-left: 1.3em;
}

.doc ol.plain {
  list-style: none;
  padding-left: 0;
}

.doc li + li {
  margin-top: 6px;
}

.doc li > ol,
.doc li > ul {
  margin-top: 6px;
}

.doc a {
  color: var(--brand-deep);
  text-underline-offset: 2px;
}

.doc strong {
  font-weight: 700;
}

.note {
  color: var(--mist);
  font-size: 14px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.doc table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.doc caption {
  padding-bottom: 8px;
  text-align: left;
  color: var(--mist);
  font-size: 13px;
}

.doc th,
.doc td {
  padding: 10px 12px;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.doc thead th {
  background: var(--paper);
  font-weight: 700;
  white-space: nowrap;
}

.doc tbody th {
  font-weight: 600;
}

.contact {
  margin-top: 12px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
}

.contact dt {
  color: var(--mist);
}

@media (max-width: 734px) {
  .doc {
    padding: 36px 0 72px;
  }

  .legal .gnav .legal-nav {
    margin-left: auto;
    gap: 14px;
  }

  .doc h2 {
    margin-top: 44px;
    font-size: 20px;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact dd {
    margin-bottom: 8px;
  }
}

@media print {
  .gnav,
  .skip,
  .toc,
  .foot {
    display: none;
  }

  .doc {
    padding: 0;
  }

  .doc table {
    min-width: 0;
  }
}
