:root {
  color-scheme: dark;
  --bg: #0b1020;
  --surface: #121a2d;
  --surface-raised: #17223a;
  --line: #263454;
  --text: #f4f7ff;
  --muted: #aab5ce;
  --subtle: #7887a8;
  --accent: #7c9cff;
  --accent-strong: #5b7ff4;
  --success: #51d7a2;
  --danger: #ff8c9f;
  font-family: "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(91, 127, 244, .18), transparent 34%),
    radial-gradient(circle at 90% 80%, rgba(81, 215, 162, .08), transparent 32%),
    var(--bg);
}

button, input { font: inherit; }

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 18px;
}

.consent-card {
  width: min(100%, 570px);
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid rgba(124, 156, 255, .2);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(23, 34, 58, .98), rgba(15, 23, 42, .98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 23px;
  place-items: center;
  border-radius: 13px;
  color: #dce5ff;
  background: linear-gradient(135deg, var(--accent-strong), #8d71ee);
  font-size: 24px;
  box-shadow: 0 9px 25px rgba(91, 127, 244, .28);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

h1 {
  margin: 0;
  font-size: clamp(27px, 5vw, 38px);
  letter-spacing: -.04em;
  line-height: 1.2;
}

.intro {
  margin: 17px 0 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.notice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 23px;
  padding: 14px 15px;
  border: 1px solid rgba(124, 156, 255, .2);
  border-radius: 14px;
  color: #c8d5fb;
  background: rgba(91, 127, 244, .1);
  font-size: 13px;
  line-height: 1.55;
}

.notice p { margin: 0; }
.notice-icon {
  display: grid;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid #96aeff;
  border-radius: 50%;
  color: #a9baff;
  font-size: 12px;
  font-weight: 800;
}

.collection-list { display: grid; gap: 10px; margin-bottom: 20px; }
.collection-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 15, 29, .3);
}
.item-icon {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: #aec0ff;
  background: rgba(124, 156, 255, .12);
  font-size: 18px;
}
.collection-item strong { display: block; margin: 1px 0 4px; font-size: 14px; }
.collection-item span:not(.item-icon) { display: block; color: var(--subtle); font-size: 12px; line-height: 1.55; }

.details-panel { margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.details-panel summary {
  padding: 12px 0 15px;
  cursor: pointer;
  color: #c3d0f7;
  font-size: 13px;
  font-weight: 700;
  list-style-position: inside;
}
.details-content { padding: 0 7px 15px 22px; color: var(--subtle); font-size: 12px; line-height: 1.65; }
.details-content p { margin: 7px 0; }
.details-content b { color: var(--muted); }

fieldset { display: grid; gap: 13px; margin: 0 0 22px; padding: 0; border: 0; }
.consent-option { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; color: #d5ddf1; font-size: 13px; line-height: 1.55; }
.consent-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-check {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  place-items: center;
  border: 1px solid #536586;
  border-radius: 6px;
  background: #10182b;
  transition: .2s ease;
}
.custom-check::after { width: 5px; height: 9px; border: solid #07111f; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); content: ""; transition: .15s ease; }
.consent-option input:focus-visible + .custom-check { outline: 3px solid rgba(124, 156, 255, .35); outline-offset: 2px; }
.consent-option input:checked + .custom-check { border-color: var(--accent); background: var(--accent); }
.consent-option input:checked + .custom-check::after { transform: rotate(45deg) scale(1); }

.primary-button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), #806fe9);
  box-shadow: 0 11px 25px rgba(91, 127, 244, .22);
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(91, 127, 244, .32); }
.primary-button:active:not(:disabled) { transform: translateY(1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .38; box-shadow: none; }
.primary-button.is-busy { cursor: wait; opacity: .8; }
.button-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-busy .button-spinner { display: block; }
.is-busy .button-label { opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.text-button { display: block; margin: 14px auto 0; padding: 4px 10px; border: 0; color: var(--subtle); background: transparent; cursor: pointer; font-size: 12px; }
.text-button:hover { color: var(--muted); }
.status { margin-top: 17px; padding: 14px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.status.success { border: 1px solid rgba(81, 215, 162, .3); color: #a3f0d1; background: rgba(81, 215, 162, .1); }
.status.error { border: 1px solid rgba(255, 140, 159, .3); color: #ffc0cb; background: rgba(255, 140, 159, .1); }
.privacy-footnote { margin: 23px 0 0; color: #657493; text-align: center; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 480px) {
  .page-shell { padding: 12px; }
  .consent-card { padding: 28px 20px 24px; border-radius: 22px; }
  .intro { font-size: 14px; }
}
