/* 이상형 산책 — 안내 페이지(소개 · 이용 안내 · 개인정보 처리방침 · 의견 보내기). 문의하기는 페이지 없이 메일 쓰기로 이어진다. */

:root {
  --paper: #fbf5ea;
  --paper-deep: #f3e9d6;
  --ink: #3b2f2a;
  --ink-soft: #7d6b5f;
  --line: rgba(90, 60, 40, .14);
  --accent: #e4a93a;          /* 계절마다 바뀐다 (js/pages.js) */
  --accent-soft: #f8e7bf;
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;   /* 글꼴 규칙은 css/type.css */
  --serif: 'MaruBuri', 'Nanum Myeongjo', 'Apple SD Gothic Neo', 'Malgun Gothic', serif;
}

html[data-season="spring"] { --accent: #e58fa8; --accent-soft: #fbe1e8; }
html[data-season="summer"] { --accent: #4f9a54; --accent-soft: #dcefd6; }
html[data-season="autumn"] { --accent: #e4a93a; --accent-soft: #f8e7bf; }
html[data-season="winter"] { --accent: #7d95b5; --accent-soft: #e3eaf3; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.75 var(--sans);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, textarea:focus-visible, .kind input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 20px 12px;
}

.top-brand {
  font: 700 19px/1.2 var(--serif);
  letter-spacing: .04em;
  text-decoration: none;
}

.top-go {
  flex: none;
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 19px;
  background: var(--ink);
  color: #fdf3e1;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

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

.doc {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 20px 56px;
}

.doc-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
}

html[data-season="autumn"] .doc-kicker { color: #bf8a1c; }

.doc h1 {
  margin: 0 0 10px;
  font: 700 clamp(26px, 6.6vw, 34px)/1.3 var(--serif);
  letter-spacing: .02em;
}

.doc-lead {
  margin: 0 0 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 16.5px;
  color: #5a4a40;
}

.doc h2 {
  margin: 34px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  font: 700 20px/1.4 var(--serif);
}

.doc h3 { margin: 22px 0 6px; font-size: 16px; font-weight: 700; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--ink-soft); }
.doc small, .note { font-size: 14px; color: var(--ink-soft); }

.box {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--accent-soft);
}

.box > :last-child { margin-bottom: 0; }
.box strong { font-weight: 700; }

/* 네 사람, 사계절처럼 나란히 놓는 것 */
.doc .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}

.cards li {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
}

.cards b { display: block; font: 700 16.5px/1.4 var(--serif); }
.cards span { font-size: 14px; color: var(--ink-soft); }

/* 순서 */
.doc .steps { counter-reset: step; margin: 14px 0 18px; padding: 0; list-style: none; }

.steps > li {
  counter-increment: step;
  position: relative;
  margin: 0 0 14px;
  padding: 2px 0 2px 46px;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fdf3e1;
  font: 700 15px/32px var(--sans);
  text-align: center;
}

.steps b { display: block; font-size: 16.5px; }

/* 묻고 답하기 */
.faq dt { margin-top: 18px; font-weight: 700; }
.faq dt::before { content: 'Q. '; color: var(--accent); }
html[data-season="autumn"] .faq dt::before { color: #bf8a1c; }
.faq dd { margin: 4px 0 0; }

/* 표 */
.table-wrap { margin: 12px 0 18px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--paper-deep); font-weight: 700; white-space: nowrap; }

/* 항목 묶음 (개인정보 처리방침) */
.rows { margin: 12px 0 18px; border-top: 1px solid var(--line); }
.row { padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
.doc .row h3 { margin: 0 0 8px; }
.row h3 small { font-weight: 400; }
.row p { display: flex; gap: 12px; margin-bottom: 8px; font-size: 15px; }
.row p b { flex: none; width: 4.6em; font-weight: 500; color: var(--ink-soft); }

/* 버튼 · 메일 주소 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 24px;
  background: var(--ink);
  color: #fdf3e1;
  font: 500 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
}

.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(59, 47, 42, .5); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }

.mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf8;
}

.mail-address {
  font: 700 clamp(18px, 5vw, 22px)/1.3 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  -webkit-user-select: all;
  user-select: all;
}

.mail .btn { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.copied { font-size: 14px; color: var(--ink-soft); }

/* 의견 보내기 */
.form { margin: 18px 0 8px; }
.form fieldset { margin: 0 0 16px; padding: 0; border: 0; }
.form legend, .form label.field { display: block; margin-bottom: 8px; padding: 0; font-weight: 700; }

.kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.kind { position: relative; cursor: pointer; }
.kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.kind span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(59, 47, 42, .3);
  border-radius: 20px;
  background: #fffdf8;
  font-size: 15px;
}

.kind input:checked + span { border-color: var(--ink); background: var(--ink); color: #fdf3e1; }

.form textarea {
  display: block;
  width: 100%;
  min-height: 170px;
  padding: 14px 16px;
  border: 1px solid rgba(59, 47, 42, .3);
  border-radius: 16px;
  background: #fffdf8;
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  resize: vertical;
}

.form-hint { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.form-error { margin: 8px 0 0; font-size: 14.5px; color: #b0412b; }

/* ───────────── 푸터 ───────────── */

.foot {
  padding: 26px 20px max(26px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  text-align: center;
}

.foot-brand { margin: 0; font: 700 17px/1.4 var(--serif); letter-spacing: .04em; }
.foot-tagline { margin: 2px 0 14px; font-size: 13.5px; color: var(--ink-soft); }

.foot-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
}

.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }

/* 웹(넓은 화면): 안내 다섯 개를 한 줄로 늘어놓는다 */
@media (min-width: 720px) {
  .foot-links { flex-direction: row; justify-content: center; }
  .foot-row + .foot-row::before { content: '·'; padding-left: 4px; margin-right: 4px; color: var(--ink-soft); }
}

.foot-links a { padding: 6px 4px; color: #5a4a40; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-links a[aria-current="page"] { font-weight: 700; color: var(--ink); }
.foot-links a + a::before { content: '·'; margin-right: 8px; color: var(--ink-soft); }

/* 산책 중에 안내 창 안에서 열렸을 때: 머리와 푸터는 창이 대신한다 */
html.embed .top, html.embed .foot, html.embed .only-page { display: none; }
html.embed .doc { padding-top: 22px; padding-bottom: 36px; }

@media (max-width: 420px) {
  .top-go { padding: 0 13px; font-size: 13.5px; }
  .doc { padding-left: 18px; padding-right: 18px; }
}
