@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&family=Space+Mono:wght@400;500&display=swap');

:root {
  color-scheme: dark;
  --bg: #020812;
  --card: #0a1425;
  --muted: rgba(233, 245, 255, 0.7);
  --accent: #64ffd3;
  --accent-strong: #23b8ff;
  --border: rgba(255, 255, 255, 0.12);
  --text: #f8fbff;
  --heading: #7efadd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', 'Space Mono', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(100, 255, 211, 0.08), transparent 45%), var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

main {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(2.25rem, 5.4vw, 4.5rem) 4rem;
  flex: 1 1 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(2, 8, 18, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem clamp(2.25rem, 5.4vw, 4.5rem);
  width: 100%;
  max-width: none;
  margin: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 420px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  position: relative;
  background: radial-gradient(circle at 30% 30%, #ff8c5c, #1d0c29);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-mark .spark,
.logo-mark .orbit,
.logo-mark .core {
  position: absolute;
  display: block;
}

.logo-mark .spark {
  width: 12px;
  height: 12px;
  top: 8px;
  left: 8px;
  background: #64ffd3;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(100, 255, 211, 0.8);
}

.logo-mark .orbit {
  width: 36px;
  height: 36px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  top: 5px;
  left: 5px;
}

.logo-mark .core {
  width: 90px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(-25deg);
  top: 30px;
  left: -10px;
}

.logo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}


.logo-copy span {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04rem;
}

.logo-copy small {
  font-size: 0.65rem;
  text-transform: none;
  letter-spacing: 0.08rem;
  color: rgba(255, 255, 255, 0.7);
}

.header-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1 1 auto;
  margin-left: auto;
}

.nav-button {
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.2s ease, background 0.2s ease;
  min-width: 140px;
}

.nav-button:hover,
.nav-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.nav-button--active {
  background: rgba(255, 255, 255, 0.12);
  border-color: #64ffd3;
  color: #64ffd3;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  color: rgba(255, 255, 255, 0.7);
}

.lang-button {
  border-bottom: 1px solid transparent;
  padding: 0.15rem 0.3rem;
  color: inherit;
  text-decoration: none;
}

.lang-button--active {
  color: var(--accent);
  border-color: var(--accent);
  pointer-events: none;
}

.lang-separator {
  opacity: 0.5;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.72rem;
  margin-bottom: 1.5rem;
  background: transparent;
}


.page-header {
  margin-bottom: 2.5rem;
}

.page-header h1 {
  margin: 0 0 0.4rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--heading);
}

.page-header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.legal-card {
  background: linear-gradient(135deg, rgba(9, 18, 35, 0.95), rgba(3, 9, 18, 0.9));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.legal-card section,
.legal-card article {
  margin-bottom: 2rem;
}

.legal-card h2,
.legal-card h3 {
  margin-top: 0;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--heading);
}

.legal-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.legal-card li + li {
  margin-top: 0.4rem;
}

.legal-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}

.legal-card th,
.legal-card td {
  padding: 0.8rem;
  text-align: left;
  border: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.92rem;
}

.legal-card caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(1, 4, 10, 0.9);
  color: rgba(233, 245, 255, 0.75);
  margin-top: 2rem;
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.site-footer .footer-layout {
  width: 100%;
  margin: 0;
  padding: 0.75rem clamp(2.25rem, 5.4vw, 4.5rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-brand span {
  display: block;
  font-weight: 600;
  letter-spacing: 0.08rem;
}

.footer-brand p {
  margin: 0.35rem 0 0;
  color: rgba(233, 245, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.03rem;
  max-width: 580px;
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(233, 245, 255, 0.75);
  background: transparent;
  border: 1px solid rgba(233, 245, 255, 0.3);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  color: #64ffd3;
  border-color: #64ffd3;
}

@media (max-width: 768px) {
  .logo {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }

  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .header-nav {
    justify-content: center;
    margin-left: 0;
  }

  .language-toggle {
    justify-content: center;
    width: 100%;
  }

  .site-footer .footer-layout {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
