:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #617184;
  --line: #d9e0e8;
  --panel: #ffffff;
  --soft: #f5f7fa;
  --accent: #eb5a10;
  --accent-dark: #c84605;
  --focus: #2563eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Arial, sans-serif;
  background: var(--soft);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

main {
  width: calc(100% - 32px);
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0 72px;
}

header {
  margin-bottom: 24px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
  word-break: normal;
  overflow-wrap: break-word;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.nav a,
.link-card {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.nav a[aria-current="page"],
.nav a:focus,
.nav a:hover,
.link-card:focus,
.link-card:hover {
  border-color: var(--accent);
}

section {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  min-width: 0;
}

h2 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: 0;
}

.link-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.link-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  align-items: start;
}

.link-card span {
  color: var(--muted);
  font-weight: 500;
}

.notice-box {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #eaded2;
  border-radius: 8px;
  background: #fffaf5;
  color: #475467;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 650;
  word-break: normal;
  overflow-wrap: break-word;
}

.privacy-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: break-word;
}

.privacy-box strong {
  color: var(--ink);
  font-size: 14px;
}

.privacy-box dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.privacy-box div {
  display: grid;
  gap: 2px;
}

.privacy-box dt {
  color: var(--ink);
  font-weight: 700;
}

.privacy-box dd {
  margin: 0;
}

form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  min-width: 0;
}

label,
fieldset {
  display: grid;
  gap: 6px;
  font-weight: 700;
  min-width: 0;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
  font-weight: 700;
}

label span,
.help-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  word-break: normal;
  overflow-wrap: break-word;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

select[multiple] {
  min-height: 144px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.option-grid {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.option-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 600;
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

.option-check input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.checks {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  min-width: 0;
}

.check-text {
  display: grid;
  gap: 3px;
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

.check input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
}

button {
  justify-self: start;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:focus,
button:hover {
  background: var(--accent-dark);
}

button[disabled] {
  opacity: .62;
  cursor: wait;
}

.status {
  min-height: 24px;
  font-weight: 700;
}

.status[data-kind="ok"] { color: #12633d; }
.status[data-kind="error"] { color: #b42318; }
