:root {
  color-scheme: light;
  --green-900: #133f35;
  --green-700: #1f6f5b;
  --ink: #19211d;
  --muted: #58645f;
  --line: #dde5e1;
  --paper: #ffffff;
  --soft: #f6f8f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Noto Sans KR',
    system-ui,
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

.term-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid rgb(221 229 225 / 78%);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--green-900);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.brand:focus-visible,
.term-version select:focus-visible {
  outline: 3px solid rgb(31 111 91 / 28%);
  outline-offset: 3px;
}

.term-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 72px 40px 96px;
}

.term-content h1 {
  margin: 0;
  color: var(--green-900);
  font-size: 44px;
  line-height: 1.16;
  font-weight: 900;
}

.term-content h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
}

.term-content section {
  margin-top: 38px;
}

.term-content p,
.term-content li,
.term-content td,
.term-content th,
.term-content dd,
.term-content dt {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.term-content p {
  margin: 18px 0 0;
}

.term-content p + p {
  margin-top: 12px;
}

.term-date {
  color: var(--green-700) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.term-version {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.term-version select {
  min-width: 168px;
  height: 40px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.term-content a {
  color: var(--green-700);
  font-weight: 800;
  text-underline-offset: 3px;
}

.term-content ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.term-content li + li {
  margin-top: 8px;
}

.term-content table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  border-top: 2px solid var(--green-900);
}

.term-content th,
.term-content td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.term-content th {
  color: var(--ink);
  font-weight: 800;
  background: var(--soft);
}

.term-content td:first-child {
  width: 180px;
  color: var(--ink);
  font-weight: 800;
}

.term-content dl {
  margin: 14px 0 0;
}

.term-content dl div {
  display: flex;
  gap: 10px;
}

.term-content dt {
  min-width: 140px;
  color: var(--ink);
  font-weight: 800;
}

.term-content dd {
  margin: 0;
}

@media (max-width: 720px) {
  .term-header {
    align-items: flex-start;
    padding: 14px 18px;
  }

  .brand {
    font-size: 20px;
  }

  .term-main {
    padding: 48px 18px 64px;
  }

  .term-content h1 {
    font-size: 32px;
  }

  .term-content h2 {
    font-size: 20px;
  }

  .term-version {
    width: 100%;
  }

  .term-version select {
    flex: 1;
    min-width: 0;
  }

  .term-content table {
    display: block;
    overflow-x: auto;
  }

  .term-content th,
  .term-content td {
    min-width: 150px;
  }

  .term-content dl div {
    flex-direction: column;
    gap: 0;
  }

  .term-content dt {
    min-width: 0;
  }
}
