/* JOAWORKS — 공통 스타일
 *
 * 지시서 §11: 전문 소프트웨어 회사 / Audio·Measurement 느낌 /
 * 지나치게 화려하지 않게 / 모바일 우선 / 과도한 애니메이션 금지 /
 * 로딩 속도 우선.
 *
 * 그래서 폰트는 시스템 글꼴만 쓴다 — 웹폰트 하나가 본문보다 무겁고,
 * 뜨기 전까지 글자가 흔들린다.
 */

:root {
  --bg: #0b0f14;
  --surface: #121821;
  --surface-2: #182130;
  --line: #243040;
  --text: #e8edf4;
  --text-2: #a9b6c6;
  --text-3: #6f7f92;
  --accent: #4cc9f0;
  --accent-ink: #062330;
  --max: 980px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f6f8fb;
    --surface-2: #eef2f7;
    --line: #dde4ec;
    --text: #0e1620;
    --text-2: #46566a;
    --text-3: #6b7b8f;
    --accent: #0a7ea4;
    --accent-ink: #ffffff;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── 머리 ───────────────────────────────────────── */

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}

nav.site a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  margin-left: 18px;
  white-space: nowrap;
}

nav.site a:first-child { margin-left: 0; }
nav.site a:hover,
nav.site a:focus-visible { color: var(--accent); }

@media (max-width: 560px) {
  nav.site { width: 100%; padding-bottom: 10px; }
  nav.site a { margin-left: 0; margin-right: 16px; }
}

/* ── 본문 ───────────────────────────────────────── */

main { padding: 40px 0 64px; }

.hero { padding: 48px 0 36px; }

.hero h1 {
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.hero p.lead {
  font-size: clamp(16px, 2.6vw, 19px);
  color: var(--text-2);
  margin: 0;
  max-width: 62ch;
}

h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  text-wrap: balance;
}

h3 { font-size: 17px; margin: 24px 0 8px; }

p { margin: 0 0 14px; max-width: 72ch; }

a { color: var(--accent); }

ul { padding-left: 20px; margin: 0 0 14px; max-width: 72ch; }
li { margin-bottom: 6px; }

.muted { color: var(--text-2); }
.small { font-size: 14px; }

/* ── 상자 ───────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.feature h3 { margin: 0 0 6px; font-size: 15px; }
.feature p { margin: 0; font-size: 14px; color: var(--text-2); }

/* 표 — 개인정보처리방침의 자료 흐름에 쓴다 */
.table-scroll { margin: 0 0 18px; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

th, td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

th { background: var(--surface-2); font-weight: 600; }

/* 권한 이름처럼 긴 코드가 칸을 밀어내지 않게 한다. */
td code, th code { overflow-wrap: anywhere; }

/*
 * **좁은 화면에서는 표를 세로로 푼다.**
 *
 * 처음에는 `min-width: 560px` 에 가로 스크롤로 두었는데, 폰에서 열어
 * 보니 둘째 칸이 화면 밖으로 잘려 나갔다. 가로로 밀 수는 있지만
 * **밀 수 있다는 것을 알 수가 없어** 사실상 못 읽는다.
 *
 * 개인정보처리방침은 심사자와 사용자가 폰으로 읽는 문서다. 읽히지
 * 않으면 없는 것과 같다.
 *
 * 각 칸이 제 이름을 `data-label` 로 달고 있어, 세로로 풀어도 어느
 * 열의 값인지 알 수 있다.
 */
@media (max-width: 700px) {
  .table-scroll table,
  .table-scroll tbody,
  .table-scroll tr,
  .table-scroll td { display: block; width: 100%; }

  .table-scroll thead { display: none; }

  .table-scroll tr {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
  }

  .table-scroll td {
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
  }

  .table-scroll tr td:last-child { border-bottom: none; }

  .table-scroll td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-3);
    margin-bottom: 2px;
  }
}

/* ── 단추 ───────────────────────────────────────── */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 999px;
}

.btn:hover, .btn:focus-visible { filter: brightness(1.08); }

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
}

/* ── 알림 ───────────────────────────────────────── */

.note {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 18px;
}

.note p:last-child { margin-bottom: 0; }

/* ── 바닥 ───────────────────────────────────────── */

footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  color: var(--text-2);
  font-size: 14px;
}

footer.site .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 10px;
}

footer.site a { color: var(--text-2); text-decoration: none; }
footer.site a:hover, footer.site a:focus-visible { color: var(--accent); }

/* 키보드로 다니는 사람에게 지금 어디인지 보인다. */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.updated { color: var(--text-3); font-size: 13px; }
