:root {
  color: #162033;
  background: #f4f7fb;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; }

a { color: #075fc8; text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid #ffb000; outline-offset: 3px; }

.site-header,
.site-footer {
  background: #fff;
  border-color: #d9e1ec;
  border-style: solid;
  border-width: 0 0 1px;
}

.site-footer { border-width: 1px 0 0; }

.site-header__inner,
.site-footer__inner,
.page-shell {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.site-brand { color: #162033; font-size: 1.1rem; font-weight: 800; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.page-shell { padding: 48px 0 72px; }

.legal-publication__metadata {
  margin-bottom: 28px;
  padding: 18px 20px;
  background: #eaf2fc;
  border: 1px solid #c8d9ee;
  border-radius: 12px;
}

.legal-publication__metadata dl { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; }
.legal-publication__metadata div { display: grid; grid-template-columns: auto auto; gap: 8px; }
.legal-publication__metadata dt { font-weight: 700; }
.legal-publication__metadata dd { margin: 0; }

.legal-body {
  padding: clamp(24px, 5vw, 56px);
  background: #fff;
  border: 1px solid #d9e1ec;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgb(22 32 51 / 8%);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.legal-body h1 { margin-top: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; }
.legal-body h2 { margin-top: 2.2em; padding-bottom: 0.35em; border-bottom: 1px solid #e4e9f1; }
.legal-body h3 { margin-top: 1.8em; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.94rem; }
.legal-body th,
.legal-body td { padding: 10px 12px; border: 1px solid #cfd8e5; text-align: left; vertical-align: top; }
.legal-body th { background: #f2f6fb; }
.legal-body code { padding: 0.1em 0.35em; background: #edf1f6; border-radius: 4px; }
.raw-source-link { margin: 18px 0 0; font-size: 0.9rem; }

.legal-index { display: grid; gap: 20px; }
.legal-index__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.legal-index__card { display: block; padding: 24px; background: #fff; border: 1px solid #d9e1ec; border-radius: 14px; font-weight: 700; }

@media (max-width: 680px) {
  .site-header__inner,
  .site-footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 16px 0; }
  .legal-index__links { grid-template-columns: 1fr; }
  .legal-body { overflow-x: auto; }
  .legal-publication__metadata dl { display: grid; }
}
