:root {
  --bg: #080c10;
  --surface: #0e1318;
  --card: #131820;
  --border: #1c2330;
  --border-light: #252d3d;
  --gold: #f5a623;
  --gold-dim: rgba(245, 166, 35, 0.12);
  --gold-border: rgba(245, 166, 35, 0.25);
  --cyan: #00c8e0;
  --red: #ff4040;
  --green: #00d68f;
  --white: #eef0f4;
  --muted: #7a8499;
  --text: #c8cdd8;
  --font-display: 'Familjen Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #ffc144;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* LANG BAR */
.lang-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.4rem 2rem;
  gap: 0.5rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--gold-dim);
  border-color: var(--gold-border);
  color: var(--gold);
}

.lang-btn:hover:not(.active) {
  border-color: var(--gold-border);
  color: var(--white);
}

/* NAV */
.legal-nav {
  position: fixed;
  top: 33px;
  left: 0;
  right: 0;
  z-index: 130;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 12, 16, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bg);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.logo-text span {
  color: var(--gold);
}

.nav-tagline {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.nav-tagline span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active {
  color: var(--gold);
}

/* LANG SYSTEM */
[data-lang='en'],
[data-lang='es'] {
  display: none !important;
}

.lang-en [data-lang='en'] {
  display: block !important;
}

.lang-en [data-lang='en'].il {
  display: inline !important;
}

.lang-es [data-lang='es'] {
  display: block !important;
}

.lang-es [data-lang='es'].il {
  display: inline !important;
}

/* MAIN */
.legal-main {
  padding: 8.5rem 2rem 4rem;
  min-height: 60vh;
}

.container {
  max-width: 820px;
  margin: 0 auto;
}

.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.5rem 2.25rem;
}

.prose .kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.prose h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose li {
  font-size: 0.92rem;
  line-height: 1.75;
}

.prose .muted,
.prose p.muted,
.prose li.muted {
  color: var(--muted);
}

.prose .small {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}

.prose ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

.prose ul.muted li {
  margin-bottom: 0.35rem;
}

.prose strong {
  color: var(--white);
  font-weight: 600;
}

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: #ffc144;
}

.notice {
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  padding: 1rem 1.15rem;
  margin: 1rem 0;
}

.notice .muted {
  color: var(--text);
}

.chat-notice {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* FOOTER */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-title span {
  color: var(--gold);
}

.footer-meta {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.15rem;
}

.footer-meta a {
  color: var(--muted);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--gold);
}

.fineprint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.footer-links a {
  display: block;
  font-size: 0.83rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links h4 {
  margin-bottom: 0.25rem;
}

.nav-links li {
  list-style: none;
}

@media (max-width: 768px) {
  .lang-bar {
    padding: 0.4rem 1rem;
  }

  .legal-nav {
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .legal-main {
    padding: 7.5rem 1rem 3rem;
  }

  .legal-card {
    padding: 1.75rem 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}
