/* zalaat.mn: one page plus the legal texts. Colours from the horse logo. */
:root {
  --ink: #0a2d8c;
  --night: #071f63;
  --accent: #0e6fe0;
  --red: #e5202e;
  --yellow: #f7c21a;
  --text: #1f2a44;
  --muted: #5b6785;
  --line: #dde3f0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); }
a { color: inherit; }

/* Home */
.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 48px 16px 32px;
  color: #fff;
  background: radial-gradient(120% 90% at 50% 0%, var(--accent) 0%, var(--ink) 45%, var(--night) 100%);
}
.card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mark { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 18px 40px rgb(0 0 0 / 0.35); }
.home h1 { margin: 24px 0 8px; font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.line { margin: 2px 0; font-size: 18px; opacity: 0.9; }
/* The 404 page's "zalaat.mn" home link */
.pill {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgb(0 0 0 / 0.3); }
.pill:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 14px; }
.links a { color: rgb(255 255 255 / 0.8); text-decoration: none; }
.links a:hover { color: #fff; text-decoration: underline; }

/* Legal pages and 404 */
.doc { background: #f5f7fc; }
.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 9px; }
.lang { font-size: 14px; color: var(--accent); }
.doc-body {
  max-width: 760px;
  margin: 0 16px 48px;
  padding: 28px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.doc-body h1 { margin-top: 0; font-size: 28px; color: var(--ink); }
.doc-body h2 { margin-top: 32px; font-size: 20px; color: var(--ink); }
.doc-body h3 { font-size: 16px; }
.draft { padding: 12px 14px; border-left: 4px solid var(--yellow); background: #fff8df; border-radius: 6px; }
.row span { color: var(--muted); }
@media (min-width: 640px) { .doc-body { padding: 40px 48px; } }
@media (min-width: 792px) { .doc-body { margin: 0 auto 48px; } }
