:root {
  color-scheme: dark;
  --bg: #080b10;
  --surface: #111722;
  --surface-strong: #182130;
  --text: #f4f7fb;
  --muted: #bdc7d5;
  --accent: #86e8d5;
  --accent-strong: #b3f5e8;
  --line: #344155;
  --warning: #ffd080;
  --danger: #ffb4ab;
  --max-width: 72rem;
  --radius: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 18rem;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgb(55 86 114 / 22%), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #ffffff;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 0.2rem solid var(--warning);
  outline-offset: 0.2rem;
}

.skip-link {
  position: fixed;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  border-block-end: 1px solid rgb(134 232 213 / 24%);
  background: rgb(8 11 16 / 94%);
  backdrop-filter: blur(0.75rem);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding-block: 0.9rem;
}

.brand {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--accent-strong);
}

.language-control {
  display: grid;
  gap: 0.2rem;
  min-width: 8.5rem;
}

.language-control label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.language-control select {
  width: 100%;
  min-height: 2.6rem;
  padding-block: 0.4rem;
  padding-inline: 0.7rem 2rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.page-shell {
  padding-block: clamp(2.5rem, 7vw, 6rem) 5rem;
}

.hero {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
  margin-block-end: 2.5rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 8vw, 5.75rem);
  letter-spacing: -0.035em;
}

.legal-page h1 {
  font-size: clamp(2.1rem, 6vw, 4.4rem);
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

h3 {
  margin: 1.6rem 0 0.45rem;
  font-size: 1.15rem;
}

p,
ul,
ol {
  margin-block: 0 1rem;
}

ul,
ol {
  padding-inline-start: 1.35rem;
}

li + li {
  margin-block-start: 0.45rem;
}

.lede {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.3vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-block-start: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #062019;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent-strong);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.deletion-panel {
  display: grid;
  gap: 1rem;
  margin-block: 1.25rem 3rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgb(24 33 48 / 88%), rgb(12 17 25 / 94%));
}

.deletion-panel h2,
.deletion-panel p {
  margin: 0;
}

.status-box,
.signed-in-account,
.technical-fallback {
  padding: 0.9rem 1rem;
  border-inline-start: 0.25rem solid var(--accent);
  border-radius: 0.6rem;
  background: rgb(0 0 0 / 22%);
}

.confirmation-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.confirmation-row input {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  margin-block-start: 0.12rem;
}

.danger-button {
  border-color: #ff8f8f;
  background: #ffb0b0;
  color: #2b0707;
}

.technical-fallback {
  border-inline-start-color: var(--warning);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.legal-section,
.notice,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgb(24 33 48 / 88%), rgb(12 17 25 / 94%));
  box-shadow: 0 1.2rem 3rem rgb(0 0 0 / 20%);
}

.card {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.card p:last-child,
.legal-section > :last-child,
.notice > :last-child,
.contact-card > :last-child {
  margin-block-end: 0;
}

.legal-stack {
  display: grid;
  gap: 1rem;
}

.legal-section,
.notice,
.contact-card {
  padding: clamp(1.2rem, 4vw, 2rem);
}

.notice {
  border-color: #7d6332;
  background: rgb(65 48 19 / 52%);
}

.notice strong {
  color: var(--warning);
}

.danger-note {
  border-color: #7d4b49;
  background: rgb(67 31 31 / 46%);
}

.meta-line {
  color: var(--muted);
  font-size: 0.92rem;
}

.plain-list {
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding-block: 0.45rem;
  border-block-end: 1px solid rgb(52 65 85 / 55%);
}

.site-footer {
  border-block-start: 1px solid var(--line);
  background: #070a0f;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding-block: 2rem 3rem;
}

.footer-inner p {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.review-required {
  color: var(--warning);
  font-weight: 760;
}

[data-lang][hidden] {
  display: none !important;
}

[dir="rtl"] .eyebrow {
  letter-spacing: normal;
  text-transform: none;
}

.bidi-token {
  direction: ltr;
  unicode-bidi: isolate;
}

@media (max-width: 55rem) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-block: 0.35rem;
    white-space: nowrap;
  }

  [dir="rtl"] .site-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 40rem) {
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    gap: 0.75rem;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .actions {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .legal-section,
  .notice,
  .contact-card {
    break-inside: avoid;
    border-color: #777777;
    background: #ffffff;
    box-shadow: none;
  }
}
