/* Shared base styles — used by every page. Landing-specific rules live in landing.css. */

:root {
  --bg: #0f1720;
  --card: #0b1220;
  --text: #e6eef6;
  --muted: #9fb0c6;
  --accent: #6ee7b7;
  --max-width: 920px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* 16px minimum to avoid iOS zoom-on-focus inside forms */
  font-size: 16px;
  background: linear-gradient(180deg, var(--bg), #061019);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

/* ----- Site header (banner + nav) ----- */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 16px 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  display: block;
  line-height: 0;
  width: 100%;
  text-align: center;
}

.banner {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: inline-block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  width: 100%;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-links {
  justify-content: flex-start;
}

.lang-toggle {
  justify-content: flex-end;
  margin-left: auto;
}

/* Primary nav — page links: prominent button-style targets */
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a:focus-visible,
.lang-toggle a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* Lang toggle — secondary control: inline, no pill, separator dot */
.lang-toggle {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  gap: 0;
}

.lang-toggle li {
  display: inline-flex;
  align-items: center;
}

.lang-toggle li + li::before {
  content: "·";
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.25);
}

.lang-toggle a,
.lang-toggle .active {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: inherit;
  line-height: 1;
}

.lang-toggle a:hover {
  color: var(--accent);
}

.lang-toggle .active {
  color: var(--text);
  font-weight: 700;
}

@media (min-width: 600px) {
  .site-header {
    padding: 28px 24px 0;
    gap: 18px;
  }
}

/* ----- Main content container (privacy & support) ----- */

.container {
  max-width: 920px;
  margin: 28px auto;
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

h1 {
  margin-top: 0;
  font-size: 1.6rem;
}

h2 {
  margin-bottom: 0.25rem;
}

p,
ul {
  color: var(--muted);
  line-height: 1.6;
}

ul {
  margin-top: 0;
}

hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin: 22px 0;
}

/* ----- Site footer ----- */

.site-footer {
  margin: 32px auto 16px;
  padding: 16px;
  max-width: var(--max-width);
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer .made-with {
  display: inline-block;
  opacity: 0.7;
}

@media (max-width: 599px) {
  .container {
    margin: 14px;
    padding: 18px;
    border-radius: 8px;
  }

  h1 {
    font-size: 1.3rem;
  }

  .site-footer p {
    line-height: 1.9;
  }
}

/* Utility */
.muted {
  color: var(--muted);
}
