/* 뱅록 웹페이지(소개·처리방침·약관·지원) 공용 스타일 — 밝은 색은 앱 토큰(src/theme/colors.ts) 값, 어두운 색은 웹 전용이며 시스템 설정만 따른다 */

:root {
  color-scheme: light dark;
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --text: #1B1716;
  --muted: #6B645D;
  --accent: #7B1E3A;
  --line: rgba(60, 52, 48, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151211;
    --surface: #1F1A18;
    --text: #F7F3F0;
    --muted: #B9B0A8;
    --accent: #E7A1B2;
    --line: rgba(247, 243, 240, 0.16);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  /* 한글은 띄어쓰기 자리에서만 줄을 바꾸고(글자마다 꺾이지 않게), 긴 주소는 넘칠 때만 끊는다 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

.site-header,
main,
.site-footer {
  max-width: 42rem;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-header {
  padding-top: 20px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand span {
  color: var(--muted);
  font-weight: 500;
}

main {
  padding-top: 8px;
  padding-bottom: 32px;
}

h1 {
  margin: 1.25rem 0 1rem;
  font-size: 1.6rem;
  line-height: 1.35;
}

h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.2rem;
  line-height: 1.4;
}

h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.4rem;
}

li > ul {
  margin: 0.4rem 0 0;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

/* 표가 화면보다 넓어지면 페이지가 아니라 표만 옆으로 밀어 본다 */
.table-wrap {
  margin: 0 0 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

.site-footer {
  padding-top: 16px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

/* 소개 페이지 */
.intro h1 {
  margin-top: 2.5rem;
  font-size: 2rem;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
}

/* 약관 맨 아래 사업자 정보 */
.business dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 16px;
  font-size: 15px;
}

.business dt {
  color: var(--muted);
}

.business dd {
  min-width: 0;
  margin: 0;
}
