/* Self-hosted variable fonts (latin + latin-ext) in assets/fonts/ — added 2026-08-27.
   Replaces fonts.googleapis.com (GDPR: no visitor IPs sent to Google pre-consent).
   Do not re-add Google Fonts <link> tags. */
/* Inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var-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;
}
/* Inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/geist-var-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;
}
/* Geist latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/geist-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-var-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;
}
/* JetBrains Mono latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* xtest — shared styles for legal pages (termeni, confidentialitate, cookies) */

:root {
  --bg: #051424;
  --bg-alt: #0d1c2d;
  --bg-card: #122131;
  --text: #d4e4fa;
  --text-muted: #bac9cd;
  --accent: #00e0ff;
  --accent-dim: #005f6d;
  --border: #3b494c;
  --border-soft: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 20, 36, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header-inner { padding: 1rem 64px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-family: Geist, Inter, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { color: var(--accent); }
.brand img { height: 32px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.lang-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.lang-btn {
  padding: 0.375rem 0.75rem;
  background: transparent;
  color: var(--text-muted);
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
  font: inherit;
  transition: background-color 150ms, color 150ms;
}
.lang-btn.is-active { background: var(--accent); color: var(--accent-dim); }
.lang-btn:not(.is-active):hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }

.btn-contact {
  background: var(--accent);
  color: var(--accent-dim);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: opacity 150ms;
}
.btn-contact:hover { opacity: 0.85; color: var(--accent-dim); }

/* ---------- Main legal layout ---------- */
main.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 16px 4rem;
}

@media (min-width: 768px) {
  main.legal { padding: 4rem 32px 5rem; }
}

.legal-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  margin-bottom: 2.5rem;
  background: rgba(0, 224, 255, 0.06);
  border: 1px solid rgba(0, 224, 255, 0.2);
  border-radius: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.legal-banner .icon { color: var(--accent); flex: 0 0 auto; font-family: 'JetBrains Mono', monospace; font-weight: 700; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }

/* ---------- Headings & prose ---------- */
.legal h1 {
  font-family: Geist, Inter, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.legal .updated {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-family: Geist, Inter, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.75rem 0 0.75rem;
  color: var(--accent);
  scroll-margin-top: 80px;
}

.legal h3 {
  font-family: Geist, Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  color: var(--text);
}

.legal p { margin: 0 0 1rem; color: var(--text); }
.legal p strong { color: var(--text); }

.legal ul, .legal ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}
.legal li { margin-bottom: 0.5rem; }
.legal ul li::marker { color: var(--accent); }

.legal hr {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 3rem 0;
}

/* ---------- Tables ---------- */
.legal .table-wrap { overflow-x: auto; margin: 1rem 0 2rem; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}
.legal thead { background: var(--bg-alt); }
.legal th, .legal td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal tr:last-child td { border-bottom: 0; }
.legal th {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace;
}
.legal td code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--accent);
}

/* ---------- Contact box ---------- */
.contact-box {
  margin: 2.5rem 0 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}
.contact-box h3 { margin-top: 0; color: var(--accent); }
.contact-box dl { margin: 0; display: grid; gap: 0.75rem; }
.contact-box dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.contact-box dd { margin: 0.25rem 0 0; font-weight: 600; color: var(--text); }

.reveal-btn {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}
.reveal-btn:hover, .reveal-btn:focus-visible { color: var(--accent); outline: none; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: #010f1f;
  padding: 3rem 16px;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .site-footer { padding: 3rem 64px; }
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.footer-brand {
  font-family: Geist, Inter, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: rgba(186, 201, 205, 0.6);
  margin: 0.25rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 150ms;
}
.footer-links a:hover { color: var(--accent); }

/* ---------- Honeypot ---------- */
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
