@font-face {
  font-family: "Lilita One";
  src: url("/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Black Han Sans";
  src: url("/fonts/BlackHanSans-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #17101e;
  --paper: #fff6e5;
  --paper-muted: #f3e8d5;
  --purple: #241032;
  --purple-deep: #12051e;
  --purple-light: #9139c4;
  --lime: #9bd600;
  --blue: #42a7d2;
  --muted: #756b7c;
  --line: #a59f99;
  --shadow: 0 9px 0 rgba(8, 3, 13, 0.82);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--purple-deep);
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(145, 57, 196, 0.24), transparent 28rem),
    radial-gradient(circle at 88% 70%, rgba(66, 167, 210, 0.13), transparent 30rem),
    var(--purple-deep);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: #56207b;
  font-weight: 750;
}

a:hover {
  color: #7e2caf;
}

a:focus-visible,
button:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 4px;
}

.policy-shell {
  width: min(980px, calc(100% - 32px));
  margin: 24px auto 64px;
}

.policy-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 88px;
  margin-bottom: 22px;
}

.home-link,
.language-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 17px;
  border: 3px solid #08050b;
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 6px 0 #08050b;
  text-decoration: none;
}

.language-link {
  justify-self: end;
}

.brand-logo {
  display: block;
  width: min(310px, 42vw);
  height: auto;
}

.policy-paper {
  overflow: hidden;
  border: 5px solid #08050b;
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.policy-hero {
  padding: clamp(30px, 6vw, 64px);
  color: #fff9ec;
  background:
    linear-gradient(135deg, rgba(145, 57, 196, 0.28), transparent 55%),
    var(--purple);
}

.policy-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 16px;
  padding: 5px 12px;
  border: 2px solid var(--lime);
  border-radius: 999px;
  color: var(--lime);
  font-weight: 850;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.25;
}

h1,
h2 {
  font-family: "Lilita One", "Black Han Sans", system-ui, sans-serif;
}

html[lang="ko"] h1,
html[lang="ko"] h2 {
  font-family: "Black Han Sans", "Lilita One", system-ui, sans-serif;
  font-weight: 400;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 6vw, 4.6rem);
}

.policy-lead {
  max-width: 760px;
  margin: 0;
  color: #ded2e5;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.policy-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 22px clamp(22px, 5vw, 52px);
  border-bottom: 2px dashed var(--line);
  background: #eaf4c3;
}

.policy-meta dl {
  margin: 0;
}

.policy-meta dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.policy-meta dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.policy-content {
  padding: clamp(28px, 6vw, 64px);
}

.summary-box,
.notice-box {
  padding: 18px 20px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 0 var(--ink);
}

.summary-box {
  margin-bottom: 42px;
}

.summary-box p:last-child,
.notice-box p:last-child {
  margin-bottom: 0;
}

.policy-section {
  padding: 34px 0;
  border-top: 2px dashed #c4bdb4;
}

.policy-section:first-of-type {
  border-top: 0;
}

.policy-section h2 {
  margin-bottom: 16px;
  color: #3f1856;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.policy-section h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}

.policy-section p,
.policy-section ul {
  margin-top: 0;
}

.policy-section li + li {
  margin-top: 7px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.94rem;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #d8d0c7;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eadcf1;
  font-weight: 850;
}

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

code {
  padding: 0.15em 0.35em;
  border-radius: 5px;
  background: #eee5f1;
  font-size: 0.9em;
}

.policy-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: center;
  padding: 26px;
  color: #d8cadf;
  text-align: center;
}

.policy-footer a {
  color: #fff6e5;
}

@media (max-width: 680px) {
  .policy-shell {
    width: min(100% - 18px, 980px);
    margin-top: 10px;
  }

  .policy-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 72px;
  }

  .brand-logo {
    grid-column: 1 / -1;
    grid-row: 1;
    width: min(250px, 62vw);
    margin: 0 auto 8px;
  }

  .home-link,
  .language-link {
    grid-row: 2;
    min-height: 44px;
    padding: 8px 13px;
  }

  .policy-paper {
    border-width: 4px;
    border-radius: 22px;
  }

  .policy-meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .policy-content {
    padding-inline: 20px;
  }

  .policy-section {
    padding-block: 28px;
  }
}
