/* ════════════════════════════════════════════
   Uranov – Dev & Tech  |  styles.css v6.2
   Apple-quiet · Lila / Schwarz / Weiß
════════════════════════════════════════════ */

/* ── Self-hosted Fonts (DSGVO-konform) ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('./fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('./fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ── */
:root {
  --bg:        #09090b;
  --bg-b:      #0f0f14;
  --card:      rgba(255,255,255,.03);
  --card-h:    rgba(139,92,246,.05);
  --stroke:    rgba(255,255,255,.06);
  --stroke-h:  rgba(139,92,246,.25);
  --text:      #fafafa;
  --sub:       #a1a1aa;
  --muted:     #63636e;

  --p:         #8b5cf6;
  --p2:        #c4b5fd;
  --p3:        #6d28d9;
  --p-glow:    rgba(139,92,246,.28);
  --p-dim:     rgba(139,92,246,.1);

  --accent:    #c4b5fd;
  --accent-dim:rgba(139,92,246,.1);

  --ok:        #c4b5fd;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --sans:      'Inter', system-ui, -apple-system, sans-serif;

  --radius:    14px;
  --radius-sm: 10px;
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   24px;
  --space-6:   32px;
  --ease-out:  cubic-bezier(0.23, 1, 0.32, 1);
  --duration-press: 160ms;
  --duration-ui: 200ms;
  --duration-modal: 250ms;
  --duration-marketing: 320ms;
  --tt:        var(--duration-ui) var(--ease-out);
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: auto; }
html,body { min-height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(139,92,246,.3); color: #fff; }

/* ── Background: one key light, no tiles, no loops ── */
.page-bg,
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 32% at 50% -16%, rgba(139, 92, 246, 0.06), transparent 55%),
    #09090b;
}
.page-bg__wash {
  display: none;
}
.noise,
.glow {
  display: none;
}

/* ── Utility ── */
.mono { font-family: var(--mono); }

/* ── Topbar ── */
.topbar {
  position: sticky; top: 12px; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  width: min(1060px, 94vw); margin: 12px auto 0;
  padding: 0 20px; height: 56px;
  background: rgba(18,16,24,.82);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.16);
  border-top-color: rgba(255,255,255,.26);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-ring {
  width: 40px; height: 40px; border-radius: 8px; padding: 0; flex-shrink: 0;
  overflow: hidden; background: transparent;
}
.brand-logo-img {
  width: 100%; height: 100%; border-radius: 0; object-fit: contain;
  display: block; border: 0; transform: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: .88rem; font-weight: 650; color: var(--text); letter-spacing: 0.01em; }
.brand-sub  { display: none; }

.topbar-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Lang switcher */
.lang-switcher {
  position: relative;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--sub);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--duration-ui) var(--ease-out), background var(--duration-ui) var(--ease-out), transform var(--duration-press) var(--ease-out);
}
.lang-current:active { transform: scale(0.97); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(12,12,16,.98);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transform-origin: top right;
  transition: opacity var(--duration-ui) var(--ease-out), transform var(--duration-ui) var(--ease-out), visibility var(--duration-ui) var(--ease-out);
  z-index: 300;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .78rem;
  color: var(--sub);
  transition: background .15s, color .15s;
}

.lang-option.active {
  background: rgba(139,92,246,.12);
  color: var(--text);
}

/* Lang gate */
html.await-lang-gate body > :not(#langGate):not(.page-bg):not(.bg-glow):not(.noise),
body.is-lang-gated > :not(#langGate):not(.page-bg):not(.bg-glow):not(.noise) {
  visibility: hidden;
}

html.await-lang-gate .cookie-banner,
body.is-lang-gated .cookie-banner {
  visibility: hidden;
}

html.await-lang-gate #langGate,
body.is-lang-gated #langGate {
  visibility: visible;
}

.lang-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(139,92,246,.08), transparent 55%),
    rgba(9,9,11,.86);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-modal) var(--ease-out), visibility var(--duration-modal) var(--ease-out);
}

.lang-gate.show {
  opacity: 1;
  visibility: visible;
}

.lang-gate.leaving {
  opacity: 0;
  transition: opacity var(--duration-ui) var(--ease-out);
}

.lang-gate-canvas,
.lang-gate-ambient {
  display: none;
}

.lang-gate-inner {
  position: relative;
  z-index: 2;
  width: min(460px, 100%);
}

.lang-gate-card {
  position: relative;
  padding: 32px 28px 26px;
  border-radius: 22px;
  text-align: center;
  background: rgba(16,14,22,.88);
  border: 1px solid rgba(255,255,255,.08);
  border-top-color: rgba(255,255,255,.16);
  box-shadow: 0 32px 80px rgba(0,0,0,.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  overflow: hidden;
}

.lang-gate.show .lang-gate-card {
  animation: gateCardIn var(--duration-modal) var(--ease-out) both;
}

@keyframes gateCardIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-gate-card-shine {
  display: none;
}

.lang-gate-logo {
  width: min(168px, 52vw);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 18px;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.lang-gate-logo img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  border: 0;
  transform: none;
}

.lang-gate-eyebrow {
  display: none;
}

.lang-gate-title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-optical-sizing: auto;
  color: var(--text);
}

.lang-gate-welcome {
  margin: 0 0 8px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--sub);
  line-height: 1.45;
  letter-spacing: 0;
}

.lang-gate-cursor {
  display: none;
}

.lang-gate-sub {
  margin: 0 0 22px;
  font-size: .76rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 34ch;
  margin-inline: auto;
}

.lang-gate-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lang-gate-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 calc(50% - 5px);
  min-width: 0;
  max-width: calc(50% - 5px);
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: .84rem;
  font-weight: 600;
  text-align: left;
  transition: border-color var(--duration-ui) var(--ease-out), background var(--duration-ui) var(--ease-out), transform var(--duration-press) var(--ease-out), box-shadow var(--duration-ui) var(--ease-out);
  opacity: 0;
}

.lang-gate-btn:last-child:nth-child(odd) {
  flex: 0 1 calc(50% - 5px);
}

.lang-gate.show .lang-gate-btn:nth-child(1) { animation: gateBtnIn var(--duration-modal) var(--ease-out) .12s both; }
.lang-gate.show .lang-gate-btn:nth-child(2) { animation: gateBtnIn var(--duration-modal) var(--ease-out) .16s both; }
.lang-gate.show .lang-gate-btn:nth-child(3) { animation: gateBtnIn var(--duration-modal) var(--ease-out) .2s both; }
.lang-gate.show .lang-gate-btn:nth-child(4) { animation: gateBtnIn var(--duration-modal) var(--ease-out) .24s both; }
.lang-gate.show .lang-gate-btn:nth-child(5) { animation: gateBtnIn var(--duration-modal) var(--ease-out) .28s both; }

@keyframes gateBtnIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lang-gate-btn-flag {
  display: grid;
  place-items: center;
  width: 36px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  overflow: hidden;
  transition: box-shadow var(--duration-ui) var(--ease-out), border-color var(--duration-ui) var(--ease-out);
}

.lang-gate-btn-flag img {
  border-radius: 3px;
  flex-shrink: 0;
}

.lang-gate-btn-label {
  flex: 1;
  min-width: 0;
}

.lang-gate-btn-arrow {
  flex-shrink: 0;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--duration-ui) var(--ease-out), transform var(--duration-ui) var(--ease-out), color var(--duration-ui) var(--ease-out);
}

.lang-gate-btn:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .lang-gate.show .lang-gate-card,
  .lang-gate.show .lang-gate-btn,
  .lang-gate.show .lang-gate-eyebrow,
  .lang-gate.show .lang-gate-title,
  .lang-gate.show .lang-gate-welcome,
  .lang-gate.show .lang-gate-sub { animation: none; opacity: 1; }
}

.btn-discord {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: .8rem; font-weight: 600;
  background: rgba(139,92,246,.12); color: var(--p2);
  border: 1px solid rgba(139,92,246,.22);
  transition: background var(--duration-ui) var(--ease-out), color var(--duration-ui) var(--ease-out), border-color var(--duration-ui) var(--ease-out), box-shadow var(--duration-ui) var(--ease-out), transform var(--duration-press) var(--ease-out);
  white-space: nowrap;
}
.btn-discord:active { transform: scale(0.97); }
.btn-discord--server {
  background: rgba(139,92,246,.16);
  color: #ede9fe;
}
.btn-discord--dm {
  background: transparent;
  color: var(--sub);
  border-color: rgba(255,255,255,.1);
}

/* ── Page layout ── */
.page {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 min(3vw, 24px);
}

/* ── Info section ── */
.info {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px;
  padding: 28px 0 20px;
}
.logo-ring-lg {
  width: min(220px, 58vw); height: auto; aspect-ratio: 1;
  border-radius: 0; padding: 0;
  overflow: visible; background: transparent;
  margin-bottom: 8px;
}
.logo-ring-lg .brand-logo-img { border-radius: 0; border: 0; object-fit: contain; }

.info-welcome {
  display: none;
}

.info-greeting {
  font-size: .95rem; font-weight: 400;
  color: var(--sub); letter-spacing: 0;
  margin: 0;
}
.info-name {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.02;
  font-optical-sizing: auto;
  color: #fff;
}
.info-role {
  font-size: .95rem; color: var(--sub); display: flex; align-items: center; gap: 0;
  font-weight: 400;
}
.info-role .dot { margin: 0 8px; color: var(--muted); }

.cursor {
  display: none;
}

.status-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399;
  animation: pulse 2.5s ease-in-out infinite;
}
.status-lbl {
  font-size: .9rem;
  font-weight: 500;
  font-family: var(--sans);
  color: #86efac;
  letter-spacing: 0;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.45} }

.tech-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.pill {
  padding: 6px 13px; border-radius: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  font-size: .88rem; font-weight: 550; font-family: var(--sans);
  color: #fafafa; letter-spacing: 0;
}

/* ── Projects ── */
.projects {
  width: 100%; max-width: 1060px;
  padding-bottom: 12px;
}
.projects-heading {
  font-size: 1.4rem; font-weight: 700; color: #fff;
  letter-spacing: -0.02em; text-transform: none;
  margin-bottom: 16px; text-align: left;
}
.projects-heading .mono { display: none; }
.projects-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* Featured card — full row, horizontal layout */
.project-card.featured {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; gap: 20px;
  padding: 20px 24px;
}
.project-card.featured .project-logo { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; object-fit: contain; }
.project-card.featured .project-body { flex: 1; }
.project-card.featured .project-title { font-size: 1.2rem; }
.project-card.featured .project-desc { font-size: .88rem; margin-bottom: 8px; }

.project-card {
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius);
  padding: 18px; position: relative;
  transition: border-color var(--duration-ui) var(--ease-out), background var(--duration-ui) var(--ease-out), box-shadow var(--duration-ui) var(--ease-out), transform var(--duration-press) var(--ease-out);
  color: inherit;
}
.project-card:active { transform: scale(0.97); }
.project-logo {
  width: 40px; height: 40px; object-fit: contain; border-radius: 10px;
  border: 0;
}
.project-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 2px 8px; border-radius: 6px; font-size: .68rem; font-weight: 500;
  letter-spacing: 0; text-transform: none; font-family: var(--sans);
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.project-badge.amber,
.project-badge.purple,
.project-badge.mint { color: var(--p2); }

.project-body { flex: 1; }
.project-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 5px; letter-spacing: -0.02em; }
.project-desc  { font-size: .84rem; color: var(--sub); line-height: 1.6; margin-bottom: 10px; }
.project-tags  { display: flex; flex-wrap: wrap; gap: 5px; }
.project-tags span {
  padding: 3px 9px; border-radius: 6px;
  background: rgba(139,92,246,.06); border: 1px solid rgba(139,92,246,.12);
  font-size: .7rem; font-family: var(--mono); color: var(--p2); letter-spacing: .2px;
}
.project-arrow {
  position: absolute; right: 18px; bottom: 18px;
  color: var(--p2); opacity: .4; transition: opacity var(--duration-ui) var(--ease-out), transform var(--duration-ui) var(--ease-out), color var(--duration-ui) var(--ease-out);
}

/* ── CTA line ── */
.cta-line {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  margin-top: 24px; padding: 4px 0 8px;
  text-align: center;
}
.cta-line p { font-size: .95rem; color: var(--sub); margin: 0; max-width: 34rem; line-height: 1.5; }
.cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; width: 100%;
}

/* ── Footer ── */
.site-footer {
  width: 100%; max-width: 1060px;
  border-top: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .82rem; color: var(--muted);
  margin-top: 8px;
}
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--muted); transition: color var(--duration-ui) var(--ease-out); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.featured { flex-direction: column; align-items: flex-start; padding: 18px; }
  .project-card.featured .project-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; }
  .project-card.featured .project-title { font-size: 1.1rem; }
}
@media (max-width: 600px) {
  .topbar { top: 8px; border-radius: 12px; height: 56px; margin-top: 8px; padding: 0 12px; flex-wrap: nowrap; gap: 8px; }
  .topbar-right { width: auto; justify-content: flex-end; gap: 8px; }
  .info { padding: 20px 0 16px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { flex-direction: column; align-items: flex-start; padding: 16px; }
  .project-card.featured .project-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; }
  .cta-line { flex-direction: column; text-align: center; margin-top: 20px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn-discord { width: 100%; justify-content: center; }
  .topbar-actions { gap: 6px; }
  .btn-discord--server .btn-discord-label { display: none; }
  .btn-discord--server::after { content: 'Server'; font-size: .82rem; }
  .brand-text { display: none; }
  .btn-discord { padding: 8px 12px; font-size: .82rem; }
  .site-footer { flex-direction: column; text-align: center; gap: 8px; }
  .lang-gate-btn {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .lang-gate-btn:last-child:nth-child(odd) {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .lang-gate-card { padding: 26px 20px 22px; }
  .lang-gate-logo { width: min(148px, 56vw); height: auto; }
}

/* ────────────────────────────────────────
   LEGAL PAGES (privacy, terms)
──────────────────────────────────────── */
.legal-topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px min(5vw, 40px); position: sticky; top: 0; z-index: 100;
  background: rgba(9,9,11,.78); backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.legal-back {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 10px;
  background: var(--p-dim); border: 1px solid rgba(139,92,246,.2);
  color: var(--p2); font-size: .83rem; font-weight: 600;
  transition: background var(--duration-ui) var(--ease-out), transform var(--duration-press) var(--ease-out);
}
.legal-back:active { transform: scale(0.97); }
.legal-back svg { flex-shrink: 0; }
.legal-brand { display: flex; align-items: center; gap: 10px; }
.legal-brand-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; border: 0; }
.legal-brand-name { font-size: .88rem; font-weight: 650; color: var(--text); letter-spacing: 0.01em; }

.legal-main {
  position: relative;
  z-index: 1;
  max-width: 800px; margin: 0 auto; padding: 52px min(5vw,40px) 90px;
}
.legal-main h1 {
  font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em; line-height: 1.08;
  font-optical-sizing: auto; margin-bottom: 6px;
}
.legal-meta {
  font-size: .8rem; color: var(--muted); margin-bottom: 44px;
  padding-bottom: 16px; border-bottom: 1px solid var(--stroke);
}
.legal-main h2 {
  font-size: 1.05rem; font-weight: 700; color: var(--p2);
  margin: 36px 0 10px; letter-spacing: .2px;
}
.legal-main h3 {
  font-size: .93rem; font-weight: 600; color: var(--text);
  margin: 22px 0 8px;
}
.legal-main p { font-size: .875rem; color: var(--sub); line-height: 1.75; margin: 0 0 14px; }
.legal-main ul { padding-left: 20px; margin: 0 0 14px; }
.legal-main li { font-size: .875rem; color: var(--sub); line-height: 1.75; margin-bottom: 5px; }
.legal-main strong { color: var(--text); }
.legal-main a { color: var(--p2); text-decoration: underline; }

.legal-footer {
  border-top: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  padding: 22px min(5vw,40px);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .8rem; color: var(--muted);
  position: relative; z-index: 1;
}
.legal-footer-nav { display: flex; gap: 18px; }
.legal-footer-nav a { color: var(--muted); transition: color var(--duration-ui) var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .lang-current:hover {
    border-color: rgba(139,92,246,.3);
    background: rgba(139,92,246,.08);
  }
  .lang-option:hover {
    background: rgba(139,92,246,.12);
    color: var(--text);
  }
  .lang-gate-btn:hover {
    border-color: rgba(139,92,246,.45);
    background: rgba(139,92,246,.12);
    box-shadow: 0 8px 24px rgba(139,92,246,.15);
  }
  .lang-gate-btn:hover .lang-gate-btn-flag {
    border-color: rgba(139,92,246,.35);
    box-shadow: 0 0 12px rgba(139,92,246,.25);
  }
  .lang-gate-btn:hover .lang-gate-btn-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--p2);
  }
  .btn-discord:hover {
    background: #8b5cf6; color: #fff; border-color: #8b5cf6;
  }
  .btn-discord--dm:hover {
    background: rgba(139,92,246,.16);
    color: #fff;
    border-color: rgba(139,92,246,.35);
  }
  .project-card:hover {
    border-color: rgba(139,92,246,.2);
    background: rgba(139,92,246,.03);
    box-shadow: 0 8px 32px rgba(0,0,0,.25), 0 0 0 1px rgba(139,92,246,.08);
  }
  .project-card:hover .project-arrow { opacity: 1; transform: translateX(4px); color: var(--p2); }
  .footer-nav a:hover { color: var(--p2); }
  .legal-back:hover { background: rgba(139,92,246,.15); }
  .legal-footer-nav a:hover { color: var(--p2); }
  .legal-main a:hover { color: var(--p); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .lang-gate.show .lang-gate-card,
  .lang-gate.show .lang-gate-btn { animation: none !important; opacity: 1; transform: none; }
  .status-dot { animation: none; }
  .btn-discord:active,
  .lang-current:active,
  .lang-gate-btn:active,
  .project-card:active,
  .legal-back:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar,
  .legal-topbar,
  .lang-gate,
  .lang-gate-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .topbar,
  .legal-topbar { background: #121014; }
  .lang-gate { background: #09090b; }
  .lang-gate-card { background: #16141c; }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 24px;
  border-top: 1px solid var(--stroke);
  background: rgba(9, 9, 11, 0.97);
  color: var(--sub);
  font-size: 0.82rem;
  transform: translateY(100%);
  transition: transform var(--duration-modal) var(--ease-out);
}

.cookie-banner.show { transform: translateY(0); }
.cookie-banner.hiding { transform: translateY(100%); }

.cookie-text { max-width: 600px; line-height: 1.5; }
.cookie-text strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cookie-text span { display: block; margin-bottom: 6px; }
.cookie-text a { color: var(--p2); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

.cookie-btn {
  padding: 8px 18px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background var(--duration-ui) ease, color var(--duration-ui) ease, transform var(--duration-press) ease;
}
.cookie-btn:active { transform: scale(0.97); }
.cookie-accept { background: var(--p); color: #fafafa; }
.cookie-decline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px 18px;
  }
  .cookie-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .cookie-btn { transition: none; }
}
