/* 약관·개인정보처리방침 공통 스타일. ima-kebipage 종이 톤과 일관 */
:root {
  --paper: #f7efd9;
  --paper-deep: #ede0bf;
  --cream: #fff9eb;
  --ink: #2a2418;
  --ink-soft: #4a3f2c;
  --muted: #7a6f5a;
  --coral: #e85a4f;
  --coral-deep: #c44438;
  --serif: "Fraunces", "Gowun Batang", serif;
  --batang: "Gowun Batang", serif;
  --body: "Pretendard", sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(
      ellipse at top left,
      rgba(212, 165, 42, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at bottom right,
      rgba(232, 90, 79, 0.06) 0%,
      transparent 50%
    );
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.32 0 0 0 0 0.18 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.legal-wrap {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.legal-back:hover {
  color: var(--coral);
}
.legal-back svg {
  width: 16px;
  height: 16px;
}
.legal-card {
  position: relative;
  background: var(--cream);
  border: 2px solid var(--ink-soft);
  border-radius: 4px 28px 4px 28px;
  padding: 48px 40px;
  box-shadow: 0 8px 32px rgba(74, 63, 44, 0.12);
  overflow: hidden;
}
.legal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("paper-grain.svg");
  background-size: 320px 320px;
  mix-blend-mode: multiply;
  opacity: 0.3;
  border-radius: inherit;
  z-index: 0;
}
.legal-card > * {
  position: relative;
  z-index: 1;
}
.legal-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 32px;
  border-bottom: 1.5px dashed rgba(74, 63, 44, 0.25);
}
.legal-meta {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: -24px;
  margin-bottom: 32px;
}
.legal-section {
  margin-bottom: 32px;
}
.legal-section h2 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dotted rgba(74, 63, 44, 0.18);
}
.legal-section h3 {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 8px;
}
.legal-section p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.legal-section ol,
.legal-section ul {
  list-style: none;
  padding-left: 0;
}
.legal-section ol > li,
.legal-section ul > li {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.legal-section ul.sub {
  margin-top: 4px;
  padding-left: 16px;
}
.legal-section ul.sub > li {
  margin-bottom: 4px;
}
.legal-section .label {
  font-weight: 600;
  color: var(--ink);
  margin-top: 14px;
  margin-bottom: 6px;
  display: block;
}
.legal-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border-radius: 8px;
  border: 1.5px solid rgba(74, 63, 44, 0.25);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.legal-table th,
.legal-table td {
  padding: 10px 12px;
  border: 1px solid rgba(74, 63, 44, 0.18);
  text-align: left;
  vertical-align: top;
  color: var(--ink-soft);
}
.legal-table th {
  background: rgba(212, 165, 42, 0.12);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.legal-table td:first-child {
  white-space: nowrap;
}
.legal-footnote {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
}
.legal-supplementary {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1.5px dashed rgba(74, 63, 44, 0.25);
}
.legal-supplementary h2 {
  border: none;
  padding: 0;
}
@media (max-width: 600px) {
  .legal-wrap {
    padding: 32px 16px 56px;
  }
  .legal-card {
    padding: 32px 22px;
    border-radius: 4px 20px 4px 20px;
  }
  .legal-title {
    font-size: 22px;
  }
  .legal-section h2 {
    font-size: 16px;
  }
  .legal-section p,
  .legal-section ol > li,
  .legal-section ul > li {
    font-size: 14px;
  }
}
