/* 공개 웹페이지 공통 스타일.
   색·글꼴은 `web/app/index.html` 에서 그대로 가져왔다. 그쪽이 `web/demo/styles.css`
   에서, 그건 다시 앱 테마(`frontend/lib/core/constants/app_colors.dart`)에서 온 것이라
   결국 QR → 안내 페이지 → 앱 이 전부 같은 색을 쓴다.
   🚨 외부 CDN·웹폰트를 쓰지 않는다. 기기에 있는 글꼴만 쓴다 (외부 요청 0). */

:root {
  --teal:            #1A6B5E;
  --teal-deep:       #0E5347;
  --teal-tint:       #EAF3EF;
  --teal-tint-line:  #D7E9E1;

  --cream:           #F6F3EC;
  --surface:         #FFFFFF;
  --cream-line:      #E6DECF;

  --accent:          #C98A3C;
  --amber-tint:      #FBF1E2;
  --amber-line:      #EFDCBD;

  --ink:             #2A2620;
  --ink-2:           #5C5444;
  --text-muted:      #A89F8E;

  --radius:          16px;
  --radius-lg:       22px;
  --shadow:          0 2px 10px rgba(42, 38, 32, .08);
  --shadow-lift:     0 8px 24px rgba(42, 38, 32, .14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               "Noto Sans KR", "Malgun Gothic", "맑은 고딕", "Nanum Gothic",
               "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  word-break: keep-all;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px calc(48px + env(safe-area-inset-bottom, 0px));
}

a { color: var(--teal); }
a.mail { font-weight: 700; word-break: break-all; }

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

.top {
  padding: 34px 0 26px;
  display: flex; align-items: center; gap: 14px;
}
.top__logo {
  width: 56px; height: 56px; border-radius: 14px;   /* 56 * .25 */
  box-shadow: var(--shadow);
  flex: none;
}
.top__name {
  font-size: 25px; font-weight: 800; letter-spacing: -.04em;
  color: var(--teal-deep);
  margin: 0;
}
.top__by { font-size: 13px; font-weight: 600; color: var(--text-muted); margin: 2px 0 0; }

/* ── 표지 ────────────────────────────────────────────────────── */

.hero { padding: 10px 0 34px; }
.hero__title {
  margin: 0;
  font-size: 33px; font-weight: 800; line-height: 1.35; letter-spacing: -.03em;
  color: var(--teal-deep);
}
.hero__lead {
  margin: 16px 0 0;
  font-size: 18px; font-weight: 600; color: var(--ink-2);
}

/* ── 문서 제목 (privacy · account-deletion) ───────────────────── */

.doc-title {
  margin: 0;
  font-size: 29px; font-weight: 800; letter-spacing: -.03em;
  color: var(--teal-deep);
  padding: 6px 0 8px;
}
.doc-sub { margin: 0 0 30px; font-size: 15px; font-weight: 600; color: var(--text-muted); }

/* ── 카드 ────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 2px solid var(--cream-line);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  margin: 0 0 16px;
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 12px;
  font-size: 20px; font-weight: 800; letter-spacing: -.02em;
  color: var(--teal-deep);
}
.card h3 {
  margin: 22px 0 8px;
  font-size: 17px; font-weight: 800; color: var(--ink);
}
.card h3:first-child { margin-top: 0; }
.card p { margin: 0 0 12px; font-size: 16px; color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }

/* 경고/유의 블록. 색만으로 뜻을 전하지 않는다 — 테두리와 배경이 같이 바뀐다. */
.note {
  background: var(--amber-tint);
  border: 2px solid var(--amber-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 20px;
  color: #7A5417;
  font-size: 15px; font-weight: 600;
}
.note p { margin: 0 0 10px; color: inherit; font-size: inherit; }
.note p:last-child { margin-bottom: 0; }
.note strong { font-weight: 800; }

/* ── 목록 ────────────────────────────────────────────────────── */

ul.list, ol.list { margin: 0; padding-left: 22px; }
ul.list li, ol.list li { margin: 0 0 9px; font-size: 16px; color: var(--ink-2); }
ul.list li:last-child, ol.list li:last-child { margin-bottom: 0; }
.list strong { color: var(--ink); font-weight: 800; }

/* ── 무엇을 하는가 (루트) ─────────────────────────────────────── */

.feats { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.feat {
  background: var(--surface);
  border: 2px solid var(--cream-line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.feat__t { font-size: 17px; font-weight: 800; color: var(--teal-deep); }
.feat__d { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }

/* ── 버튼 ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 28px;
  border: 0; border-radius: var(--radius);
  background: var(--teal); color: #fff;
  font: inherit; font-size: 18px; font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-lift);
  transition: transform 120ms ease, background 120ms ease;
}
.btn:hover { background: var(--teal-deep); }
.btn:active { transform: translateY(1px) scale(.995); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ── 제휴 안내(`/partner`) ─────────────────────────────────── */

.partner-fine { margin-top: 14px !important; font-size: 14px !important; color: var(--text-muted) !important; font-weight: 600; }
.partner-btns { display: grid; gap: 10px; }
.partner-btns .btn { width: 100%; }
ol.partner-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
ol.partner-steps li { counter-increment: step; position: relative; padding-left: 44px; }
ol.partner-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
}
.partner-steps__t { margin: 3px 0 0 !important; font-size: 17px !important; font-weight: 800; color: var(--teal-deep) !important; }
.partner-steps__d { margin: 4px 0 0 !important; font-size: 15px !important; color: var(--ink-2); }

/* ── 표 ──────────────────────────────────────────────────────── */

/* 🚨 좁은 화면에서 표가 페이지 전체를 가로로 늘리지 않게 스스로 스크롤한다. */
.table-scroll { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 380px;
  font-size: 15px;
}
th, td {
  border: 1px solid var(--cream-line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--ink-2);
}
th { background: var(--teal-tint); color: var(--teal-deep); font-weight: 800; }

/* ── 맺음말 · 사업자 정보 ─────────────────────────────────────── */

.foot {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 2px solid var(--cream-line);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.foot h2 {
  margin: 0 0 14px;
  font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -.01em;
}
.biz { margin: 0 0 18px; display: grid; gap: 7px; }
.biz div { display: flex; gap: 10px; }
.biz dt { flex: none; width: 96px; color: var(--text-muted); font-weight: 700; }
.biz dd { margin: 0; }
.foot__links { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot__links a { font-weight: 700; text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.foot__copy { margin: 0; color: var(--text-muted); font-size: 13px; }

/* 자바스크립트가 꺼진 브라우저용. 이메일은 `site.js` 한 곳에만 두므로
   그 경우 주소가 안 그려진다 — 전화번호로 안내한다. */
.nojs {
  background: var(--amber-tint);
  border: 2px solid var(--amber-line);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #7A5417;
  font-size: 15px; font-weight: 700;
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero__title { font-size: 27px; }
  .doc-title { font-size: 24px; }
  .card { padding: 20px 18px; }
  .biz dt { width: 84px; }
}
