/* ============================================================
   Froggi — shared styles for the text pages (Privacy, Terms, Support).
   Same tokens, nav and footer as the landing (index.html).
   ============================================================ */
@font-face{
  font-family:'Bricolage';
  src:url('/vendor/bricolage.woff2') format('woff2-variations');
  font-weight:200 800;
  font-display:swap;
}
/* Bricolage has no Cyrillic: Russian glyphs come from Onest under the same family name */
@font-face{
  font-family:'Bricolage';
  src:url('/vendor/onest-cyrillic.woff2') format('woff2');
  font-weight:100 900;
  font-display:swap;
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
:root{
  --bg:#F5F6F9;
  --surface:#FFFFFF;
  --ink:#0C0D10;
  --text:#0C0D10;
  --text-body:#2B2D33;
  --text-2:#5E6068;
  --stroke:rgba(12,13,16,.08);
  --stroke-strong:rgba(12,13,16,.14);
  --blue:#1983FF;
  --blue-ink:#0A5FC2;
  --blue-soft:#F3F9FF;
  --hard-bg:#FFF9E6;
  --r-m:16px; --r-l:24px;
  --spring:cubic-bezier(.34,1.56,.64,1);
  --display:'Bricolage',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI","Inter",system-ui,sans-serif;
  --mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,monospace;
  --shadow-card:0 1px 2px rgba(12,13,16,.04),0 8px 24px rgba(12,13,16,.07);
}
*{margin:0;padding:0;box-sizing:border-box}
body{
  font-family:var(--sans);
  background:
    radial-gradient(circle at 1px 1px, rgba(12,13,16,.055) 1px, transparent 1.6px) 0 0/14px 14px,
    var(--bg);
  color:var(--text-body);
  font-size:16.5px;line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
::selection{background:rgba(25,131,255,.22)}
img{max-width:100%}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px}

/* ---------- nav (as on the landing) ---------- */
nav.top{
  position:sticky;top:0;z-index:50;
  /* no hairline: a soft blur that fades out toward the page */
}
nav.top::before{
  content:"";position:absolute;left:0;right:0;top:0;bottom:-28px;z-index:-1;pointer-events:none;
  background:linear-gradient(to bottom,rgba(245,246,249,.82),rgba(245,246,249,.55) 55%,rgba(245,246,249,0));
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  -webkit-mask-image:linear-gradient(to bottom,#000 45%,transparent);mask-image:linear-gradient(to bottom,#000 45%,transparent);
}
.nav-in{max-width:1180px;margin:0 auto;padding:13px 24px;display:flex;align-items:center;gap:26px}
.logo{display:flex;align-items:center;gap:10px;font-family:var(--display);font-weight:750;font-size:19px;letter-spacing:-.02em;text-decoration:none;color:var(--text)}
.logo img{width:30px;height:30px;transform:rotate(-12deg)}
.nav-links{display:flex;gap:22px;margin-left:auto;font-size:14px;color:var(--text-2);align-items:center}
.nav-links a{color:inherit;text-decoration:none;transition:color .2s ease}
.nav-links a:hover,.nav-links a[aria-current]{color:var(--text)}
.nav-links a[aria-current]{font-weight:650}
.pill{
  display:inline-flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:650;text-decoration:none;cursor:pointer;
  padding:10px 20px;border-radius:999px;border:none;
  background:var(--ink);color:#fff!important;
  transition:transform .35s var(--spring),box-shadow .25s ease;
  box-shadow:0 2px 10px rgba(12,13,16,.18);
}
@media (hover:hover) and (pointer:fine){.pill:hover{transform:translateY(-2px) scale(1.03);box-shadow:0 8px 24px rgba(12,13,16,.24)}}
@media(max-width:640px){
  .nav-in{gap:14px}
  .nav-links{gap:12px}
  .nav-links>a:not(.pill){display:none}
}

/* ---------- document ---------- */
.doc{max-width:760px;margin:0 auto;padding:72px 24px 40px}
.updated{font-family:var(--mono);font-size:12px;letter-spacing:.04em;color:var(--text-2);margin:-4px 0 18px}
.doc h1{
  font-family:var(--display);font-weight:740;font-variation-settings:"opsz" 40;
  font-size:clamp(38px,6vw,64px);line-height:1.02;letter-spacing:-.035em;color:var(--text);
  margin:0 0 18px;
  overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto;
}
.doc .lede{font-size:clamp(17px,2vw,19px);color:var(--text-2);max-width:640px}
.doc h2{
  font-family:var(--display);font-weight:720;font-size:clamp(22px,2.6vw,27px);
  letter-spacing:-.02em;line-height:1.15;color:var(--text);
  margin:52px 0 12px;scroll-margin-top:84px;
}
.doc h3{font-family:var(--display);font-weight:700;font-size:18.5px;letter-spacing:-.01em;color:var(--text);margin:28px 0 6px}
.doc p,.doc li{max-width:68ch}
.doc p+p{margin-top:12px}
.doc ul,.doc ol{padding-left:22px;margin:10px 0}
.doc li{margin:6px 0}
.doc li::marker{color:var(--blue)}
.doc strong{font-weight:650;color:var(--text)}
.doc a{color:var(--blue-ink);text-decoration:underline;text-decoration-color:rgba(10,95,194,.35);text-underline-offset:3px;transition:text-decoration-color .2s ease}
.doc a:hover{text-decoration-color:currentColor}

.summary{
  background:var(--surface);border:1px solid var(--stroke);border-radius:var(--r-l);
  box-shadow:var(--shadow-card);padding:28px 30px;margin:40px 0 8px;
}
.summary h2{margin-top:0}
.table-wrap{overflow-x:auto;margin:14px 0 20px;border:1px solid var(--stroke);border-radius:var(--r-m);background:var(--surface);box-shadow:var(--shadow-card)}
.doc table{width:100%;border-collapse:collapse;font-size:14.5px}
.doc th,.doc td{text-align:left;vertical-align:top;padding:13px 18px;border-bottom:1px solid var(--stroke)}
.doc tr:last-child td{border-bottom:none}
.doc th{font-family:var(--mono);font-size:11.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--text-2)}
@media(max-width:600px){
  .doc thead{display:none}
  .doc table,.doc tbody,.doc tr,.doc td{display:block;width:100%}
  .doc tr{padding:14px 18px;border-bottom:1px solid var(--stroke)}
  .doc tr:last-child{border-bottom:none}
  .doc td{padding:2px 0;border:none}
  .doc td:first-child{font-weight:650;color:var(--text);margin-bottom:2px}
  .doc td+td{color:var(--text-2)}
}
.fill{background:var(--hard-bg);padding:1px 6px;border-radius:6px}

.doc a.contact{
  display:inline-flex;align-items:center;gap:10px;margin:22px 0 14px;
  font-family:var(--display);font-weight:720;font-size:clamp(20px,2.6vw,26px);letter-spacing:-.02em;
  color:var(--text);text-decoration:none;
  background:var(--surface);border:1px solid var(--stroke);border-radius:999px;
  padding:12px 24px;box-shadow:var(--shadow-card);
  transition:transform .35s var(--spring),box-shadow .25s ease,border-color .2s ease;
}
.doc a.contact::before{content:"✉";color:var(--blue);font-size:.85em}
@media (hover:hover) and (pointer:fine){.doc a.contact:hover{transform:translateY(-2px);border-color:rgba(25,131,255,.45)}}

.doc details{border-bottom:1px solid var(--stroke);padding:4px 0}
.doc summary{
  cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:18px;
  font-family:var(--display);font-size:17.5px;font-weight:650;letter-spacing:-.01em;color:var(--text);padding:16px 0;
}
.doc summary::-webkit-details-marker{display:none}
.doc summary::after{content:"+";font-size:22px;font-weight:400;color:var(--blue);transition:transform .3s var(--spring)}
.doc details[open] summary::after{transform:rotate(45deg)}
.doc details>:not(summary){margin-bottom:16px}

/* ---------- footer (as on the landing) ---------- */
footer{margin:24px 16px 16px;padding:56px 0 28px;border-radius:32px;background:var(--ink);color:rgba(255,255,255,.62);font-size:14px}
.foot-grid{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:40px 32px}
.foot-brand{display:inline-flex;align-items:center;gap:10px;font-family:var(--display);font-weight:750;font-size:22px;letter-spacing:-.02em;color:#fff;text-decoration:none}
.foot-brand img{width:40px;height:40px;padding:5px;background:#fff;border-radius:12px;box-sizing:border-box;transform:rotate(-8deg)}
.foot-tag{margin:14px 0 22px;max-width:280px;line-height:1.5}
.foot-cta{display:inline-flex;align-items:center;height:42px;padding:0 20px;border-radius:999px;background:#fff;color:var(--ink);font-size:14px;font-weight:650;text-decoration:none;transition:transform .35s var(--spring)}
@media (hover:hover) and (pointer:fine){.foot-cta:hover{transform:translateY(-2px)}}
.foot-col{display:flex;flex-direction:column;gap:12px;min-width:0}
.foot-col h4{font-size:14px;font-weight:650;color:#fff;margin-bottom:4px}
.foot-col a{color:inherit;text-decoration:none;hyphens:auto;-webkit-hyphens:auto;transition:color .2s ease}
.foot-col a[href^=mailto]{overflow-wrap:anywhere;hyphens:none}
.foot-col a:hover,.foot-col a[aria-current]{color:#fff}
.foot-bottom{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:48px;padding-top:22px;border-top:1px solid rgba(255,255,255,.12);font-size:13px;color:rgba(255,255,255,.5)}
@media(max-width:860px){.foot-grid{grid-template-columns:1fr 1fr}.foot-brand-col{grid-column:1/-1}}
@media(max-width:420px){footer{margin:16px 8px 8px;border-radius:24px;padding-top:40px}.foot-grid{gap:32px 20px}.foot-grid>.foot-col:last-child{grid-column:1/-1}}

@media (prefers-reduced-motion: reduce){
  *{transition-duration:.01ms!important}
}

/* ---------- language switch + translation note ---------- */
.lang-sw{display:flex;gap:2px;padding:3px;border-radius:999px;background:rgba(12,13,16,.05)}
.nav-links .lang-sw a{font-family:var(--mono);font-size:11.5px;font-weight:600;letter-spacing:.06em;padding:5px 9px;border-radius:999px;color:var(--text-2)}
.nav-links .lang-sw a[aria-current]{background:var(--surface);color:var(--text);box-shadow:0 1px 3px rgba(12,13,16,.12)}
.doc .note{margin-top:18px;font-size:14px;color:var(--text-2);background:rgba(12,13,16,.035);border-radius:12px;padding:10px 14px}
[hidden]{display:none!important}
