/*
 * 핀클 법무 문서(이용약관 · 개인정보처리방침 · 계정 삭제 요청) 공통 모양 — 캔버스 'PincleLegalTerms' · 'PincleLegalDelete'.
 * 아이보리 바탕, 머리 줄(핀클 로고 + 「핀클 열기」), 제목 26/800, 회색 시행일 줄, 밑줄 링크,
 * 조항은 흰 면(모서리 20) 하나 안에 1px 선으로 나눈다. 글꼴은 앱과 같은 SUIT(/fonts/suit/suit.css).
 */
:root {
  --legal-ink: #2c2d2f;
  --legal-link: #2c2d2f;
  --legal-background: #f8f7f1;
  --legal-surface: #ffffff;
  --legal-muted: #6b6b69;
  --legal-line: #e9e8e3;
  --legal-soft: #f0efea;
  --legal-page-max: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "LOCA SUIT", SUIT, "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  background: var(--legal-background);
  color: var(--legal-ink);
  font-size: 15px;
  line-height: 1.67;
  letter-spacing: -0.01em;
}

.skip {
  position: absolute;
  left: 16px;
  top: 10px;
  transform: translateY(-160%);
  z-index: 2;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--legal-ink);
  color: var(--legal-surface);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus-visible {
  transform: translateY(0);
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--legal-line);
}

.legal-top__logo {
  display: block;
  width: auto;
  height: 20px;
}

.legal-top .legal-top__open {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--legal-muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

main {
  max-width: var(--legal-page-max);
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero {
  padding: 0 20px;
}

h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 34px;
  letter-spacing: -0.045em;
}

.sub {
  margin: 8px 0 0;
  color: var(--legal-muted);
  font-size: 13px;
  line-height: 20px;
}

.legal-change {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--legal-soft);
  font-size: 13.5px;
  line-height: 20px;
}

a {
  color: var(--legal-link);
  font-weight: 650;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--legal-ink);
  outline-offset: 2px;
}

:is(p, li, .legal-notice, a) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 밑줄 링크 셋 — 보이는 줄은 20px, 누르는 자리는 44px(위아래 음수 여백으로 줄 높이를 지킨다) */
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-top: 12px;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -6px 0;
  font-size: 13.5px;
  line-height: 20px;
  text-decoration: underline;
}

/* 계정 삭제 요청: 잉크 버튼 하나 + 옅은 면 버튼 하나 */
.legal-links--actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.legal-links--actions a {
  justify-content: center;
  min-height: 52px;
  margin: 0;
  border-radius: 14px;
  background: var(--legal-soft);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.legal-links--actions a.legal-link--primary {
  background: var(--legal-ink);
  color: var(--legal-surface);
}

/* 조항: 흰 면 하나 안에 1px 선 */
article {
  margin: 0 12px;
  padding: 18px 20px;
  border-top: 1px solid var(--legal-line);
  background: var(--legal-surface);
}

article:first-of-type {
  margin-top: 18px;
  border-top: 0;
  border-radius: 20px 20px 0 0;
}

article:last-of-type {
  border-radius: 0 0 20px 20px;
}

article:first-of-type:last-of-type {
  border-radius: 20px;
}

h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  line-height: 25px;
  letter-spacing: -0.02em;
}

p {
  margin: 8px 0 0;
  line-height: 25px;
}

.hero p.sub,
.hero p.legal-change {
  line-height: 20px;
}

ul,
ol {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 25px;
}

li + li {
  margin-top: 6px;
}

table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 21px;
}

th,
td {
  border: 1px solid var(--legal-line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

th {
  background: var(--legal-soft);
  font-weight: 700;
}

@media (max-width: 640px) {
  table {
    border: 0;
  }

  table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  table tbody {
    display: grid;
    gap: 10px;
  }

  table tbody tr {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--legal-line);
    border-radius: 12px;
    background: var(--legal-surface);
  }

  table tbody td {
    display: grid;
    grid-template-columns: minmax(76px, 0.35fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    border: 0;
    border-top: 1px solid var(--legal-line);
    padding: 10px 12px;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  table tbody td:first-child {
    border-top: 0;
  }

  table tbody td::before {
    content: attr(data-label);
    font-weight: 750;
    word-break: keep-all;
    overflow-wrap: normal;
  }
}

.legal-followup {
  color: var(--legal-muted);
  font-size: 13.5px;
  line-height: 21px;
}

.legal-notice {
  margin: 16px 12px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--legal-soft);
  color: var(--legal-muted);
  font-size: 13.5px;
  line-height: 21px;
}

footer {
  margin: 16px 20px 0;
  color: var(--legal-muted);
  font-size: 12px;
}
