/* jinjooclub.com 공용 스타일 — 랜딩(/), 앱 소개(/angler/), 약관 문서(.doc) 셋이 함께 쓴다.
   외부 CDN·웹폰트를 끌어오지 않는다(저장소 원칙). */

:root {
  color-scheme: light dark;
  --bg: #f6f8fa;
  --card: #ffffff;
  --fg: #16202a;
  --muted: #5b6b7a;
  --line: #e2e8ee;
  --accent: #0b6fb3;
  --quote-bg: #eef4f9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1519;
    --card: #151f26;
    --fg: #e8eef3;
    --muted: #9aabb8;
    --line: #263440;
    --accent: #59b6f2;
    --quote-bg: #17242d;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
        "Noto Sans KR", "Malgun Gothic", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}
main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}
a { color: var(--accent); }
footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 20px;
  text-align: center;
}
footer a { color: inherit; }

/* ── 공통 헤더 ───────────────────────────────────────── */
header { margin-bottom: 40px; }
h1 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 8px; }
h1 .en { color: var(--muted); font-weight: 400; }
.tagline { color: var(--muted); margin: 0; }

/* ── 카드 섹션(앱 소개) ───────────────────────────────── */
section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
section h2 { font-size: 17px; margin: 0 0 10px; letter-spacing: -0.01em; }
section p { margin: 0 0 10px; }
section p:last-child { margin-bottom: 0; }
section ul { margin: 0; padding-left: 20px; color: var(--muted); }
section li { margin-bottom: 4px; }

/* ── 앱 타일(랜딩의 아이콘 링크) ──────────────────────── */
.apps { display: flex; flex-wrap: wrap; gap: 16px; }
.app-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.app-tile:hover, .app-tile:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.app-tile img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
}
.app-tile .name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.app-tile .sub { color: var(--muted); font-size: 13px; }

/* ── 약관·방침 문서 ──────────────────────────────────── */
.doc { max-width: 800px; }
.crumb { margin-bottom: 24px; font-size: 14px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.doc h3 { font-size: 15px; margin: 28px 0 8px; color: var(--fg); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li > ul, .doc li > ol { margin: 6px 0 0; }
.doc code {
  background: var(--quote-bg);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.doc blockquote {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: var(--quote-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.doc blockquote p { margin: 0; }

/* 목차 */
.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 8px;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 4px; font-size: 14px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* 표 — 좁은 화면에서는 표만 가로 스크롤(본문은 스크롤되지 않는다) */
.tw { overflow-x: auto; margin: 0 0 20px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.doc th { background: var(--quote-bg); font-weight: 600; white-space: nowrap; }

@media (max-width: 480px) {
  main { padding: 32px 16px 48px; }
  h1 { font-size: 24px; }
  .app-tile { width: 100%; }
}
