@charset "UTF-8";

/* 사이트 및 앱 WebView 공통 약관 스타일 */
:root {
  --primary-purple: #5b52a3;
  --purple-hover: #494185;
  --purple-light: rgba(91, 82, 163, 0.06);
  --bg-body: #f5f6fa;
  --bg-surface: #fff;
  --bg-table-header: #f3f2f8;
  --border-subtle: #dddfe7;
  --text-bright: #1a1a2e;
  --text-main: #1e1e2e;
  --text-secondary: #374151;
  --text-muted: #596170;
  --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  --content-width: 920px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul { margin: 0; }
a { color: var(--primary-purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-hover); }
:focus-visible {
  outline: 3px solid var(--primary-purple);
  outline-offset: 4px;
}
.main-container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 24px 56px;
}
.wide-container { max-width: var(--max-width); }
.page-title {
  margin-bottom: 20px;
  color: var(--text-bright);
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: -0.6px;
}
.page-desc { margin-bottom: 28px; color: var(--text-muted); }

/* 본문 안의 문서 이동 링크 */
.tabs-wrapper { margin-bottom: 24px; }
.policy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.policy-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
}
.policy-tab:hover { background: var(--purple-light); }
.policy-tab.active {
  border-color: var(--primary-purple);
  background: var(--primary-purple);
  color: #fff;
  font-weight: 600;
}

/* 문서와 조항 */
.policy-card {
  padding: 36px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-surface);
}
.card-header-bar {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}
.policy-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.policy-meta-info strong { color: var(--text-secondary); }
.article { margin-bottom: 36px; }
.article:last-child { margin-bottom: 0; }
.article-title {
  margin-bottom: 12px;
  color: var(--text-bright);
  font-size: 20px;
  line-height: 1.6;
}
.article-content { color: var(--text-secondary); }
.article-content p { margin-bottom: 12px; }
.article-content p:last-child { margin-bottom: 0; }
.sub-heading { margin: 20px 0 8px; font-size: 17px; }
.ordered-list, .unordered-list { padding-left: 24px; margin: 10px 0 14px; }
.ordered-list li, .unordered-list li { margin-bottom: 8px; padding-left: 2px; }
strong { color: var(--primary-purple); }
.intro-statement {
  padding: 16px 20px;
  margin-bottom: 32px;
  border-left: 3px solid var(--primary-purple);
  background: var(--purple-light);
  color: var(--text-secondary);
}

/* 넓은 표는 문서 전체가 아닌 이 영역 안에서 스크롤 */
.table-responsive {
  max-width: 100%;
  overflow-x: auto;
  margin: 14px 0 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}
.zenova-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}
.zenova-table th, .zenova-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.zenova-table th { background: var(--bg-table-header); color: var(--text-bright); }
.zenova-table tbody th { background: var(--bg-surface); color: var(--primary-purple); }
.zenova-table tbody tr:last-child > * { border-bottom: 0; }
.table-subtext { display: block; margin-top: 4px; color: var(--text-muted); font-size: 14px; }

/* 담당자 정보 */
.officer-box, .officer-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--purple-light);
}
.officer-box { margin-top: 16px; }
.officer-grid, .officer-cards-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.officer-cards-wrap { margin-top: 16px; }
.officer-col { display: flex; flex-direction: column; min-width: 0; }
.officer-label { color: var(--text-muted); font-size: 14px; }
.officer-value { color: var(--text-bright); font-weight: 600; }
.officer-card-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-bright);
  font-weight: 700;
}
.officer-row { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.officer-row:last-child { margin-bottom: 0; }
.officer-row-label { flex: 0 0 90px; color: var(--text-muted); }
.officer-row-val { min-width: 0; color: var(--text-bright); }

/* 안내 페이지 */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.policy-card-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-surface);
}
.card-title { margin-bottom: 12px; color: var(--text-bright); font-size: 21px; line-height: 1.5; }
.card-desc { flex: 1; margin-bottom: 24px; color: var(--text-secondary); }
.card-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--primary-purple);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.card-btn:hover { background: var(--purple-light); }

@media (max-width: 860px) {
  .cards-grid { grid-template-columns: 1fr; }
  .officer-cards-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { background: var(--bg-surface); }
  .main-container { padding: 24px 20px 40px; }
  .page-title { font-size: 26px; }
  .policy-tabs { flex-direction: column; gap: 6px; }
  .policy-tab { padding: 8px 12px; }
  .policy-card { padding: 0; border: 0; border-radius: 0; }
  .policy-meta-info { flex-direction: column; }
  .card-header-bar { padding-bottom: 20px; margin-bottom: 28px; }
  .article-title { font-size: 19px; }
  .intro-statement { padding: 14px 16px; }
  .officer-grid { grid-template-columns: 1fr; }
  .officer-box, .officer-card { padding: 16px; }
  .policy-card-item { padding: 24px; }
}
