:root {
  --bg: #f4efe6;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #fffdf9;
  --text: #1f2321;
  --muted: #6e716d;
  --line: rgba(31, 35, 33, .13);
  --accent: #a52228;
  --accent-strong: #7f151b;
  --accent-soft: rgba(165, 34, 40, .09);
  --shadow: 0 24px 70px rgba(34, 30, 24, .10);
  --max: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 5%, rgba(165, 34, 40, .08), transparent 25rem),
    radial-gradient(circle at 90% 55%, rgba(31, 35, 33, .045), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(244, 239, 230, .88);
  border-bottom: 1px solid rgba(31, 35, 33, .07);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(34, 30, 24, .14);
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}
.nav-link:hover { background: var(--accent-soft); color: var(--accent-strong); }

main { padding: 44px 0 72px; }
.hero { max-width: 760px; margin-bottom: 28px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 10px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--text); }
h1 { margin: 0; font-size: clamp(38px, 6vw, 62px); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; }
.lead { margin: 16px 0 0; color: var(--muted); font-size: 18px; }

.legal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.document-links, .language-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.pill:hover, .pill[aria-pressed="true"], .pill[aria-current="page"] {
  border-color: rgba(165, 34, 40, .35);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.legal-card {
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.legal-card h2 { margin: 38px 0 10px; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { margin: 24px 0 8px; font-size: 20px; }
.legal-card p { margin: 0 0 14px; }
.legal-card ul { margin: 8px 0 18px; padding-left: 22px; }
.legal-card li + li { margin-top: 7px; }
.legal-card a { color: var(--accent-strong); text-underline-offset: 3px; }
.notice {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--accent-soft);
}
.metadata { color: var(--muted); font-size: 14px; }
[data-language][hidden] { display: none !important; }

.app-return-main {
  min-height: calc(100vh - 67px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.app-return-card {
  width: min(100%, 640px);
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}
.app-return-card .eyebrow { justify-content: center; }
.app-return-card .lead { margin-bottom: 26px; }
.app-return-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  color: var(--surface-solid);
  background: var(--accent-strong);
  font-size: 30px;
  font-weight: 800;
}
.app-return-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-bottom: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent-strong);
  text-decoration: none;
  font-weight: 800;
}
.app-return-button:hover { background: var(--accent); }

.deletion-main { padding: 44px 0 72px; }
.deletion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 24px;
  align-items: start;
}
.deletion-card, .deletion-aside {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.deletion-card { padding: clamp(24px, 5vw, 48px); }
.deletion-aside { padding: 26px; }
.deletion-aside h2 { margin: 0 0 12px; font-size: 24px; }
.deletion-aside p, .deletion-aside li { color: var(--muted); font-size: 14px; }
.deletion-aside ul { margin: 14px 0 0; padding-left: 20px; }
.deletion-aside li + li { margin-top: 9px; }
.deletion-steps { display: flex; gap: 10px; margin: 24px 0 28px; }
.deletion-step {
  flex: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(3, 16, 37, .12);
}
.deletion-step.is-active { background: #957136; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 7px; color: #031025; font-weight: 800; }
.form-help { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; }
.form-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(3, 16, 37, .22);
  border-radius: 13px;
  outline: none;
  color: #031025;
  background: #fffdf9;
  font: inherit;
}
.form-input:focus { border-color: #957136; box-shadow: 0 0 0 4px rgba(149, 113, 54, .14); }
.code-input { text-align: center; font-size: 25px; font-weight: 800; letter-spacing: .35em; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.primary-action, .secondary-action {
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.primary-action { color: #fff; background: #031025; }
.primary-action:hover { background: #15233a; }
.secondary-action { color: #031025; border-color: rgba(3, 16, 37, .2); background: transparent; }
.secondary-action:hover { border-color: #957136; background: rgba(149, 113, 54, .08); }
.primary-action:disabled, .secondary-action:disabled { opacity: .55; cursor: wait; }
.form-message { min-height: 24px; margin: 16px 0 0; font-size: 14px; }
.form-message.is-error { color: #8b1a1a; font-weight: 750; }
.form-message.is-success { color: #2f6845; font-weight: 750; }
.deletion-success {
  padding: 20px;
  border: 1px solid rgba(47, 104, 69, .25);
  border-radius: 18px;
  background: rgba(47, 104, 69, .08);
}
.deletion-success h2 { margin: 0 0 8px; font-size: 26px; }
.environment-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: #8b1a1a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}

footer { padding: 34px 0 38px; border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer-brand { font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
.footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--accent-strong); }
.copyright { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 640px) {
  .shell { width: calc(100% - 28px); }
  .topbar { padding: 9px 0; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
  .brand-text { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .nav-link { min-height: 38px; padding: 7px 10px; font-size: 13px; }
  main { padding: 30px 0 52px; }
  .lead { font-size: 16px; }
  .legal-toolbar { align-items: flex-start; flex-direction: column; }
  .legal-card { padding: 24px 18px; border-radius: 22px; }
  .footer-row { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .deletion-layout { grid-template-columns: 1fr; }
  .deletion-card, .deletion-aside { border-radius: 22px; }
  .deletion-card { padding: 24px 18px; }
  .form-actions > * { width: 100%; }
}

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