@font-face {
  font-family: Pretendard;
  src: url("assets/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color: #18212b;
  background: #fff;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  --document-border: #e2e7ed;
  --document-muted: #4b5867;
}

body {
  margin: 0;
}

.legal-document {
  box-sizing: border-box;
  max-width: 840px;
  margin-inline: auto;
  padding: 56px 32px 72px;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.legal-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 32px;
}

.legal-title-row h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.legal-document section {
  padding-block: 24px;
  border-top: 1px solid var(--document-border);
}

.legal-document section:last-child {
  padding-bottom: 0;
}

.legal-document section > :is(h2, h3) {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.4;
}

.legal-document p {
  margin: 0;
}

.legal-document p + p {
  margin-top: 12px;
}

.legal-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.store-warning-image {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto 24px;
}

.store-document :is(ol, ul) {
  margin: 0;
  padding-inline-start: 1.5em;
}

.store-document li + li,
.store-document p + :is(ol, ul),
.store-document :is(ol, ul) + :is(p, ol, ul) {
  margin-top: 8px;
}

.store-warning-text {
  color: #b42318;
}

.legal-document table {
  width: 100%;
  margin-block: 16px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.legal-document :is(th, td) {
  padding: 8px;
  border: 1px solid var(--document-border);
  text-align: start;
  vertical-align: top;
}

.legal-document th {
  background: #f5f7fa;
  font-weight: 600;
}

.policy-picker {
  display: grid;
  gap: 4px;
  font-size: 14px;
  color: var(--document-muted);
}

.policy-picker[hidden] {
  display: none;
}

.policy-picker select {
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid var(--document-border);
  border-radius: 6px;
  background: #fff;
  color: #18212b;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.policy-picker select:focus-visible {
  outline: 2px solid #0068ff;
  outline-offset: 2px;
}

.policy-version h2 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--document-muted);
  font-variant-numeric: tabular-nums;
}

.policy-version > p {
  margin-bottom: 20px;
}

.policy-version > p:last-child {
  margin: 24px 0 0;
}

.policy-version:not([hidden]) + .policy-version:not([hidden]) {
  margin-top: 48px;
}

.policy-version[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .legal-document {
    padding: 32px 20px 48px;
    font-size: 15px;
  }

  .legal-title-row {
    margin-bottom: 24px;
  }

  .legal-document section > :is(h2, h3) {
    font-size: 17px;
  }

  .legal-document :is(th, td) {
    padding: 6px;
  }
}
