/* The policy hub and its preview footer are independently scoped. */
.policy-page {
  color-scheme: dark;
  margin: 0;
  background: #10080b;
  color: #f2eadc;
  font: 1rem/1.7 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.policy-page .policy-main {
  box-sizing: border-box;
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding: 1rem clamp(1rem, 5vw, 2.5rem) 2.5rem;
}

.policy-page a,
.merchant-footer a {
  color: #efcf92;
  text-decoration: underline;
  text-underline-offset: 0.19em;
}

.policy-page :focus-visible,
.merchant-footer :focus-visible {
  outline: 2px solid #fad993;
  outline-offset: 3px;
}

.policy-page .policy-skip {
  position: absolute;
  z-index: 1;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #efcf92;
  background: #1a0e13;
}

.policy-page .policy-skip:not(:focus) { transform: translateY(-150%); }
.policy-page h1 { margin: 0.25rem 0 0.6rem; font-size: clamp(1.65rem, 5vw, 2.5rem); line-height: 1.25; }
.policy-page h2 { margin: 0 0 0.75rem; font-size: 1.35rem; }
.policy-page h3 { margin: 1rem 0 0.25rem; font-size: 1.05rem; }
.policy-page p { margin: 0.5rem 0 0; }
.policy-page a { display: inline-block; padding-block: 0.35rem; }

.policy-page .policy-badge,
.merchant-footer .merchant-footer__badge {
  width: fit-content;
  margin: 0.8rem 0 0.45rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid #a27d50;
  border-radius: 0.35rem;
  background: #291917;
  color: #ffe3ae;
  font-size: 0.875rem;
  font-weight: 700;
}

.policy-page .policy-nav ul,
.merchant-footer .merchant-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.policy-page .policy-section {
  margin-block-start: 1rem;
  padding: clamp(0.85rem, 4vw, 1.5rem);
  border: 1px solid #6a5056;
  border-radius: 0.75rem;
  background: #1a0e13;
}

.policy-page :target { scroll-margin-block-start: 1rem; }
.policy-page h2:target { color: #ffe3ae; }
.policy-page .policy-cases { margin: 0.85rem 0 0; }
.policy-page .policy-cases dt { margin-block-start: 0.65rem; font-weight: 700; }
.policy-page .policy-cases dd { margin: 0.1rem 0 0; }
.policy-page .policy-top { margin-block-start: 1rem; }

.merchant-footer {
  padding: 1rem;
  border-block-start: 1px solid #6a5056;
  background: #1a0e13;
  color: #f2eadc;
  font-size: 0.875rem;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.merchant-footer .merchant-footer__badge { margin-block-start: 0; }
.merchant-footer .merchant-footer__details { margin: 0.5rem 0 0; }
.merchant-footer .merchant-footer__details div { display: flex; flex-wrap: wrap; column-gap: 0.65rem; }
.merchant-footer .merchant-footer__details dt { font-weight: 700; }
.merchant-footer .merchant-footer__details dd { margin: 0; }
.merchant-footer .merchant-footer__links a { display: inline-block; padding-block: 0.35rem; }
/* 2026-11-29 주현 확정: 첫 화면 하단 약관 링크는 글자색만 한 톤 낮춘다(크기·투명도 유지). */
.merchant-footer .merchant-footer__links { justify-content:center; gap:0 .2rem; }
.merchant-footer .merchant-footer__links li + li::before { content:'·'; margin:0 .45rem; color:#6f6660; }
.merchant-footer .merchant-footer__links a { color:#8f857c; text-decoration-color:rgba(143,133,124,.45); }
.merchant-footer .merchant-footer__links a:hover { color:#c9a86a; }
