/* ============================================================
 * Friendly Games — styles.css
 * Mobile-first, poppy color scheme, responsive.
 * ============================================================ */
:root {
  --c-bg:        #1b1140;
  --c-bg-2:      #2a1a5e;
  --c-card:      #ffffff;
  --c-ink:       #21134a;
  --c-ink-soft:  #6b5b9a;
  --c-primary:   #ff4d8d;   /* hot pink */
  --c-primary-d: #e02b71;
  --c-accent:    #ffd23f;   /* sunny yellow */
  --c-cyan:      #21d4fd;   /* electric cyan */
  --c-green:     #2dd881;
  --c-purple:    #8a5bff;
  --c-orange:    #ff8c42;
  --c-danger:    #ff5757;
  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 8px 24px rgba(0,0,0,.18);
  --shadow-pop:  0 6px 0 rgba(0,0,0,.18);
  --font:        'Baloo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--c-ink);
  background: linear-gradient(160deg, var(--c-bg) 0%, var(--c-bg-2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

#app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ---------------- Top bar ---------------- */
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  position: sticky; top: 0; z-index: 30;
  background: rgba(27,17,64,.85);
  backdrop-filter: blur(8px);
}
.topbar .brand {
  font-weight: 800; color: #fff; font-size: 20px;
  display: flex; align-items: center; gap: 8px;
  flex: 1;
}
.topbar .brand .logo { width: 24px; height: 24px; border-radius: 6px; vertical-align: middle; }
.icon-btn {
  background: rgba(255,255,255,.14); color: #fff; border: 0;
  width: 40px; height: 40px; border-radius: 12px; font-size: 18px;
  cursor: pointer; display: grid; place-items: center; transition: transform .1s;
}
.icon-btn:active { transform: scale(.9); }
.lang-pill {
  background: var(--c-accent); color: var(--c-ink); border: 0;
  height: 40px; padding: 0 12px; border-radius: 12px; font-weight: 800;
  cursor: pointer; font-family: var(--font); font-size: 14px;
}

/* ---------------- Layout ---------------- */
.view { flex: 1; padding: 18px 16px 32px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to {opacity:1; transform:none;} }
.center-screen { display: flex; flex-direction: column; justify-content: center; min-height: 70vh; }

.card {
  background: var(--c-card); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px;
}
h1,h2,h3 { margin: 0 0 8px; line-height: 1.15; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
.muted { color: var(--c-ink-soft); }
.text-center { text-align: center; }
.white { color: #fff; }
.tagline { color: var(--c-accent); font-weight: 700; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 18px; border: 0; border-radius: var(--radius-sm);
  font-family: var(--font); font-weight: 800; font-size: 17px; cursor: pointer;
  background: var(--c-primary); color: #fff; box-shadow: var(--shadow-pop);
  transition: transform .08s, filter .15s; margin-top: 6px;
}
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.btn:disabled { filter: grayscale(.5) opacity(.6); cursor: not-allowed; }
.btn.accent   { background: var(--c-accent); color: var(--c-ink); }
.btn.cyan     { background: var(--c-cyan); color: var(--c-ink); }
.btn.green    { background: var(--c-green); color: #fff; }
.btn.purple   { background: var(--c-purple); color: #fff; }
.btn.ghost    { background: #e9e9ec; color: #555; box-shadow: none; }
.btn.outline  { background: #fff; color: var(--c-primary); border: 2px solid var(--c-primary); box-shadow: none; }
.btn.sm       { width: auto; padding: 10px 14px; font-size: 14px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { margin-top: 0; }

/* ---------------- Inputs ---------------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
input[type=text], input[type=tel], input[type=email], textarea {
  width: 100%; padding: 14px; border: 2px solid #e7e1f5; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 17px; color: var(--c-ink); background: #faf8ff;
  transition: border-color .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--c-primary); }
textarea { resize: vertical; min-height: 60px; }
.otp-input { text-align: center; letter-spacing: 10px; font-size: 26px; font-weight: 800; }

/* ---------------- Steps / progress ---------------- */
.steps { display: flex; gap: 6px; margin-bottom: 16px; }
.steps .dot { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.25); }
.steps .dot.active { background: var(--c-accent); }
.step-label { color: #fff; font-weight: 700; margin-bottom: 4px; font-size: 13px; opacity: .85; }

/* ---------------- Game cards ---------------- */
.game-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
  box-shadow: var(--shadow); cursor: pointer; transition: transform .1s;
}
.game-card:active { transform: scale(.98); }
.game-thumb {
  width: 64px; height: 64px; border-radius: 12px; object-fit: cover;
  background: #f0ecfb; flex-shrink: 0; display: grid; place-items: center; font-size: 28px;
}
.game-thumb-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.game-card .meta { flex: 1; min-width: 0; }
.game-card .meta .title { font-weight: 800; font-size: 17px; }
.game-card .meta .sub { color: var(--c-ink-soft); font-size: 13px; }
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 800;
  background: var(--c-cyan); color: var(--c-ink);
}
.badge.warn { background: var(--c-orange); color: #fff; }
.badge.dead { background: #cfc8e0; color: #6b5b9a; }
.badge.done { background: var(--c-green); color: #fff; }
.badge.plays { background: var(--c-accent); color: var(--c-ink); }
.badge + .badge { margin-left: 6px; }
.more-btn { margin-top: 8px; width: 100%; }

/* segmented tabs */
.tabs { display: flex; background: rgba(255,255,255,.14); border-radius: 14px; padding: 4px; margin-bottom: 16px; }
.tabs button {
  flex: 1; border: 0; background: transparent; color: #fff; font-family: var(--font);
  font-weight: 800; padding: 10px; border-radius: 10px; cursor: pointer; font-size: 15px;
}
.tabs button.active { background: var(--c-accent); color: var(--c-ink); }

/* ---------------- Canvas / drawing ---------------- */
.canvas-wrap {
  position: relative; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; touch-action: none;
}
#draw-canvas { display: block; width: 100%; touch-action: none; background: #fff; }
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.4); cursor: pointer; }
.swatch.active { transform: scale(1.18); box-shadow: 0 0 0 3px var(--c-accent); }
.brush-sizes { display: flex; gap: 8px; align-items: center; }
.brush-sizes .size { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.18); display: grid; place-items: center; cursor: pointer; }
.brush-sizes .size.active { background: var(--c-accent); }
.brush-sizes .size .dot { background: var(--c-ink); border-radius: 50%; }

/* ---------------- Hints ---------------- */
.hint-pill {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px;
  padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.hint-locked { background: linear-gradient(120deg,#ffe8f1,#fff4d6); cursor: pointer; }
.hint-num { width: 30px; height: 30px; border-radius: 50%; background: var(--c-purple); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }

/* ---------------- Guess screen ---------------- */
.stat-row { display: flex; gap: 10px; margin-bottom: 14px; justify-content: center; }
.stat {
  flex: 1; background: rgba(255,255,255,.12); border-radius: 14px; padding: 10px; text-align: center; color: #fff;
}
.stat .num { font-size: 24px; font-weight: 800; }
.stat .lbl { font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: .5px; }

/* Timer bar (below keyboard, full width, skinny) */
.timer-bar {
  border-radius: 10px; padding: 4px 10px; text-align: center; color: #fff;
  margin-top: 8px;
}
.timer-bar .num { font-size: 18px; font-weight: 800; }
.timer-row { margin-top: 8px; margin-bottom: 0; }

/* Timer clock background colors */
.stat.clock-green { background: rgba(34, 197, 94, .55); }
.stat.clock-orange { background: rgba(251, 146, 60, .55); }
.stat.clock-red { background: rgba(239, 68, 68, .55); }
.stat.clock-flash { background: rgba(239, 68, 68, .75); animation: clock-flash 0.5s ease-in-out infinite alternate; }
@keyframes clock-flash {
  from { background: rgba(239, 68, 68, .75); }
  to   { background: rgba(239, 68, 68, .25); }
}

.phrase-slots { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 8px 0 18px; }
.word-group { display: flex; gap: 6px; }
.slot {
  width: 30px; height: 40px; border-bottom: 4px solid #fff; color: #fff;
  display: grid; place-items: center; font-size: 24px; font-weight: 800; text-transform: uppercase;
}
.slot.filled { border-color: var(--c-accent); color: var(--c-accent); }
.word-group.solved .slot { border-color: var(--c-green); color: var(--c-green); animation: pop .3s; }
@keyframes pop { 0%{transform:scale(1);} 50%{transform:scale(1.3);} 100%{transform:scale(1);} }

/* virtual keyboard */
.keyboard { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.kb-row { display: flex; gap: 6px; justify-content: center; }
.key {
  flex: 1; max-width: 42px; height: 50px; border: 0; border-radius: 10px; background: #fff; color: var(--c-ink);
  font-family: var(--font); font-weight: 800; font-size: 18px; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.18);
  display: grid; place-items: center; transition: transform .06s;
}
.key:active { transform: translateY(3px); box-shadow: none; }
.key.wide { max-width: 70px; font-size: 14px; background: var(--c-accent); }
.key.del { max-width: 60px; background: var(--c-orange); color: #fff; }
.guess-display {
  text-align: center; font-size: 26px; font-weight: 800; letter-spacing: 4px; color: #fff;
  min-height: 36px; margin: 6px 0; text-transform: uppercase;
}

/* ---------------- Leaderboard ---------------- */
.lb-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.lb-rank { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #eee7fb; color: var(--c-ink); flex-shrink: 0; }
.lb-rank.g1 { background: var(--c-accent); } .lb-rank.g2 { background: #cfd8e3; } .lb-rank.g3 { background: var(--c-orange); color:#fff; }
.lb-row .nm { flex: 1; font-weight: 700; }
.lb-row .tm { font-weight: 800; color: var(--c-primary); }
.lb-row.me { outline: 3px solid var(--c-accent); }

/* avatars */
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--c-purple); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }

/* ---------------- Share grid ---------------- */
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0; }
.share-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px;
  border: 0; border-radius: 14px; background: #fff; cursor: pointer; font-family: var(--font);
  font-weight: 700; font-size: 12px; color: var(--c-ink); box-shadow: var(--shadow);
}
.share-btn .ic { font-size: 26px; display: flex; align-items: center; justify-content: center; }
.share-btn .ic svg { display: block; }
.share-btn span { color: var(--c-ink); }
.share-btn:active { transform: scale(.95); }

/* ---------------- Friend-based invites ---------------- */
.section-title { font-weight: 800; font-size: 14px; color: var(--c-ink); margin: 4px 0 10px; }
.small { font-size: 12px; }
.platform-row { border-top: 1px solid rgba(0,0,0,.07); padding: 12px 0; }
.platform-row:first-of-type { border-top: 0; }
.platform-head { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.platform-head .ic { font-size: 22px; }
.platform-body { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.friend-picker { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.friend-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow); cursor: pointer;
}
.friend-item input { width: 18px; height: 18px; accent-color: var(--c-accent); }
.friend-item .avatar {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--c-accent); color: #fff; font-weight: 800; font-size: 12px; flex: 0 0 auto;
}
.friend-item .fname { font-weight: 700; font-size: 14px; }

/* ---------------- Friends picker (invite) ---------------- */
.friends-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0; }
.friend-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; border: 2px solid transparent; border-radius: 14px;
  background: #fff; cursor: pointer; font-family: var(--font); text-align: center;
  box-shadow: var(--shadow); transition: border-color .15s, transform .1s;
}
.friend-card.selected { border-color: var(--c-accent); }
.friend-card:active { transform: scale(.95); }
.friend-card .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.friend-card .fname { font-weight: 700; font-size: 12px; line-height: 1.2; }
.friend-card .invited-badge { font-size: 11px; color: var(--c-green, #2d8a4e); font-weight: 800; }

.invite-count {
  margin-left: auto; font-size: 13px; font-weight: 800; color: var(--c-accent);
  background: rgba(255,255,255,.5); padding: 2px 8px; border-radius: 99px;
}
.section-title { display: flex; align-items: center; }

/* ---------------- Friends list (account) ---------------- */
.friends-list { display: flex; flex-direction: column; gap: 8px; }
.friend-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
}
.friend-row img.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.friend-row .fname { font-weight: 700; font-size: 14px; flex: 1; }
.friend-row .remove-btn {
  border: 0; background: rgba(220,53,69,.1); color: #dc3545;
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 8px; cursor: pointer;
}
.ad-box {
  background: repeating-linear-gradient(45deg,#2a1a5e,#2a1a5e 12px,#33207a 12px,#33207a 24px);
  border: 3px dashed var(--c-accent); border-radius: var(--radius); aspect-ratio: 16/9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff;
}
.ad-box .ad-tag { font-size: 12px; letter-spacing: 2px; opacity: .8; }
.ad-box .ad-big { font-size: 28px; font-weight: 800; }

/* ---------------- Toast & loader ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--c-ink); color: #fff; padding: 12px 20px; border-radius: 99px; font-weight: 700;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; max-width: 90%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--c-danger); }
.toast.ok { background: var(--c-green); }

.loader { display: inline-block; width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.loader.dark { border-color: rgba(0,0,0,.15); border-top-color: var(--c-primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.full-loader { display: grid; place-items: center; min-height: 60vh; }

/* confetti */
.confetti { position: fixed; top: -10px; width: 10px; height: 14px; z-index: 200; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .9; } }

/* misc */
.spacer { height: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.link { color: var(--c-cyan); cursor: pointer; font-weight: 700; background: none; border: 0; font-family: var(--font); font-size: 15px; }
.hidden { display: none !important; }
.pulse { animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.05);} }

@media (min-width: 521px) {
  #app { box-shadow: 0 0 60px rgba(0,0,0,.4); }
}



/* ============================================
   App Store (Step 3: Multi-game platform)
   ============================================ */
.store-header {
  text-align: center;
  margin-bottom: 24px;
}

.store-header h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.store-subtitle {
  margin: 0;
  font-size: 15px;
  opacity: 0.75;
  color: #fff;
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.app-card-h {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
}

.app-card-h:hover, .app-card-h:active {
  background: #f5f2ff;
  border-color: var(--c-accent);
}

.app-card-h-info {
  flex: 1;
  min-width: 0;
}

.app-card-h-arrow {
  font-size: 24px;
  opacity: 0.4;
  flex-shrink: 0;
  color: var(--c-ink);
}

.app-icon {
  font-size: 48px;
  margin-bottom: 12px;
  line-height: 1;
}
.app-icon-img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }

.app-name {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 600;
}

.app-description {
  margin: 0 0 8px 0;
  font-size: 13px;
  opacity: 0.7;
  line-height: 1.3;
  min-height: 34px;
}

.app-version {
  font-size: 11px;
  opacity: 0.5;
  font-weight: 500;
}

/* Cross-game dashboard badge */
.app-badge {
  display: inline-block;
  margin-right: 6px;
  font-size: 18px;
  vertical-align: middle;
}

/* ============================================
   Account page
   ============================================ */
.otp-step {
  animation: fadeIn .3s ease;
}
.otp-step input {
  text-align: center;
  letter-spacing: 6px;
  font-size: 20px;
  font-weight: 700;
}
.avatar-customizer {
  margin-top: 8px;
}

.avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  display: block;
  margin: 0 auto 10px;
  object-fit: cover;
  background: #fff;
  padding: 8px;
}

.avatar-shuffle {
  display: block;
  margin: 0 auto 14px;
  font-size: 13px;
}

.avatar-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.avatar-tab {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  color: var(--c-ink-soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.avatar-tab.active {
  background: var(--c-primary);
  color: #fff;
}

.avatar-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding: 4px;
}

.avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.avatar-option.selected {
  border-color: var(--c-primary);
  background: rgba(var(--c-primary-rgb), 0.08);
}

.avatar-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.avatar-option-none {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f3f3f3;
  color: #999;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.avatar-option-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--c-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.1;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar-color .avatar-option-label {
  text-transform: none;
  letter-spacing: 0;
}

.avatar-color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.avatar-bg-row {
  display: none;
}

@media (max-width: 380px) {
  .avatar-options {
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  }
}
.account-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--c-purple); color: #fff;
  display: grid; place-items: center; font-size: 24px; font-weight: 800;
  margin: 0 auto 12px;
}

/* ============================================
   Static legal pages (privacy, terms, data deletion)
   ============================================ */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.legal-header {
  text-align: center;
  margin-bottom: 32px;
}
.legal-logo {
  width: 40px; height: 40px; border-radius: 10px;
  margin-bottom: 12px;
}
.legal-header h1 {
  font-size: 28px; font-weight: 800; color: #fff;
  margin: 0 0 4px 0;
}
.legal-updated {
  font-size: 13px; opacity: 0.6;
}
.legal-content {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px 24px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}
.legal-content h2 {
  font-size: 18px; font-weight: 700; color: #fff;
  margin: 28px 0 10px 0;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content h3 {
  font-size: 15px; font-weight: 700; color: #fff;
  margin: 18px 0 8px 0;
}
.legal-content p {
  margin: 0 0 12px 0;
  font-size: 14px;
}
.legal-content ul, .legal-content ol {
  margin: 0 0 14px 0;
  padding-left: 20px;
}
.legal-content li {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.6;
}
.legal-content a {
  color: var(--c-accent);
  text-decoration: none;
  font-weight: 600;
}
.legal-content a:hover {
  text-decoration: underline;
}
.legal-content strong {
  color: #fff;
}
.legal-footer {
  text-align: center;
  margin-top: 32px;
}
.legal-footer a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}
.legal-footer a:hover {
  color: #fff;
}

/* ============================================
   Login footer links (legal pages)
   ============================================ */
.login-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  opacity: 0.65;
}
.login-footer a {
  color: var(--c-accent);
  text-decoration: none;
  font-weight: 600;
}
.login-footer a:hover {
  text-decoration: underline;
}

/* ============================================
   Delete account section
   ============================================ */
.delete-account-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.delete-account-section .danger-btn {
  background: #dc3545;
  color: #fff;
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}
.delete-account-section .danger-btn:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 transparent;
}
.delete-account-section .danger-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.delete-confirm-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: grid; place-items: center;
  z-index: 999;
  padding: 24px;
}
.delete-confirm-card {
  background: var(--c-bg);
  border-radius: 16px;
  padding: 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.delete-confirm-card .warn-icon {
  font-size: 48px; margin-bottom: 12px;
}
.delete-confirm-card h3 {
  color: #fff; font-size: 18px; margin-bottom: 8px;
}
.delete-confirm-card p {
  color: rgba(255, 255, 255, 0.7); font-size: 14px; margin-bottom: 18px; line-height: 1.5;
}
.delete-confirm-card .btn-row {
  display: flex; gap: 10px;
}
.delete-confirm-card .btn-row .btn {
  flex: 1; margin: 0;
}
