:root {
  color-scheme: dark;
  --bg: #0E1424;
  --bg-2: #0B1020;
  --panel: rgba(20, 27, 52, 0.82);
  --panel-2: rgba(255, 255, 255, 0.075);
  --panel-3: rgba(255, 255, 255, 0.105);
  --line: rgba(245, 247, 255, 0.12);
  --line-strong: rgba(245, 247, 255, 0.20);
  --text: #F5F7FF;
  --muted: #A8B0D6;
  --soft: #D9E0FF;
  --accent: #FF4FA3;
  --accent-2: #8FA7FF;
  --danger: #ff756e;
  --focus: #ffe680;
  --shadow: rgba(2, 4, 12, 0.52);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 640px at 12% -8%, rgba(255, 79, 163, .16), transparent 58%),
    radial-gradient(820px 620px at 96% 2%, rgba(143, 167, 255, .16), transparent 56%),
    linear-gradient(135deg, var(--bg), var(--bg-2) 52%, rgba(14, 20, 36, .96));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(245, 247, 255, .28) 0 1px, transparent 1.4px);
  background-size: 42px 42px;
  opacity: .08;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.88), rgba(0,0,0,.28) 70%, transparent);
}

a { color: var(--soft); text-decoration: none; }
a:hover { color: var(--text); }
button, select { font: inherit; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.privacy-shell { width: min(1360px, calc(100vw - 48px)); margin: 0 auto; padding: 18px 0 42px; }
.privacy-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 6px 0 22px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(20, 27, 52, .38); backdrop-filter: blur(18px); box-shadow: 0 18px 60px rgba(2,4,12,.22); }
.privacy-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.privacy-mascot {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 16px;
  object-fit: contain;
  filter: drop-shadow(0 14px 30px rgba(2,4,12,.34));
}
.privacy-logo { width: 164px; height: auto; display: block; }
.privacy-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; min-width: 0; }
.privacy-social-links { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.privacy-social-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 138, 122, .28);
  border-radius: 999px;
  background: rgba(255, 138, 122, .12);
  color: var(--text);
  padding: 9px 18px;
  font-size: .95rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  white-space: nowrap;
}
.privacy-social-link:hover { border-color: rgba(255, 138, 122, .46); background: rgba(255, 138, 122, .18); }
.language-select-wrap {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.language-select-wrap { position: relative; display: flex; align-items: center; min-height: 40px; padding: 0 12px; gap: 8px; }
.language-label { color: var(--muted); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.language-select { min-width: 132px; border: 0; background: transparent; color: var(--text); padding: 9px 2px; font-size: 1rem; font-weight: 760; cursor: pointer; }
.language-select option { color: #071426; background: #fff; }

.privacy-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 27, 52, 0.84), rgba(20, 27, 52, 0.66));
  border-radius: 30px;
  padding: clamp(24px, 4.6vw, 48px);
  box-shadow: 0 32px 110px var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(24px);
}
.privacy-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); }
.privacy-panel::after { content: ""; position: absolute; right: -90px; top: -120px; width: 360px; height: 360px; border-radius: 999px; background: radial-gradient(circle, rgba(255,111,177,.16), transparent 68%); pointer-events: none; }
.privacy-hero { position: relative; z-index: 1; max-width: 1160px; padding-top: 12px; }
.privacy-workspace {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .76fr);
  gap: clamp(16px, 2.2vw, 28px);
  align-items: start;
}
.privacy-actions-card { width: 100%; border: 1px solid var(--line); border-radius: 28px; padding: 18px; background: rgba(255,255,255,.055); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.privacy-hero,
.privacy-workspace,
.privacy-actions-card,
.info-card,
.stable-form,
.notice,
.case-box,
.confirm { min-width: 0; }

.eyebrow { margin: 0 0 14px; color: var(--accent-2); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 100%; margin-bottom: 18px; font-size: clamp(3rem, 5vw, 4.65rem); line-height: .96; letter-spacing: -.035em; text-wrap: balance; }
:lang(ja) h1,
:lang(ko) h1,
:lang(zh) h1 {
  max-width: 18ch;
  font-size: clamp(2.55rem, 4.8vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  word-break: keep-all;
  overflow-wrap: normal;
}
h2 { margin-bottom: 8px; font-size: 1.08rem; letter-spacing: -.02em; }
.lead, .stable-form p, .notice p, .status, .cta-help, .info-card p, .info-card li { color: var(--muted); line-height: 1.58; }
.lead { max-width: 54ch; font-size: clamp(1.02rem, 1.4vw, 1.17rem); }

.notice, .stable-form, .case-box, .confirm { border: 1px solid var(--line); border-radius: 22px; background: var(--panel-2); padding: 18px; backdrop-filter: blur(16px); }
.notice, .case-box, .confirm { margin-top: 14px; }
.stack { display: grid; gap: 14px; }
.stable-form { display: grid; gap: 15px; margin-top: 0; }
.session-state-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(102,234,214,.22);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(102,234,214,.105), rgba(143,167,255,.08)), rgba(255,255,255,.055);
  padding: 15px;
}
.session-state-dot {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 999px;
  background: #66ead6;
  box-shadow: 0 0 0 6px rgba(102,234,214,.12), 0 0 24px rgba(102,234,214,.42);
}
.session-state-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.session-state-title {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  line-height: 1.35;
}
.identity-line {
  margin: 5px 0 0;
  color: var(--soft);
  font-weight: 760;
  line-height: 1.4;
}
.stop-context {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.052);
  color: var(--soft);
  line-height: 1.55;
  padding: 14px 15px;
}
label { display: grid; gap: 8px; color: var(--soft); font-weight: 800; }
select:not(.language-select) { width: 100%; border: 1px solid var(--line); border-radius: 15px; background: rgba(7,20,36,.88); color: var(--text); padding: 14px 15px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.cta-block { display: grid; gap: 7px; }
.cta-help { margin: 0; font-size: .88rem; }
button { min-height: 52px; border: 1px solid var(--line); border-radius: 17px; padding: 13px 17px; color: var(--text); background: var(--panel-3); font-weight: 900; cursor: pointer; transition: transform .16s ease, border-color .16s ease, opacity .16s ease, box-shadow .16s ease; }
button:hover:not([disabled]) { transform: translateY(-1px); border-color: var(--line-strong); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
button[disabled] { cursor: wait; opacity: .62; }
.primary { border-color: transparent; background: linear-gradient(135deg, var(--accent), #ff9dcc); color: #190817; }
.secondary { background: rgba(102,234,214,.11); }
.danger { border-color: rgba(255,117,110,.5); color: #ffe0de; background: rgba(255,117,110,.13); }
.danger.solid { background: var(--danger); color: #260605; }
.ghost { background: transparent; }
.case-box strong { display: block; margin: 8px 0; font-size: 1.05rem; word-break: break-word; letter-spacing: .02em; }
.status {
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}
.status:empty { display: none; }
.status:not(:empty) {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  padding: 12px 14px;
}
.status[data-tone="success"] {
  border-color: rgba(102,234,214,.34);
  background: rgba(102,234,214,.09);
  color: #d9fff8;
}
.status[data-tone="error"] {
  border-color: rgba(255,117,110,.42);
  background: rgba(255,117,110,.10);
  color: #ffe0de;
}
.identity-line,
.notice,
.case-box,
.confirm,
.info-card { overflow-wrap: anywhere; }
.info-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 0; }
.info-card { border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.052); padding: 18px; }
.info-card h2 { color: var(--text); }
.info-card ol { margin: 0; padding-left: 1.2rem; }
.official-card { background: linear-gradient(135deg, rgba(102,234,214,.105), rgba(255,111,177,.08)), rgba(255,255,255,.055); }
.language-switcher { display: none; }
.privacy-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.privacy-footer p { margin: 0; font-weight: 760; }
.privacy-footer nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
.privacy-footer a { color: var(--soft); font-weight: 850; }
.privacy-footer a:hover { color: var(--text); }

@media (max-width: 1380px) {
  .privacy-panel { grid-template-columns: 1fr; border-radius: 30px; }
  .privacy-hero { max-width: 1120px; }
}
@media (max-width: 1024px) {
  .privacy-workspace { grid-template-columns: minmax(0, 1fr); }
  .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .privacy-header { align-items: flex-start; flex-wrap: wrap; }
  .privacy-header-actions { width: 100%; justify-content: space-between; }
  .privacy-social-links { order: 2; width: 100%; justify-content: flex-start; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .privacy-shell { width: min(100% - 22px, 1120px); padding-top: 16px; padding-bottom: 34px; }
  .privacy-header { align-items: flex-start; }
  .privacy-header-actions { min-width: 0; align-items: stretch; }
  .privacy-social-links { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .privacy-social-links::-webkit-scrollbar { display: none; }
  .privacy-social-link { flex: 0 0 auto; min-height: 38px; padding: 8px 14px; font-size: .9rem; }
  .language-select-wrap { width: 100%; justify-content: space-between; border-radius: 16px; }
  .language-select { min-width: 0; width: 100%; text-align: right; }
  .privacy-mascot { width: 44px; height: 44px; border-radius: 14px; }
  .privacy-logo { width: 146px; }
  .privacy-panel { padding: 22px; }
  .privacy-actions-card { padding: 12px; border-radius: 24px; }
  h1 { max-width: 12.5ch; font-size: clamp(2.35rem, 11.4vw, 4rem); }
  :lang(ja) h1,
  :lang(ko) h1,
  :lang(zh) h1 { max-width: 100%; font-size: clamp(2.25rem, 10vw, 3.35rem); }
  .privacy-footer { align-items: flex-start; flex-direction: column; }
  .privacy-footer nav { justify-content: flex-start; }
}
@media (max-width: 430px) {
  .privacy-shell { width: 100%; padding: 12px 10px 30px; }
  .privacy-header { gap: 12px; }
  .privacy-mascot { width: 38px; height: 38px; border-radius: 12px; }
  .privacy-logo { width: min(132px, 36vw); }
  .privacy-header-actions { flex: 1; justify-content: flex-end; }
  .language-select-wrap { max-width: 186px; min-height: 38px; padding: 0 9px; gap: 6px; }
  .language-label { display: none; }
  .language-select { font-size: .95rem; padding: 8px 0; }
  .privacy-panel { padding: 16px; border-radius: 22px; }
  .privacy-hero { padding-top: 6px; }
  .privacy-actions-card { padding: 10px; border-radius: 22px; }
  h1 { max-width: 12.5ch; font-size: clamp(2.1rem, 12.2vw, 3.25rem); line-height: .98; }
  .lead { font-size: .98rem; }
  .notice, .stable-form, .case-box, .confirm, .info-card { padding: 14px; border-radius: 18px; }
  .session-state-card { padding: 14px; border-radius: 18px; }
  .stop-context { padding: 13px 14px; border-radius: 16px; }
  button { width: 100%; min-height: 50px; padding: 12px 14px; }
  .privacy-footer { margin: 22px 10px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }


/* Unified Wayonara privacy center refinement */
.privacy-panel { background: linear-gradient(180deg, rgba(20,27,52,.72), rgba(20,27,52,.46)); }
.privacy-actions-card, .notice, .stable-form, .case-box, .confirm, .info-card { background: rgba(28,37,72,.38); }
.privacy-social-link { padding-inline: 13px; }
.privacy-footer { border-top-color: rgba(245,247,255,.10); }
@media (max-width: 620px) {
  .privacy-shell { width: min(100% - 24px, 1120px); padding-top: 12px; }
  .privacy-header { padding: 10px; border-radius: 18px; }
  .privacy-panel { border-radius: 24px; }
}
