/* Shared styles for the landing page and the privacy policy. */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --surface: #FFFFFF;
  --text: #0B1B2E;
  --text-muted: #5A6878;
  --navy: #08274F;
  --blue: #1D6FE8;
  --mint: #22B98A;
  --accent: #08274F;
  --accent-ink: #FFFFFF;
  --link: #1D6FE8;
  --border: #E3E8EF;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 30px 60px -20px rgba(8, 39, 79, 0.28), 0 18px 36px -18px rgba(0, 0, 0, 0.25);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05101E;
    --bg-soft: #0B1A2C;
    --surface: #102238;
    --text: #EEF2F7;
    --text-muted: #9AA8B8;
    --accent: #7FB0F5;
    --accent-ink: #05101E;
    --link: #7FB0F5;
    --border: #1E3149;
    --nav-bg: rgba(5, 16, 30, 0.72);
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 18px 36px -18px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  --bg: #05101E;
  --bg-soft: #0B1A2C;
  --surface: #102238;
  --text: #EEF2F7;
  --text-muted: #9AA8B8;
  --accent: #7FB0F5;
  --accent-ink: #05101E;
  --link: #7FB0F5;
  --border: #1E3149;
  --nav-bg: rgba(5, 16, 30, 0.72);
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 18px 36px -18px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--link); text-underline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Navigation ─────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 17px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-links + .nav-right { margin-left: 0; }
.nav-inner > .nav-right:only-of-type { margin-left: auto; }

.lang-switch {
  display: inline-flex;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #155CC4; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
}

@media (max-width: 480px) {
  .nav .btn-primary { display: none; }
}

/* ── Footer ─────────────────────────────────────────────────── */

.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 16px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.footer .brand { font-size: 15px; }
.footer .brand img { width: 24px; height: 24px; border-radius: 6px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

.footer-copy { margin-left: auto; }

@media (max-width: 600px) {
  .footer-copy { margin-left: 0; width: 100%; }
}
