:root {
  color-scheme: dark;
  --background: #05080d;
  --panel: #0c1218;
  --panel-bright: #111a22;
  --border: #2e3c48;
  --text: #d8faff;
  --muted: #8da0aa;
  --cyan: #69f7ff;
  --magenta: #f16bff;
  --green: #5effa1;
  --yellow: #ffe66d;
  --red: #ff637d;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(#05080ddd, #05080df5),
    repeating-linear-gradient(0deg, transparent 0 3px, #69f7ff0a 4px),
    radial-gradient(circle at 50% 0%, #16313b, transparent 52%);
  font-family: "Courier New", "Liberation Mono", monospace;
  line-height: 1.65;
}

a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--magenta);
}

code {
  padding: 2px 6px;
  border: 1px solid #69f7ff33;
  border-radius: 4px;
  color: var(--yellow);
  background: #02090b;
  font: inherit;
  white-space: nowrap;
}

.legal-shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--cyan);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.language-switch {
  display: flex;
  gap: 7px;
}

.language-switch button {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

html[data-language="ru"] [data-set-language="ru"],
html[data-language="en"] [data-set-language="en"] {
  color: #061014;
  border-color: var(--cyan);
  background: var(--cyan);
}

html[data-language="ru"] .lang-en,
html[data-language="en"] .lang-ru {
  display: none;
}

.hero,
.legal-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--panel-bright), var(--panel));
  box-shadow: 0 18px 60px #0008, inset 0 1px #ffffff0a;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: clamp(26px, 7vw, 54px);
}

.hero::after {
  position: absolute;
  right: -18px;
  bottom: -54px;
  color: #69f7ff0b;
  content: ">_";
  font-size: 160px;
  font-weight: 900;
  line-height: 1;
}

.eyebrow {
  color: var(--magenta);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 12px 0;
  color: var(--cyan);
  font-size: clamp(30px, 7vw, 54px);
  letter-spacing: -0.05em;
}

h2 {
  margin: 30px 0 8px;
  color: var(--magenta);
  font-size: 19px;
}

.hero p {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.legal-card {
  padding: clamp(22px, 5vw, 42px);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.updated,
.fine-print {
  color: var(--muted);
  font-size: 13px;
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 7px;
}

.warning {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid #ffe66d55;
  border-radius: 9px;
  color: var(--yellow);
  background: #2a240c55;
}

.delete-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.delete-form label:not(.confirmation) {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.delete-form input[type="text"],
.delete-form input[type="password"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  outline: 0;
  color: var(--text);
  background: #02090b;
  font: inherit;
}

.delete-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px #69f7ff1a;
}

.confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}

.confirmation input {
  margin-top: 6px;
}

.danger-button {
  justify-self: start;
  padding: 13px 18px;
  border: 1px solid var(--red);
  border-radius: 7px;
  color: white;
  background: #a62139;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.danger-button:hover,
.danger-button:focus-visible {
  background: #c72c49;
}

.danger-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.form-status {
  min-height: 26px;
  margin: 0;
  color: var(--red);
}

.form-status.is-success {
  color: var(--green);
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 600px) {
  .legal-shell {
    width: min(100% - 20px, 900px);
    padding-top: 14px;
  }

  .legal-header {
    margin-bottom: 14px;
  }

  .hero,
  .legal-card {
    border-radius: 10px;
  }
}
