:root {
  color-scheme: dark;
  --bg: #12072a;
  --panel: #211044;
  --panel-soft: #2a1751;
  --line: #6f58a5;
  --text: #fbf9ff;
  --muted: #c7bbdc;
  --accent: #9fe9ff;
  --accent-strong: #7658e8;
  --danger: #ff9db4;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, Arial, "Microsoft JhengHei", "PingFang TC", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 5%, #6637bb66 0, transparent 32rem),
    radial-gradient(circle at 90% 32%, #215eba4d 0, transparent 34rem),
    linear-gradient(145deg, #190836 0%, #101745 58%, #0b1737 100%);
}

a { color: var(--accent); text-underline-offset: 4px; }

button, input { font: inherit; }

.deletion-header {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 90px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff24;
}

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 108px; height: auto; }
.deletion-header nav, .deletion-footer nav { display: flex; align-items: center; gap: 24px; }
.deletion-header nav a { color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; }
.deletion-header nav a:hover { color: var(--accent); }
.language-link { padding: 7px 14px; border: 1px solid #9fe9ff80; border-radius: 999px; }

main { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 90px; }
.intro { margin-bottom: 36px; }
.eyebrow, .step-label, .success-kicker { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 780px; margin: 0; font-size: clamp(38px, 6vw, 72px); line-height: 1.04; letter-spacing: -.045em; }
.intro-copy { max-width: 780px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }

.notice {
  display: grid;
  margin-top: 30px;
  padding: 18px 20px;
  gap: 3px;
  border: 1px solid #ff9db477;
  border-radius: 14px;
  background: #7a153333;
}
.notice strong { color: #ffd6df; }
.notice span { color: #f0dce5; }

.deletion-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.policy-panel {
  padding: 28px 32px;
  border: 1px solid #967ad647;
  border-radius: 20px;
  background: #160b31b8;
}
.policy-panel h2, .form-card h2 { margin: 0 0 18px; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; }
.policy-panel h2 { font-size: clamp(24px, 3vw, 30px); }
.policy-item { padding: 18px 0; border-top: 1px solid #ffffff21; }
.policy-item h3 { margin: 0 0 7px; font-size: 17px; }
.policy-item p, .support-copy, .form-card > div > p { margin: 0; color: var(--muted); }
.support-copy { padding-top: 20px; border-top: 1px solid #ffffff21; }

.form-card {
  order: -1;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid #967ad65c;
  border-radius: 24px;
  background: linear-gradient(155deg, #ffffff12, transparent 32%), #1c0e3be8;
  box-shadow: 0 28px 80px #07031966, inset 0 1px 0 #ffffff1c;
}

form { display: grid; margin-top: 30px; gap: 11px; }
label:not(.confirmation) { margin-top: 8px; color: #eee8fa; font-size: 14px; font-weight: 800; }
input[type="email"], input[type="text"] {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: #100724b8;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #9fe9ff1f; }
input::placeholder { color: #9588ab; }
.email-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

button, .button-link {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}
button:hover:not(:disabled), .button-link:hover { transform: translateY(-1px); filter: brightness(1.08); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .62; }
.secondary-button { border: 1px solid #9fe9ff8f; color: var(--accent); background: #132454; white-space: nowrap; }
.primary-button { width: 100%; margin-top: 8px; border: 0; color: #fff; background: linear-gradient(135deg, #8b55eb, #405bd8); box-shadow: 0 12px 28px #2011a64d; }
.button-link { display: inline-flex; width: auto; margin-top: 12px; align-items: center; justify-content: center; text-decoration: none; }

.confirmation { display: grid; margin: 15px 0 2px; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; color: #e8e0f5; font-size: 14px; cursor: pointer; }
.confirmation input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--accent-strong); }
.form-status { min-height: 25px; color: var(--accent); font-size: 14px; }
.form-status.is-error { color: var(--danger); }

.success-panel { text-align: left; }
.success-panel dl { margin: 28px 0; padding: 18px 20px; border: 1px solid #9fe9ff61; border-radius: 14px; background: #0d1c45; }
.success-panel dt { color: var(--muted); font-size: 13px; }
.success-panel dd { margin: 3px 0 0; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }

.deletion-footer { padding: 34px 20px; border-top: 1px solid #ffffff21; color: #9f94b6; text-align: center; background: #0c051d99; }
.deletion-footer p { margin: 7px 0; }
.deletion-footer nav { justify-content: center; margin: 12px 0; }
.deletion-footer a { color: #c9bddf; }

@media (max-width: 820px) {
  main { padding-top: 50px; }
}

@media (max-width: 560px) {
  .deletion-header { width: min(100% - 28px, 1180px); min-height: 72px; }
  .brand img { width: 82px; }
  .deletion-header nav { gap: 8px; }
  .deletion-header nav > a:first-child { display: none; }
  main { width: min(100% - 28px, 900px); padding: 42px 0 70px; }
  .intro { margin-bottom: 34px; }
  h1 { font-size: 40px; }
  .email-row { grid-template-columns: 1fr; }
  .secondary-button { width: 100%; }
  .form-card { padding: 24px 18px; border-radius: 18px; }
  .policy-panel { padding: 22px 18px; border-radius: 18px; }
  .deletion-footer nav { flex-wrap: wrap; gap: 10px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
