:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #a78bfa;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: linear-gradient(180deg, #11172b 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  width: min(960px, calc(100vw - 32px));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
}

.site-brand-mark {
  display: grid;
  width: auto;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, 0.48);
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.16);
  color: #ddd6fe;
  font-size: 11px;
}

.site-nav,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a,
.footer-links a {
  color: #cbd5e1;
  font-size: 13px;
}

.site-nav a:hover,
.footer-links a:hover,
.document a {
  color: #ffffff;
}

.legal-page {
  width: min(800px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 58px 0 72px;
}

.document-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.2;
  letter-spacing: 0;
}

.lead {
  margin: 14px 0 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.75;
}

.updated-at {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.document {
  padding-top: 12px;
}

.document section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.document h2 {
  margin: 0 0 12px;
  font-size: 19px;
  letter-spacing: 0;
}

.document h3 {
  margin: 18px 0 8px;
  font-size: 15px;
}

.document p,
.document li,
.contact-status {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.8;
}

.document p {
  margin: 8px 0;
}

.document ul,
.document ol {
  margin: 10px 0 0;
  padding-left: 21px;
}

.document li + li {
  margin-top: 7px;
}

.info-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  font-size: 13px;
}

.info-table th,
.info-table td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.info-table th {
  width: 25%;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.58);
}

.notice-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(30, 41, 59, 0.55);
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.75;
}

.contact-link {
  display: inline-flex;
  margin-top: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(167, 139, 250, 0.48);
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.16);
  color: #ede9fe;
  font-size: 13px;
  font-weight: 700;
}

.contact-link[hidden] {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 9, 20, 0.58);
}

.site-footer-inner {
  width: min(960px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 26px 0 32px;
  display: grid;
  gap: 16px;
}

.copyright-notice {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .site-header,
  .legal-page,
  .site-footer-inner {
    width: calc(100vw - 20px);
  }

  .site-header {
    gap: 12px;
  }

  .site-brand > span:last-child {
    display: none;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .legal-page {
    padding-top: 40px;
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table tr + tr {
    margin-top: 10px;
  }
}
