:root {
  --bg: #0f1117;
  --bg-2: #171a23;
  --bg-3: #1f2330;
  --line: #2a2f3d;
  --text: #e7e9ee;
  --muted: #9aa1b1;
  --brand: #6c5ce7;
  --brand-2: #00d1b2;
  --danger: #ff5c73;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --topbar: 60px;
  --bottomnav: 64px;
}

/* Világos téma */
:root[data-theme="light"] {
  --bg: #eef1f7;
  --bg-2: #ffffff;
  --bg-3: #eef1f7;
  --line: #dce0ea;
  --text: #1a1d26;
  --muted: #5b6273;
  --brand: #6c5ce7;
  --brand-2: #00a98f;
  --danger: #e5455f;
  --shadow: 0 12px 34px rgba(30, 40, 70, 0.12);
}
:root[data-theme="light"] .msg.ai .bubble,
:root[data-theme="light"] .dm-msg.in { background: #f1f3f9; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  /* Dinamikus viewport magasság: a mobil böngésző címsávja nem tolja el a tartalmat */
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* ---------------- Ikonok (monokróm, átlátszó) ---------------- */
.ic { width: 20px; height: 20px; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 14px; height: 14px; }

/* ---------------- Brand ---------------- */
.brand-mark { font-weight: 800; font-size: 28px; letter-spacing: -0.5px; }
.brand-mark span { color: var(--brand-2); }
.brand-mark.small { font-size: 20px; }

/* ---------------- Buttons ---------------- */
.btn-primary { background: var(--brand); color: #fff; border: 0; padding: 11px 16px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: .15s; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; }

/* ---------------- Auth ---------------- */
.auth-body {
  display: grid; place-items: center; min-height: 100vh; overflow: auto;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(108,92,231,.25), transparent),
              radial-gradient(1000px 500px at 100% 100%, rgba(0,209,178,.18), transparent), var(--bg);
  padding: 20px;
}
.auth-card { width: 100%; max-width: 400px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.brand { text-align: center; margin-bottom: 22px; }
.brand-tag { color: var(--muted); font-size: 14px; margin: 8px 0 0; line-height: 1.5; }
.tabs { display: flex; gap: 6px; background: var(--bg-3); padding: 5px; border-radius: 12px; margin-bottom: 20px; }
.tab { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 9px; border-radius: 8px; font-weight: 600; transition: .15s; }
.tab.active { background: var(--brand); color: #fff; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label, .modal label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.auth-form input, .modal input, .modal textarea { background: var(--bg-3); border: 1px solid var(--line); color: var(--text); padding: 11px 12px; border-radius: 10px; font-size: 15px; outline: none; }
.auth-form input:focus, .modal input:focus, .modal textarea:focus { border-color: var(--brand); }
.auth-error { color: var(--danger); font-size: 13px; min-height: 18px; text-align: center; margin: 14px 0 0; }

/* ---------------- Onboarding ---------------- */
.onboard-card { width: 100%; max-width: 460px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.onboard-q { text-align: center; font-size: 18px; margin: 8px 0 20px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--bg-3); border: 2px solid var(--line); color: var(--text); padding: 20px 12px; border-radius: 14px; transition: .15s; }
.cat-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.cat-card.selected { border-color: var(--brand-2); background: rgba(0, 209, 178, .12); }
.cat-emoji { font-size: 30px; line-height: 1; }
.cat-name { font-weight: 600; font-size: 15px; }
.cat-card:last-child { grid-column: 1 / -1; }
.onboard-continue { width: 100%; }
.onboard-continue:disabled { opacity: .5; cursor: default; }

/* ---------------- Topbar ---------------- */
.topbar { height: var(--topbar); flex: none; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.mainnav { display: flex; gap: 4px; background: var(--bg-3); padding: 4px; border-radius: 10px; }
.nav-link { border: 0; background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 7px; font-weight: 600; font-size: 14px; transition: .15s; }
.nav-link.active { background: var(--brand); color: #fff; }

.topic-current { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; background: var(--bg-3); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); max-width: 220px; }
.topic-current #topic-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic-current .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.topic-current.active .dot { background: var(--brand-2); box-shadow: 0 0 8px var(--brand-2); }
.topic-current.active { color: var(--text); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; position: relative; }
.icon-btn { position: relative; background: transparent; border: 1px solid var(--line); color: var(--text); width: 40px; height: 40px; border-radius: 10px; font-size: 18px; display: grid; place-items: center; transition: background .15s; }
.icon-btn:hover { background: var(--bg-3); }
.icon-btn.ghost { background: transparent; border: 0; }
.icon-btn.hamburger { border: 0; }
.badge { position: absolute; top: -6px; right: -6px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.user-chip { display: flex; align-items: center; gap: 8px; background: var(--bg-3); border: 1px solid var(--line); padding: 5px 12px 5px 5px; border-radius: 999px; cursor: pointer; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }

.menu { position: absolute; top: 52px; right: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 260px; padding: 6px; z-index: 50; display: none; }
.menu.open { display: block; }
#user-menu { min-width: 200px; }
.menu-head { padding: 10px 12px; font-weight: 700; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 0; color: var(--text); padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.menu-item:hover { background: var(--bg-3); }
.menu-item.danger { color: var(--danger); }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.notif:hover { background: var(--bg-3); }
.notif-text { font-size: 13px; line-height: 1.4; }
.notif-text b { color: var(--text); }
.notif-time { color: var(--muted); font-size: 11px; margin-top: 2px; }

/* ---------------- Views ---------------- */
.views { flex: 1; min-height: 0; position: relative; }
.view { display: none; height: 100%; box-sizing: border-box; padding: 16px; }
.view.active { display: flex; }
.view-people.active, .view-search.active, .view-profile.active { display: block; overflow-y: auto; }

/* AI chat oldal */
.chat-panel { width: 100%; max-width: 860px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.topic-bar { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.topic-bar label { font-size: 13px; color: var(--muted); }
.topic-row { display: flex; gap: 8px; margin-top: 8px; }
.topic-row input { flex: 1; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); padding: 10px 12px; border-radius: 10px; outline: none; }
.topic-row input:focus { border-color: var(--brand); }
.topic-hint { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; }
.msg.user { justify-content: flex-end; }
.msg .bubble { max-width: 78%; padding: 11px 14px; border-radius: 16px; line-height: 1.5; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; }
.msg.ai .bubble { background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.user .bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.typing .bubble { color: var(--muted); font-style: italic; }
.composer { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
.composer input { flex: 1; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); padding: 12px 14px; border-radius: 12px; outline: none; }
.composer input:focus { border-color: var(--brand); }

/* Emberek oldal */
.people-wrap { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.panel-section { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel-section h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.count { background: var(--brand); color: #fff; font-size: 12px; border-radius: 999px; padding: 1px 8px; }
.people-list { display: flex; flex-direction: column; gap: 8px; }
.empty { color: var(--muted); font-size: 13px; margin: 0; padding: 4px; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.person:hover { background: var(--bg-3); }
.person .avatar { position: relative; }
.person .avatar .status { position: absolute; bottom: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-2); border: 2px solid var(--bg-2); }
.person-info { flex: 1; min-width: 0; }
.person-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-topic { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; }
.person-topic .ic { color: var(--muted); }
.person-actions { display: flex; gap: 6px; }
.mini-btn { background: var(--bg-3); border: 1px solid var(--line); color: var(--text); font-size: 12px; padding: 6px 10px; border-radius: 8px; }
.mini-btn:hover { border-color: var(--brand); }
.mini-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.person .avatar, .person-info { cursor: pointer; }
.convo .avatar { cursor: default; }

/* ---------------- Kereső oldal ---------------- */
.search-wrap { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.search-box input { width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); padding: 13px 16px; border-radius: 12px; font-size: 15px; outline: none; }
.search-box input:focus { border-color: var(--brand); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.topic-chip:hover { border-color: var(--brand); }
.tc-count { background: var(--brand); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.topic-cta { width: 100%; margin-bottom: 6px; }

/* ---------------- Profil oldal ---------------- */
.profile-wrap { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.back-link { align-self: flex-start; background: transparent; border: 0; color: var(--muted); font-size: 14px; font-weight: 600; padding: 4px 0; }
.back-link:hover { color: var(--text); }
.avatar.big { width: 76px; height: 76px; font-size: 30px; border-radius: 22px; }
.profile-header { display: flex; align-items: center; gap: 16px; }
.profile-id h2 { margin: 0 0 2px; font-size: 22px; }
.pv-username { color: var(--muted); font-size: 14px; }
.pv-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.profile-actions { display: flex; gap: 8px; margin-left: auto; }
.profile-actions button { padding: 8px 16px; font-size: 14px; }
.pv-bio { margin: 0; color: var(--text); line-height: 1.5; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.pv-stats { display: flex; gap: 8px; }
.pv-stats .stat { flex: 1; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); padding: 12px; border-radius: 12px; font-size: 14px; }
.pv-stats .stat b { color: var(--text); font-size: 18px; display: block; }
.pv-stats .stat.active { border-color: var(--brand); color: var(--text); }

/* ---------------- Messenger (drawer / teljes oldal) ---------------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.scrim.show { opacity: 1; pointer-events: auto; }
.messenger {
  position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: 380px; max-width: 100%;
  background: var(--bg-2); border-left: 1px solid var(--line); box-shadow: var(--shadow);
  transform: translateX(100%); transition: transform .28s ease; z-index: 100; display: flex; flex-direction: column;
}
.messenger.open { transform: translateX(0); }
.msgr-screen { display: none; flex-direction: column; height: 100%; }
.msgr-screen.active { display: flex; }
.msgr-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex: none; }
.msgr-title { font-weight: 700; font-size: 16px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgr-head .avatar { width: 34px; height: 34px; }
.msgr-convos { flex: 1; overflow-y: auto; padding: 8px; }
.convo { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; }
.convo:hover { background: var(--bg-3); }
.convo .avatar { width: 44px; height: 44px; font-size: 16px; }
.convo-info { flex: 1; min-width: 0; }
.convo-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-last { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-last.unread { color: var(--text); font-weight: 600; }
.convo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-2); flex: none; }
.msgr-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.dm-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.dm-msg.in { background: var(--bg-3); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 3px; }
.dm-msg.out { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.msgr-composer { display: flex; gap: 8px; padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex: none; }
.msgr-composer input { flex: 1; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); padding: 11px 14px; border-radius: 999px; outline: none; font-size: 14px; }
.msgr-composer input:focus { border-color: var(--brand); }
.msgr-composer button { background: var(--brand); border: 0; color: #fff; border-radius: 999px; width: 42px; display: grid; place-items: center; flex: none; }
.msgr-composer button .ic { width: 18px; height: 18px; }

/* ---------------- Hamburger drawer (mentett beszélgetések) ---------------- */
.sidedrawer {
  position: fixed; top: 0; left: 0; height: 100vh; height: 100dvh; width: 320px; max-width: 100%;
  background: var(--bg-2); border-right: 1px solid var(--line); box-shadow: var(--shadow);
  transform: translateX(-100%); transition: transform .28s ease; z-index: 100; display: flex; flex-direction: column;
}
.sidedrawer.open { transform: translateX(0); }
.sd-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); flex: none; }
.sd-title { font-weight: 700; font-size: 16px; }
.sd-new { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px; padding: 11px 14px; background: var(--brand); color: #fff; border: 0; border-radius: 10px; font-weight: 600; font-size: 14px; }
.sd-new:hover { filter: brightness(1.08); }
.sd-list { flex: 1; overflow-y: auto; padding: 0 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.sd-item { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; cursor: pointer; }
.sd-item:hover { background: var(--bg-3); }
.sd-item.active { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--brand); }
.sd-item-main { flex: 1; min-width: 0; }
.sd-item-title { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.sd-item-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-item-title .ic { color: var(--muted); }
.sd-item-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; padding-left: 21px; }
.sd-del { background: transparent; border: 0; color: var(--muted); padding: 4px; border-radius: 6px; opacity: 0; }
.sd-item:hover .sd-del { opacity: 1; }
.sd-del:hover { color: var(--danger); }

/* ---------------- Bottom nav (telefon) ---------------- */
.bottomnav { display: none; }
.bn-item .ic { width: 22px; height: 22px; }

/* ---------------- Modal + toast ---------------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 120; }
.modal-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 24px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.modal-card h3 { margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.toast-dock { position: fixed; top: calc(var(--topbar) + 12px); right: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 110; }
.toast { background: var(--bg-2); border: 1px solid var(--brand); border-left: 4px solid var(--brand-2); border-radius: 12px; padding: 12px 14px; width: 300px; max-width: calc(100vw - 32px); box-shadow: var(--shadow); animation: slidein .25s ease; cursor: pointer; }
.toast .t-title { font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.toast .t-body { font-size: 13px; color: var(--muted); line-height: 1.4; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ================================================================
 * TELEFON (< 768px) — külön elrendezés
 * ================================================================ */
@media (max-width: 767px) {
  .mainnav { display: none; }
  #messenger-btn { display: none; }
  .me-name { display: none; }
  .user-chip { padding: 4px; }
  .topbar { gap: 10px; padding: 0 12px; }
  .topic-current { font-size: 13px; padding: 5px 10px; max-width: none; flex: 1; }

  .view { padding: 10px; }
  .chat-panel { border-radius: 12px; }
  .people-wrap { max-width: none; }

  /* Messenger + hamburger drawer telefonon: teljes képernyős oldal */
  .messenger { width: 100%; height: 100vh; height: 100dvh; border-left: 0; }
  .sidedrawer { width: 100%; height: 100vh; height: 100dvh; border-right: 0; }
  .scrim { display: none; }

  /* Alsó fülsáv – a layout része (nem fixed), így a dvh magasság mindig stimmel.
     A safe-area térköz miatt a fülek a telefon gesztus-/gombsávja fölé kerülnek. */
  .bottomnav { display: flex; flex: none; min-height: var(--bottomnav); height: auto; padding-bottom: env(safe-area-inset-bottom); background: var(--bg-2); border-top: 1px solid var(--line); z-index: 80; }

  /* Teljes képernyős oldalak alján is legyen hely a rendszer-gomboknak */
  .msgr-convos { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .sd-list { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .bn-item { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: transparent; border: 0; color: var(--muted); font-size: 11px; font-weight: 600; }
  .bn-item.active { color: var(--brand-2); }
  .bn-ico { font-size: 21px; line-height: 1; }
  .bn-item .badge { top: 6px; right: 24%; }
}

/* Nagyon kicsi kijelző */
@media (max-width: 360px) {
  .brand-mark.small { font-size: 17px; }
  .bn-item span:not(.bn-ico):not(.badge) { display: none; }
}

/* Regisztráció: mező-tipp + elfogadó jelölőnégyzet */
.field-hint { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.checkbox-row { flex-direction: row !important; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--brand); }
.checkbox-row a { color: var(--brand); }

/* Felhasználói menü: link elemek + elválasztó */
a.menu-item { text-decoration: none; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* Profilkép szerkesztő */
.pf-avatar-row { display: flex; align-items: center; gap: 16px; }
.pf-avatar-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.file-btn { cursor: pointer; display: inline-block; }

/* Statikus jogi oldalak */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 80px; color: var(--text); line-height: 1.6; }
.legal-wrap h1 { font-size: 26px; margin: 0 0 6px; }
.legal-wrap h2 { font-size: 18px; margin: 28px 0 8px; }
.legal-wrap p, .legal-wrap li { color: var(--text); }
.legal-wrap .muted { color: var(--muted); font-size: 13px; }
.legal-wrap a { color: var(--brand); }
.legal-wrap ul { padding-left: 20px; }
.legal-back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; }
.legal-back:hover { color: var(--text); }
