/*
 * 메이플 루틴 안내 사이트 — 스토어가 요구하는 개인정보 처리방침·지원 URL을 서빙하는 최소 사이트다.
 * 앱의 테마 토큰(job-themes.json)을 끌어오지 않는다: 여기서 필요한 건 읽히는 문서 두 장뿐이고,
 * 38토큰 체계를 웹에 복제하면 앱 테마가 바뀔 때마다 두 곳을 고쳐야 한다. 브랜드 주황 하나만 공유한다.
 */

:root {
  --brand: #f58b0f;
  --bg: #ffffff;
  --surface: #faf7f2;
  --text: #1c1917;
  --text-muted: #57534e;
  --border: #e7e2da;
  --max-width: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f;
    --surface: #201a15;
    --text: #f5f1ea;
    --text-muted: #a8a29e;
    --border: #342b23;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 1.25rem;
  background-color: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard', 'Malgun Gothic',
    sans-serif;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--brand);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.35;
  margin: 0 0 1.5rem;
}

h2 {
  font-size: 1.2rem;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 1.02rem;
  margin: 1.75rem 0 0.5rem;
}

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

hr {
  height: 0;
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

/* 표는 항상 스스로 스크롤한다 — 페이지 본문이 가로로 밀리면 모바일에서 읽을 수 없다. */
.table-scroll {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border: 1px solid var(--border);
  vertical-align: top;
}

th {
  background-color: var(--surface);
  white-space: nowrap;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background-color: var(--surface);
  font-size: 0.9em;
}

blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--brand);
  background-color: var(--surface);
  color: var(--text-muted);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
}
