/* Palette lifted from the app's dark-only theme (app/lib/theme/app_theme.dart,
   _Palette). The app ships no light variant, so neither do these pages. */
:root {
  color-scheme: dark;
  --bg: #1b1c22;          /* primaryBackground */
  --surface: #262d34;     /* secondaryBackground / alternate */
  --ink: #ffffff;         /* primaryText */
  --muted: #95a1ac;       /* secondaryText */
  --accent: #39d2c0;      /* secondary */
  --on-accent: #1b1c22;   /* onSecondary */
  --rule: #333a42;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 64px;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

main { max-width: 720px; margin: 0 auto; }

header {
  padding: 40px 0 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}

h1 { font-size: 26px; margin: 0; font-weight: 600; }
h2 { font-size: 19px; margin: 34px 0 10px; font-weight: 600; }

a { color: var(--accent); }

#updated { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

/* The stored policy HTML is pasted rich text carrying hardcoded near-black
   `color:` declarations; policy.js strips them (same as the app) so this
   inherited light colour applies. */
#doc { overflow-wrap: break-word; color: var(--ink); }
#doc img, #doc table { max-width: 100%; }
#doc table { display: block; overflow-x: auto; }
#doc a { color: var(--accent); }

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}

footer a { color: var(--muted); margin-right: 14px; }

/* --- account-deletion page --- */

.langswitch {
  display: flex;
  gap: 28px;
  padding-top: 22px;
  font-size: 14px;
}

.langswitch a { color: var(--muted); text-decoration: none; }
.langswitch a:hover { color: var(--ink); }
.langswitch [aria-current] { color: var(--accent); font-weight: 600; }

.langswitch + header { padding-top: 20px; }

ol, ul { padding-left: 22px; }

.field { margin-bottom: 16px; }

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

input[type='email'],
input[type='text'],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
}

input::placeholder, textarea::placeholder { color: var(--muted); }

input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

textarea { min-height: 96px; resize: vertical; }

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 190px;
  min-height: 46px;
  padding: 11px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover { filter: brightness(1.07); }

/* Disabled colours are derived from this button's own background — the same
   rule the app follows (never a theme-level disabled colour, never Opacity). */
button:disabled {
  background: rgba(57, 210, 192, 0.4);
  color: rgba(27, 28, 34, 0.7);
  cursor: default;
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(27, 28, 34, 0.35);
  border-top-color: var(--on-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
}

.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
