/* EVstore web — legal pages (privacy policy, terms). Same brand as the landing page, built for
   reading: one column, generous line height, no animation. Old-WebView safe: no flex gap, no clamp,
   no :has(), standalone :focus-visible rules. */

body {
  background:
    radial-gradient(1200px 600px at 50% -320px, rgba(52, 211, 153, 0.16), rgba(52, 211, 153, 0) 70%),
    var(--ev-bg);
  color: var(--ev-text);
  -webkit-font-smoothing: antialiased;
}

.lgl-wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* ---------- header ---------- */
.lgl-nav {
  border-bottom: 1px solid var(--ev-divider);
  background: rgba(10, 15, 13, 0.72);
  position: relative;
  z-index: 2;
}
:root[data-theme="light"] .lgl-nav { background: rgba(255, 255, 255, 0.82); }

.lgl-nav__inner {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  min-height: 68px;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.lgl-brand {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  text-decoration: none;
  color: var(--ev-text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.lgl-brand img { width: 38px; height: 17px; }
.lgl-brand span { margin-left: 10px; }
html.is-rtl .lgl-brand span { margin-left: 0; margin-right: 10px; }

.lgl-nav__tools {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}
.lgl-nav__tools > * { margin-left: 8px; }
html.is-rtl .lgl-nav__tools > * { margin-left: 0; margin-right: 8px; }

.lgl-nav__link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--ev-r-pill);
  color: var(--ev-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.lgl-nav__link:hover { color: var(--ev-text); }
.lgl-nav__link[aria-current="page"] {
  color: var(--ev-primary);
  background: rgba(52, 211, 153, 0.10);
}

.lgl-lang {
  -webkit-appearance: none;
  appearance: none;
  padding: 10px 14px;
  border-radius: var(--ev-r-pill);
  border: 1px solid var(--ev-divider);
  background: var(--ev-surface);
  color: var(--ev-text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- document ---------- */
.lgl-main { padding-top: 56px; padding-bottom: 72px; }

.lgl-eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ev-primary);
}

.lgl-title {
  margin: 0 0 10px;
  font-size: 2.4rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lgl-updated {
  margin: 0 0 28px;
  font-size: 0.92rem;
  color: var(--ev-text-dim);
}

.lgl-lead {
  margin: 0 0 36px;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ev-text-muted);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ev-divider);
}

.lgl-section { margin-bottom: 36px; }
.lgl-section h2 {
  margin: 0 0 12px;
  font-size: 1.32rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.lgl-section p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--ev-text-muted);
}
.lgl-section p strong { color: var(--ev-text); font-weight: 600; }
.lgl-section p br { content: ""; display: block; margin-top: 12px; }

.lgl-note {
  margin-top: 44px;
  padding: 22px 24px;
  border: 1px solid var(--ev-outline);
  border-radius: var(--ev-r-lg);
  background: var(--ev-surface);
}
.lgl-note h2 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; }
.lgl-note p { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--ev-text-muted); }

.lgl-other {
  display: inline-block;
  margin-top: 28px;
  color: var(--ev-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}
.lgl-other:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.lgl-foot {
  border-top: 1px solid var(--ev-divider);
  padding-top: 26px;
  padding-bottom: 36px;
}
.lgl-foot__inner {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}
.lgl-foot a { color: var(--ev-primary); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.lgl-foot a:hover { text-decoration: underline; }
.lgl-foot p { margin: 0; font-size: 0.88rem; color: var(--ev-text-dim); }
.lgl-foot__inner > * { margin-top: 8px; margin-bottom: 8px; }

a:focus { outline: 2px solid var(--ev-primary); outline-offset: 3px; }
a:focus:not(:focus-visible) { outline: none; }
a:focus-visible { outline: 2px solid var(--ev-primary); outline-offset: 3px; }

@media (max-width: 639px) {
  .lgl-title { font-size: 1.85rem; }
  .lgl-lead { font-size: 1.04rem; }
  .lgl-main { padding-top: 36px; padding-bottom: 52px; }
  .lgl-section { margin-bottom: 30px; }
  .lgl-section h2 { font-size: 1.18rem; }
  .lgl-nav__link { padding: 8px 10px; font-size: 0.9rem; }
  .lgl-nav__inner { min-height: 60px; }
}
