:root {
  color: #251f18;
  background: #fffaf0;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgb(255 213 101 / 18%), transparent 30rem),
    linear-gradient(180deg, #fffdf8 0%, #fffaf0 100%);
}

a { color: #765700; }

button { font: inherit; }

.legal-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #251f18;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.legal-brand img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgb(88 61 14 / 14%);
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.legal-language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.legal-language-picker::after {
  position: absolute;
  right: 13px;
  color: #765700;
  content: "▾";
  pointer-events: none;
}

.legal-language-picker select {
  min-height: 40px;
  padding: 0 34px 0 13px;
  border: 1px solid #e2d3b8;
  border-radius: 999px;
  appearance: none;
  background: #fffdf7;
  color: #51483f;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.legal-language-picker select:hover,
.legal-language-picker select:focus-visible {
  border-color: #c79519;
  outline: none;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.legal-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #61584f;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.legal-links a[aria-current="page"] {
  background: #ffe7a3;
  color: #3e2b00;
}

.legal-hero,
.legal-card {
  border: 1px solid #eadfce;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 24px 70px rgb(72 50 18 / 8%);
}

.legal-hero {
  padding: clamp(28px, 6vw, 64px);
  border-radius: 30px;
}

.legal-eyebrow {
  margin: 0 0 12px;
  color: #9b6d00;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.legal-hero h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.legal-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #625950;
  font-size: 17px;
  line-height: 1.75;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.legal-meta span {
  padding: 9px 13px;
  border: 1px solid #eadab8;
  border-radius: 999px;
  background: #fff8e4;
  color: #66501d;
  font-size: 13px;
  font-weight: 800;
}

.legal-card {
  margin-top: 20px;
  padding: clamp(24px, 5vw, 52px);
  border-radius: 26px;
}

.legal-card section + section {
  margin-top: 46px;
  padding-top: 42px;
  border-top: 1px solid #eee5d8;
}

.legal-card h2 {
  margin: 0 0 16px;
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -.025em;
}

.legal-card h3 {
  margin: 30px 0 10px;
  font-size: 19px;
}

.legal-card p,
.legal-card li {
  color: #554d46;
  font-size: 15px;
  line-height: 1.78;
}

.legal-card ul,
.legal-card ol { padding-left: 22px; }

.legal-card li + li { margin-top: 6px; }

.table-scroll {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid #eadfce;
  border-radius: 16px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee5d8;
  color: #554d46;
  font-size: 14px;
  line-height: 1.62;
  text-align: left;
  vertical-align: top;
}

th {
  background: #fff8e5;
  color: #3c3225;
  font-weight: 900;
}

tr:last-child td { border-bottom: 0; }

.legal-notice {
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px solid #efd699;
  border-radius: 16px;
  background: #fff5d7;
  color: #4e3b0c;
  line-height: 1.72;
}

.legal-button {
  display: inline-block;
  margin-top: 8px;
  padding: 13px 18px;
  border-radius: 12px;
  background: #6b4eff;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.update-shell { max-width: 860px; }

.update-card { text-align: center; }

.update-card .legal-lead { margin-right: auto; margin-left: auto; }

.update-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 28px;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgb(88 61 14 / 16%);
}

.update-notice { text-align: left; }

.update-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.update-refresh { border: 0; cursor: pointer; }

.legal-button.secondary {
  border: 1px solid #dfcfb2;
  color: #51483f;
  background: #fffdf7;
}

.legal-button:hover,
.legal-button:focus-visible {
  background: #5338e8;
  outline: none;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 4px 0;
  color: #7e7469;
  font-size: 13px;
}

.legal-footer.update-footer {
  justify-content: center;
  gap: 18px;
}

.update-footer a { font-weight: 750; }

.legal-button.secondary:hover,
.legal-button.secondary:focus-visible {
  border-color: #b99755;
  background: #fff8e4;
}

@media (max-width: 720px) {
  .legal-nav { align-items: flex-start; flex-wrap: wrap; }
  .legal-actions { width: 100%; justify-content: space-between; align-items: flex-start; }
  .legal-links { max-width: none; }
  .legal-links a { padding: 7px 9px; font-size: 12px; }
  .legal-language-picker select { min-height: 36px; font-size: 12px; }
  .legal-card { padding: 26px 20px; }
}

@media (max-width: 480px) {
  .legal-actions { display: grid; grid-template-columns: 1fr; }
  .legal-language-picker select { width: 100%; }
  .legal-links { justify-content: flex-start; }
  .legal-hero { border-radius: 22px; }
}
