
:root{
  --bg:#ededed;
  --panel:#f2f2f2;
  --card:#f3f3f3;
  --text:#44454b;
  --muted:#9d9da3;
  --accent:#6f54f1;
  --accent2:#7758ef;
  --shadow:0 8px 20px rgba(0,0,0,.06);
  --border:rgba(0,0,0,.03);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}
body{min-height:100vh}
a{color:inherit}
.page{min-height:100svh;display:flex;justify-content:center;padding:18px 14px 18px}
.selector-card{width:100%;max-width:414px;min-height:calc(100svh - 36px);display:grid;grid-template-rows:1fr auto}
.content-stage{display:flex;flex-direction:column;justify-content:center;align-self:stretch;padding:8px 0 10px}
.hero{text-align:center;padding:0 10px 20px}
.hero h1{margin:0;font-size:clamp(36px,8vw,60px);line-height:1.02;font-weight:800;letter-spacing:-.6px;color:#44454b}
.hero p{margin:12px 0 0;font-size:clamp(16px,3.8vw,21px);line-height:1.2;font-weight:700;color:var(--muted)}
.language-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.language-item{background:var(--card);border-radius:18px;text-decoration:none;overflow:hidden;box-shadow:0 0 0 1px var(--border) inset;transition:transform .15s ease,box-shadow .15s ease}
.language-item:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.flag-wrap{height:102px;display:flex;align-items:center;justify-content:center;background:var(--panel)}
.flag-wrap img{width:56px;height:38px;object-fit:cover;border-radius:6px;box-shadow:0 3px 8px rgba(0,0,0,.08)}
.item-bar{background:linear-gradient(90deg,var(--accent),var(--accent2));min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 16px}
.lang-name{font-size:16px;line-height:1.2;font-weight:500;color:#fff}
.arrow{width:26px;height:26px;border-radius:50%;background:#fff;color:var(--accent);display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;flex:0 0 auto}
.footer-links{margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-width:414px;width:100%;padding:10px 0 2px;align-self:end}
.footer-links a{text-decoration:none;text-align:center;font-size:13px;line-height:1.25;color:#44454b}

.legal-wrap{max-width:760px;margin:0 auto;padding:24px 16px 40px}
.legal-card{background:#f6f6f6;border-radius:18px;padding:28px 22px;box-shadow:0 0 0 1px var(--border) inset}
.legal-header{text-align:center;margin-bottom:20px}
.legal-header h1{margin:0 0 10px;font-size:34px;line-height:1.08;font-weight:800;color:#44454b}
.legal-header p{margin:0;font-size:15px;line-height:1.55;color:#6f6f76}
.legal-body h2{margin:22px 0 10px;font-size:20px;line-height:1.25;color:#44454b}
.legal-body p,.legal-body li{font-size:15px;line-height:1.65;color:#55565d}
.legal-body ul{padding-left:18px;margin:10px 0}
.back-link{display:inline-flex;align-items:center;gap:8px;margin-bottom:18px;text-decoration:none;font-size:14px;font-weight:700;color:#6f54f1}

@media (max-width:440px){
  .page{padding:14px 10px 14px}
  .selector-card{min-height:calc(100svh - 28px)}
  .content-stage{padding:4px 0 8px}
  .hero{padding:0 10px 18px}
  .language-grid{gap:16px}
  .flag-wrap{height:92px}
  .flag-wrap img{width:52px;height:35px}
  .item-bar{min-height:42px;padding:0 14px}
  .lang-name{font-size:15px}
  .arrow{width:24px;height:24px;font-size:22px}
  .footer-links{gap:10px 8px}
  .footer-links a{font-size:12px}
  .legal-wrap{padding:18px 12px 28px}
  .legal-card{padding:22px 16px}
  .legal-header h1{font-size:28px}
}
