/* ==========================================================
   Ekko — shared styling for the legal documents
   (privacy.html, terms.html)
   Tokens mirror the ones defined in index.html.
   ========================================================== */

:root {
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --bg: #0C0C14;
  --surface: #11131C;
  --surface-soft: #151722;
  --text: #E6EAF2;
  --body: #C7CEDC;
  --muted: #969DB0;
  --muted-dim: #7E8699;
  --blue: #7F93FF;
  --blue-bright: #9DACFF;
  --blue-soft: rgba(127, 147, 255, .12);
  --blue-line: rgba(127, 147, 255, .32);
  --line: rgba(230, 234, 242, .12);
  --line-soft: rgba(230, 234, 242, .07);

  --maxw: 1200px;
  /* a fixed length, not ch, so headings and rules align with the body column */
  --measure: 42rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 72px;
  --r-md: 16px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue-bright); }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--blue-soft); color: #fff; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  background: var(--surface);
  border: 1px solid var(--blue-line);
  color: var(--text);
  padding: .7rem 1.1rem;
  border-radius: 0 0 10px 10px;
  z-index: 100;
  font-size: .9rem;
  text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 20, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 26px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .94rem;
  transition: color .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .55rem 1.15rem;
  border: 1px solid var(--blue-line);
  border-radius: var(--r-pill);
  color: var(--blue-bright);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn-outline:hover { background: var(--blue-soft); border-color: var(--blue); }

/* ---------- document ---------- */
.legal { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem); }

.doc-head { max-width: var(--measure); }

.eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal h1 {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.024em;
  color: var(--text);
  text-wrap: balance;
}

.updated {
  margin-top: 1rem;
  font-size: .95rem;
  color: var(--muted);
}
.updated strong { font-weight: 500; color: var(--muted); }

/* all-caps statutory notices */
.notice {
  margin-top: 2.25rem;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--blue-line);
  border-radius: var(--r-md);
}
.notice p {
  font-size: .92rem;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--muted);
}
.notice p + p { margin-top: .9rem; }
.notice strong { font-weight: 500; color: var(--text); }

/* body copy */
.doc-body {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: var(--measure);
}
.doc-body > * + p { margin-top: 1.25rem; }
.doc-body strong { font-weight: 600; color: var(--text); }
.doc-body em { font-style: italic; }
.doc-body a { text-decoration: underline; text-underline-offset: 2px; }

.doc-body h2 {
  margin-top: clamp(3rem, 6vw, 4.25rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.016em;
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.doc-body h2 + p { margin-top: 1.25rem; }

/* a bold-only paragraph used as a sub-label (e.g. a company name) */
.doc-body .label {
  margin-top: 1.75rem;
  color: var(--text);
}
.doc-body .label strong { font-weight: 500; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2.25rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 3rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand img { height: 24px; width: auto; }
.footer-support { margin-top: 1rem; font-size: .95rem; color: var(--muted); }
.footer-support a { text-decoration: none; border-bottom: 1px solid var(--blue-line); }
.footer-support a:hover { color: #fff; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  list-style: none;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  transition: color .25s var(--ease);
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: .85rem;
  color: var(--muted-dim);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .doc-body > * + p { margin-top: 1.1rem; }
  .notice { padding: 1.15rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}
