@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
  --silver: #c0c0c0;
  --muted: #a0a8c0;
  --accent: #4a90e2;
  --accent-hover: #357abd;
  --panel-bg: rgba(0, 0, 20, 0.72);
  --header-bg: rgba(0, 0, 30, 0.85);
  --text: #d7def0;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #050510;
  color: var(--silver);
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

canvas#starCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(192, 192, 192, 0.1);
  padding: 1.1rem 1.5rem;
}

.header-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  justify-self: start;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--silver);
  text-decoration: none;
  transition: color 0.2s ease;
}

.logo-link:hover {
  color: #fff;
}

.app-name-header {
  justify-self: center;
  grid-column: 2;
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  text-shadow: 0 0 18px rgba(215, 222, 240, 0.18);
}

.header-spacer {
  justify-self: end;
  width: 5.5rem;
}

.page-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 6.5rem auto 2rem;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

main.panel {
  background: var(--panel-bg);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  padding: 2rem 1.6rem;
}

.lang-bar {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(192, 192, 192, 0.14);
  flex-wrap: wrap;
}

.lang-bar .lang-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #e7ecf8;
  border: 1px solid rgba(192, 192, 192, 0.28);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lang-bar .lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(192, 192, 192, 0.45);
}

.lang-bar .lang-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: #6aa8f0;
  box-shadow: 0 0 0 1px rgba(106, 168, 240, 0.35);
}

.legal-nav {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: -0.5rem 0 1.25rem;
}

.legal-nav a,
.legal-nav .legal-nav-current {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.legal-nav a {
  color: #c8d4ea;
  border: 1px solid rgba(192, 192, 192, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.legal-nav a:hover {
  color: #fff;
  border-color: rgba(192, 192, 192, 0.4);
}

.legal-nav .legal-nav-current {
  color: #fff;
  background: rgba(74, 144, 226, 0.22);
  border: 1px solid rgba(122, 168, 240, 0.45);
}

.language-block .section + .section {
  margin-top: 1rem;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1.5rem;
  align-items: start;
}

.content-column {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 6.5rem;
}

.page-title {
  margin: 0 0 1.2rem;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: #e7ecf8;
  text-align: left;
}

.section {
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  text-align: left;
}

.section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  color: #fff;
}

.section h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1rem;
  color: var(--silver);
}

.section p,
.section li {
  margin: 0.35rem 0;
  color: var(--text);
  line-height: 1.55;
  font-size: 0.98rem;
}

.section ol,
.section ul {
  margin: 0.4rem 0;
  padding-left: 1.4rem;
  color: var(--text);
  line-height: 1.55;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.strong {
  font-weight: 700;
  color: #fff;
}

.contact-box {
  margin-top: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(192, 192, 192, 0.1);
}

.contact-box p {
  margin: 0.2rem 0;
}

.email-link {
  color: #7eb8ff;
  text-decoration: none;
  font-weight: 600;
}

.email-link:hover {
  text-decoration: underline;
}

.section a:not(.btn) {
  color: #7eb8ff;
  text-decoration: none;
  font-weight: 600;
}

.section a:not(.btn):hover {
  text-decoration: underline;
}

.buttons,
.btn-group {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

a.btn {
  padding: 0.65rem 1.1rem;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent);
  color: #ffffff !important;
  font-size: 0.95rem;
  display: inline-block;
  border: 1px solid #6aa8f0;
  line-height: 1.3;
}

a.btn:hover {
  background: var(--accent-hover);
  color: #ffffff !important;
  border-color: #6aa8f0;
}

a.btn.secondary {
  background: rgba(74, 144, 226, 0.12);
  border: 1px solid rgba(122, 168, 240, 0.55);
  color: #e7ecf8 !important;
}

a.btn.secondary:hover {
  background: rgba(74, 144, 226, 0.22);
  color: #ffffff !important;
}

.sidebar-card {
  padding: 1.1rem 1.2rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(192, 192, 192, 0.12);
  text-align: center;
}

.sidebar-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #fff;
}

.sidebar-card p {
  margin: 0.4rem 0 1rem;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}

footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #7b89a3;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 520px) {
  .page-wrap {
    margin-top: 5.5rem;
    padding: 0 0.75rem;
  }

  main.panel {
    padding: 1.5rem 1.1rem;
  }

  .app-name-header {
    font-size: 1.35rem;
    letter-spacing: 0.1em;
  }

  .header-spacer {
    width: 3.5rem;
  }

  .top-header {
    padding: 0.85rem 1rem;
  }

  .lang-bar .lang-btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
  }
}
