/*
 * 하나의 일정 — 법적 고지 페이지 공용 스타일.
 * 색은 앱 theme.ts 의 "Warm Earthy" 브랜드 팔레트와 동일 값을 사용해 앱과 톤을 맞춘다.
 * (앱은 RN DynamicColorIOS, 여기선 CSS 변수 + prefers-color-scheme 로 같은 라이트/다크 값 재현.)
 */

:root {
  /* 라이트 (앱 라이트 모드와 동일 hex) */
  --bg: #faf8f2;         /* appBackground */
  --card: #f2eee4;       /* cardBackground */
  --separator: #d6ccb8;  /* separatorColor */
  --text-primary: #2b2521;
  --text-secondary: #6e6558;
  --text-tertiary: #9c9385;
  --link: #244b72;       /* linkColor (딥블루) */
  --accent: #b8431f;     /* accent (테라코타) */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131313;
    --card: #201e1c;
    --separator: #38332d;
    --text-primary: #ede7dd;
    --text-secondary: #9a9082;
    --text-tertiary: #6e655a;
    --link: #6e9ac4;     /* 다크 밝힘 변형 */
    --accent: #dd6b3f;   /* accentText 다크 밝힘 */
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0 20px;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Pretendard", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 0 72px;
}

/* 상단 브랜드 라인 — 테라코타 얇은 규칙 + 앱 이름 */
.brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0 0 28px;
}

h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.meta {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0 0 4px;
}

.intro {
  color: var(--text-secondary);
  margin: 24px 0 0;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--separator);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 36px;
}

p {
  margin: 14px 0;
}

ul {
  margin: 14px 0;
  padding-left: 22px;
}

li {
  margin: 8px 0;
}

li::marker {
  color: var(--text-tertiary);
}

strong {
  font-weight: 600;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.contact-card {
  margin-top: 20px;
  padding: 18px 20px;
  background-color: var(--card);
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.6;
}

.contact-card .label {
  color: var(--text-tertiary);
  font-size: 13px;
  display: block;
  margin-bottom: 2px;
}

/* 하단 문서 간 이동 / 저작권 */
.foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--separator);
  font-size: 14px;
  color: var(--text-tertiary);
}

.foot a {
  color: var(--text-secondary);
}

.foot .links {
  margin-bottom: 10px;
}

.foot .links a + a::before {
  content: "·";
  color: var(--text-tertiary);
  margin: 0 8px;
}

/* index (문서 목록) */
.doc-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}

.doc-list li {
  margin: 0;
  border-top: 1px solid var(--separator);
}

.doc-list li:last-child {
  border-bottom: 1px solid var(--separator);
}

.doc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
}

.doc-list a:hover {
  text-decoration: none;
  color: var(--accent);
}

.doc-list .chevron {
  color: var(--text-tertiary);
  font-size: 20px;
}
