/* 법적 페이지 공통 스타일 (/terms, /privacy, /refund, /business)
   Notion 위스퍼 보더 + Stripe tabular-nums + 깔끔한 긴 문서 타이포 */

.legal-wrap {
  max-width: 860px;
  margin: 40px auto 64px;
  padding: 0 24px;
  color: rgba(0, 0, 0, 0.85);
  line-height: 1.75;
  font-size: 15px;
}

.legal-head {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 28px;
  margin-bottom: 32px;
}

.legal-head h1 {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.92);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 16px;
}

.legal-meta {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.6;
  margin: 0 0 12px;
}

.legal-effective {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 12px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.legal-toc {
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 18px 24px;
  margin-bottom: 36px;
}

.legal-toc strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 24px;
}

.legal-toc li {
  margin: 4px 0;
  font-size: 0.9rem;
  break-inside: avoid;
}

.legal-toc a {
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.legal-section {
  margin-bottom: 36px;
  scroll-margin-top: 80px;
}

.legal-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.9);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-section p {
  margin: 0 0 12px;
  color: rgba(0, 0, 0, 0.75);
}

.legal-section ul,
.legal-section ol {
  margin: 8px 0 16px;
  padding-left: 24px;
}

.legal-section li {
  margin: 6px 0;
  color: rgba(0, 0, 0, 0.75);
}

.legal-section li ul,
.legal-section li ol {
  margin: 6px 0;
}

.legal-section strong {
  color: rgba(0, 0, 0, 0.9);
  font-weight: 700;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.9rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.legal-table caption {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  background: transparent;
  caption-side: top;
}

.legal-table thead th {
  background: rgba(0, 0, 0, 0.03);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  color: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.86rem;
}

.legal-table tbody th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.02);
  font-weight: 700;
  color: rgba(0, 0, 0, 0.75);
  vertical-align: top;
  width: 30%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-table tbody td {
  padding: 10px 14px;
  color: rgba(0, 0, 0, 0.72);
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-table tbody tr:last-child th,
.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.legal-business-table th {
  width: 180px;
}

.legal-note {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.55);
  margin: 8px 0 12px;
  padding: 10px 14px;
  background: #fafafa;
  border-left: 3px solid rgba(0, 0, 0, 0.12);
  border-radius: 0 6px 6px 0;
}

.legal-note-section {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 20px;
  margin-top: 36px;
}

.legal-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.5);
  font-variant-numeric: tabular-nums;
}

.legal-footer p {
  margin: 2px 0;
}

.legal-section a {
  color: var(--brand, #0f766e);
  text-decoration: underline;
}

.legal-section a:hover {
  opacity: 0.8;
}

@media (max-width: 640px) {
  .legal-wrap {
    margin: 24px auto 48px;
    padding: 0 16px;
    font-size: 14px;
  }
  .legal-head h1 {
    font-size: 1.5rem;
  }
  .legal-toc ol {
    columns: 1;
  }
  .legal-section h2 {
    font-size: 1.05rem;
  }
  .legal-table {
    font-size: 0.82rem;
  }
  .legal-table tbody th {
    width: 35%;
  }
}
