/* ============================================================
   Shared styles for HAKOObot legal / install pages
   (terms.html, privacy.html, install.html)
   ============================================================ */
:root{
  --bg:#0d1117; --bg2:#161b22; --card:#1c2128; --border:#30363d;
  --accent:#f0a500; --accent-lo:rgba(240,165,0,.12);
  --text:#e6edf3; --muted:#8b949e; --green:#3fb950; --blue:#58a6ff; --purple:#a371f7;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{
  background:var(--bg);color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:15px;line-height:1.65;min-height:100vh;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

/* Top nav */
nav{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 22px;border-bottom:1px solid var(--border);background:var(--bg2);
  position:sticky;top:0;z-index:10;flex-wrap:wrap;
}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:17px;color:var(--text)}
.brand img{width:30px;height:30px;border-radius:7px}
.brand-mark{width:30px;height:30px;border-radius:7px;background:var(--accent-lo);border:1px solid var(--accent);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;color:#5900B0;flex-shrink:0}
.brand em{color:var(--accent);font-style:normal}
.nav-links{display:flex;gap:6px;flex-wrap:wrap;align-items:center}

/* Standard top-right corner: language flags + Discord login state */
.lang-row{display:flex;gap:6px;align-items:center}
.lang-flag{padding:0;border:2px solid transparent;border-radius:5px;background:none;cursor:pointer;line-height:0;opacity:.55}
.lang-flag img{width:24px;height:18px;border-radius:3px;display:block}
.lang-flag:hover{opacity:1}
.lang-flag.active{opacity:1;border-color:var(--accent)}
.auth-area{display:flex;align-items:center;gap:8px}
.auth-av{width:26px;height:26px;border-radius:50%;object-fit:cover}
.auth-name{font-size:13px;font-weight:700}
.auth-login{font-size:13px;font-weight:700;color:#fff !important;background:#5865F2;padding:7px 12px;border-radius:8px}
.auth-login:hover{filter:brightness(1.1);text-decoration:none}
.auth-out{font-size:12px;color:var(--muted)}
.nav-links a{
  font-size:13px;font-weight:600;color:var(--muted);
  padding:6px 11px;border-radius:8px;border:1px solid transparent;
}
.nav-links a:hover{color:var(--text);border-color:var(--border);text-decoration:none}
.nav-links a.active{color:var(--accent);background:var(--accent-lo);border-color:rgba(240,165,0,.3)}

/* Page shell */
.wrap{max-width:780px;margin:0 auto;padding:40px 22px 80px}
.page-head{margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid var(--border)}
.page-head .ic{font-size:40px;margin-bottom:10px}
h1{font-size:28px;font-weight:800;letter-spacing:-.5px}
.updated{color:var(--muted);font-size:13px;margin-top:8px}

h2{font-size:18px;font-weight:700;margin:30px 0 10px;color:var(--text)}
p{margin:0 0 12px;color:#c9d1d9}
ul{margin:0 0 14px 22px}
li{margin:5px 0;color:#c9d1d9}
.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:22px 24px;margin:18px 0}
.muted{color:var(--muted);font-size:13px}

/* Install page button */
.cta{
  display:inline-flex;align-items:center;gap:10px;
  background:#5865F2;color:#fff;font-weight:800;font-size:16px;
  padding:14px 26px;border-radius:12px;border:none;cursor:pointer;
}
.cta:hover{filter:brightness(1.08);text-decoration:none}
.steps{counter-reset:step;margin:18px 0 0;padding:0;list-style:none}
.steps li{counter-increment:step;position:relative;padding:10px 0 10px 42px;border-bottom:1px solid var(--border)}
.steps li:last-child{border-bottom:none}
.steps li::before{
  content:counter(step);position:absolute;left:0;top:9px;
  width:28px;height:28px;border-radius:50%;background:var(--accent-lo);
  color:var(--accent);font-weight:800;font-size:13px;
  display:flex;align-items:center;justify-content:center;
}

footer{max-width:780px;margin:0 auto;padding:24px 22px;color:var(--muted);font-size:12px;border-top:1px solid var(--border)}
footer a{color:var(--muted)}
