/* ═══════════════════════════════════════════════════════════════════════════
   법정 페이지 공통 스타일 — /terms · /privacy · /refund (§3 트리 P0)

   세 페이지가 한 파일을 쓴다. 약관·방침·환불은 같이 고쳐지고 같이 읽히는데,
   페이지마다 스타일을 복사해 두면 한 곳만 고쳐진 채 남는다.

   토큰은 허브(/)에서 그대로 가져온다. 새 디자인 언어를 만들지 않는다
   (`src/worker/creator-landing.test.ts` 가 잠근 값과 같은 값이다).
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #fbf7f4;
  --surface: #ffffff;
  --text: #1a1a1f;
  --accent: #f97316;
  --accent-2: #fb7a5c;
  --accent-100: #fff4ed;
  --accent-700: #c2410b;
  --n-200: #f4efeb;
  --n-300: #e7dfd8;
  --n-500: #a99e94;
  --n-600: #6b625a;
  --n-700: #4a433d;
  --line: rgba(26, 26, 31, 0.10);
  --line-strong: rgba(26, 26, 31, 0.16);
  --r-sm: 10px;
  --r-md: 16px;
  --r-pill: 9999px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI",
          system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ── 헤더 ─────────────────────────────────────────────────────────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { display: block; width: 24px; height: 24px; flex: none; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-pill); background-image: linear-gradient(135deg, #f97316 0%, #fb7a5c 100%);
  color: #fff; font-weight: 600; font-size: 14px; padding: 10px 18px; text-decoration: none;
}
.btn:hover { color: #fff; }

/* ── 본문 ─────────────────────────────────────────────────────────────── */
.doc { padding: 48px 0 24px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.16; letter-spacing: -0.035em; }
.doc-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 16px; font-size: 13px; color: var(--n-600);
}
.doc-lede { margin-top: 20px; font-size: 17px; line-height: 1.75; color: var(--n-700); }

/* 상태 띠 — 이 문서가 초안이라는 사실을 가장 먼저 말한다. */
.draft-banner {
  margin-top: 28px; padding: 18px 20px;
  border: 1px solid var(--accent-2); border-left-width: 4px;
  border-radius: var(--r-md); background: var(--accent-100);
  font-size: 15px; line-height: 1.7; color: var(--n-700);
}
.draft-banner b { color: var(--accent-700); }

section.part { margin-top: 48px; }
section.part > h2 {
  font-size: 23px; line-height: 1.3; letter-spacing: -0.025em;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-strong);
}
.clause {
  margin-top: 22px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.clause h3 { font-size: 17px; line-height: 1.45; letter-spacing: -0.02em; }
.clause p, .clause li { font-size: 15px; line-height: 1.8; color: var(--n-700); }
.clause p { margin-top: 10px; }
.clause ul, .clause ol { margin: 10px 0 0 20px; }
.clause li { margin-top: 6px; }
.clause dl { margin-top: 10px; }
.clause dt { margin-top: 12px; font-size: 15px; font-weight: 700; }
.clause dd { margin: 4px 0 0; font-size: 15px; line-height: 1.8; color: var(--n-700); }

/* "무엇이 들어갈 자리인가" — 조항 본문이 아니라 목차라는 것을 눈에 보이게 한다. */
.outline {
  margin-top: 12px; padding: 14px 16px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-sm);
  font-size: 14px; line-height: 1.75; color: var(--n-600);
}
.outline b { color: var(--n-700); }

.pending {
  display: inline-block; margin-left: 8px; padding: 3px 9px;
  border-radius: var(--r-pill); background: var(--accent-100);
  color: var(--accent-700); font-size: 11px; font-weight: 700;
  letter-spacing: 0.02em; vertical-align: middle; white-space: nowrap;
}

table.rules { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 15px; }
table.rules th, table.rules td {
  padding: 12px 14px; border: 1px solid var(--line); text-align: left;
  line-height: 1.7; vertical-align: top;
}
table.rules th { background: var(--n-200); font-weight: 700; }
table.rules td { color: var(--n-700); }

.note { margin-top: 14px; font-size: 13px; line-height: 1.75; color: var(--n-500); }

/* ── 푸터 ─────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 64px; padding: 28px 0 44px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--n-600);
}
.business-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.business-meta a { color: var(--n-600); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.footer-legal a { color: var(--n-600); }

@media (max-width: 720px) {
  .doc { padding: 32px 0 16px; }
  table.rules, table.rules tbody, table.rules tr, table.rules td, table.rules th { display: block; }
  table.rules th { border-bottom: none; }
  table.rules td { border-top: none; }
  table.rules tr { margin-top: 12px; }
}
