:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #26231f;
  background: #f5efe3;
  --paper: #fffaf0;
  --ink: #26231f;
  --muted: #6e665d;
  --line: #d8cdbd;
  --accent: #245b4a;
  --accent-strong: #174436;
  --danger: #8b2f2b;
  --danger-paper: #fff0ec;
  --success-paper: #edf6ee;
  --success-ink: #20502d;
  --shadow: 0 18px 50px rgba(52, 45, 35, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(87, 69, 45, 0.035) 1px, transparent 1px),
    #f5efe3;
  background-size: 100% 28px;
}

a {
  color: var(--accent-strong);
}

.site-shell {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: 44px 0 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #2e594d;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

/* Keep locale choice visible on the standalone account-deletion page without
   adding another script or storing a language preference in the browser. */
.account-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.account-page-top .brand { margin-bottom: 22px; }
.language-switcher {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 22px;
}
.language-switcher a {
  min-width: 2.2rem;
  padding: 5px 7px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
}
.language-switcher a[aria-current="true"] {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.paper {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.paper-header,
.paper-section {
  padding: 28px;
}

.paper-section + .paper-section {
  border-top: 1px solid var(--line);
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.08;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.35rem);
}

h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

p,
li {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 58ch;
  margin: 14px 0 0;
  font-size: 1.03rem;
}

.steps {
  padding-left: 1.3rem;
  margin-bottom: 0;
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

label {
  font-size: 0.9rem;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #aa9d8b;
  border-radius: 10px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(36, 91, 74, 0.28);
  outline-offset: 2px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

button,
.button-link {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-strong);
}

.button-danger {
  background: var(--danger);
  color: white;
}

.notice {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f2e7;
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.55;
}

.notice[data-kind="error"] {
  border-color: #d8a9a3;
  background: var(--danger-paper);
  color: #6e2825;
}

.notice[data-kind="success"] {
  border-color: #b9d2bc;
  background: var(--success-paper);
  color: var(--success-ink);
}

.notice[hidden],
[hidden] {
  display: none !important;
}

.small-print {
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .site-shell {
    width: min(100% - 20px, 720px);
    padding-top: 22px;
  }

  .paper-header,
  .paper-section {
    padding: 22px 18px;
  }

  .actions > * {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Compact language dropdown.
   Explicit locale URLs remain ordinary links: no automatic redirect,
   cookie, JavaScript language state, or runtime translation dependency. */
.language-menu {
  position: relative;
}

.language-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  list-style: none;
  user-select: none;
}

.language-menu > summary::-webkit-details-marker {
  display: none;
}

.language-menu > summary::after {
  content: "\25BE";
  margin-left: 2px;
  font-size: 0.78em;
  transition: transform 120ms ease;
}

.language-menu[open] > summary::after {
  transform: rotate(180deg);
}

.language-menu > summary:hover,
.language-menu > summary:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.language-menu__options {
  position: absolute;
  z-index: 100;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--line, #d7d7d7);
  border-radius: 10px;
  background: var(--paper, #ffffff);
  color: var(--ink, #202020);
  box-shadow: var(--shadow, 0 10px 28px rgba(0, 0, 0, 0.14));
}

.language-menu__options a {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 7px;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0;
}

.language-menu__options a::before {
  font-size: 0.95rem;
}

.language-menu__options a[hreflang="en"]::before {
  content: "\1F1EC\1F1E7  English";
}

.language-menu__options a[hreflang="nl"]::before {
  content: "\1F1F3\1F1F1  Nederlands";
}

.language-menu__options a[hreflang="de"]::before {
  content: "\1F1E9\1F1EA  Deutsch";
}

.language-menu__options a:hover,
.language-menu__options a:focus-visible {
  background: rgba(0, 0, 0, 0.07);
  text-decoration: none;
}

.language-menu__options a[aria-current="true"] {
  font-weight: 800;
  text-decoration: none;
}

.language-menu__options a[aria-current="true"]::after {
  content: "\2713";
  float: right;
  margin-left: 14px;
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .main-nav .language-switcher,
  .main-nav .language-menu {
    width: 100%;
  }

  .main-nav .language-menu > summary {
    width: 100%;
    justify-content: space-between;
  }

  .main-nav .language-menu__options {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
  }
}
