/* EJAR Agent — Arabic-first mobile demo
   Design goals: calm, premium, clear. The agent lives inside a phone. */

:root {
  --bg: #0e1726;
  --bg-2: #0a1120;
  --ink: #0d1b2a;
  --paper: #ffffff;
  --muted: #5b6b7d;
  --line: #e7ecf3;
  --brand: #0a7d5a;        /* EJAR-ish calm green */
  --brand-2: #0bbf86;
  --green: #18a06b;
  --green-soft: #e7f7ef;
  --gold: #c9a227;
  --ejar: #0a7d5a;
  --bank: #1f6feb;
  --bank-soft: #eaf1ff;
  --shadow: 0 24px 60px rgba(8, 20, 40, .22);
  --radius: 22px;
  --font: "IBM Plex Sans Arabic", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: #e8eefc;
  background:
    radial-gradient(1100px 600px at 85% -10%, #16314f 0%, transparent 60%),
    radial-gradient(900px 500px at 0% 10%, #123a2e 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px clamp(16px, 4vw, 40px);
  max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 22px; color: #fff;
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
  box-shadow: 0 8px 20px rgba(11, 191, 134, .35);
}
.brand-text strong { display: block; font-size: 18px; color: #fff; }
.brand-text small { color: #9fb2cc; font-size: 12.5px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.privacy-chip {
  font-size: 12px; color: #bfe6d6; background: rgba(11, 191, 134, .12);
  border: 1px solid rgba(11, 191, 134, .35); padding: 6px 12px; border-radius: 999px;
}
.language-button {
  background: rgba(255,255,255,.08); color: #e8eefc; border: 1px solid rgba(255,255,255,.18);
  padding: 8px 16px; border-radius: 999px; font-family: var(--font); font-size: 13.5px;
  font-weight: 600; cursor: pointer; transition: .15s;
}
.language-button:hover { background: rgba(255,255,255,.16); }

/* ---------- stage layout ---------- */
.stage {
  max-width: 1180px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 40px) 40px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

/* ---------- narration ---------- */
.overline {
  text-transform: none; letter-spacing: .04em; font-weight: 700; font-size: 13px;
  color: var(--brand-2); margin: 0 0 12px;
}
#heroTitle {
  font-family: "Tajawal", var(--font); font-weight: 800;
  font-size: clamp(26px, 3.6vw, 42px); line-height: 1.32; color: #fff; margin: 0 0 16px;
}
.hero-text { color: #bccadd; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.95; margin: 0 0 22px; max-width: 56ch; }

.story-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.story-steps li {
  position: relative; padding: 12px 52px 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  color: #c3d0e2; font-size: 14.5px; line-height: 1.6; transition: .25s;
}
.story-steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: #9fb2cc;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.story-steps li.active {
  background: linear-gradient(180deg, rgba(11,191,134,.16), rgba(11,191,134,.06));
  border-color: rgba(11,191,134,.45); color: #eafff6;
}
.story-steps li.active::before { background: var(--brand); color: #fff; border-color: transparent; }
.story-steps li.done { color: #9fe9cf; }
.story-steps li.done::before { content: "✓"; background: rgba(24,160,107,.25); color: #7ff0c4; border-color: transparent; }

.rule-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px;
  background: rgba(201,162,39,.10); border: 1px solid rgba(201,162,39,.35);
}
.rule-icon { color: var(--gold); font-size: 18px; line-height: 1.4; }
.rule-card strong { display: block; color: #f3e6bd; font-size: 14.5px; margin-bottom: 4px; }
.rule-card p { margin: 0; color: #d7cba0; font-size: 13px; line-height: 1.7; }

/* ---------- phone ---------- */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone {
  position: relative; width: 360px; max-width: 90vw; height: 740px;
  background: #f4f7fb; border-radius: 44px; padding: 14px 12px 0;
  box-shadow: var(--shadow), inset 0 0 0 3px rgba(255,255,255,.6);
  border: 10px solid #0b1422; display: flex; flex-direction: column; overflow: hidden;
}
.phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 130px; height: 26px; background: #0b1422; border-radius: 0 0 16px 16px; z-index: 5;
}
.phone__statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 18px 8px; color: #45526a; font-size: 12.5px; font-weight: 700;
}
.sb-right { display: inline-flex; gap: 6px; align-items: center; }
.sb-right i { display: inline-block; background: #45526a; border-radius: 2px; }
.sb-sig { width: 16px; height: 11px; clip-path: polygon(0 100%,25% 100%,25% 60%,50% 60%,50% 30%,75% 30%,75% 0,100% 0,100% 100%); }
.sb-wifi { width: 14px; height: 11px; border-radius: 3px; }
.sb-batt { width: 22px; height: 11px; border-radius: 3px; }

.appbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 14px 12px; border-bottom: 1px solid var(--line);
}
.appbar__brand { display: flex; align-items: center; gap: 10px; }
.appbar__mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 18px;
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
}
.appbar__brand strong { display: block; color: var(--ink); font-size: 15.5px; }
.appbar__state { display: block; color: var(--brand); font-size: 12.5px; font-weight: 600; }
.agent-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 0 rgba(11,191,134,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(11,191,134,.5);} 70%{box-shadow:0 0 0 9px rgba(11,191,134,0);} 100%{box-shadow:0 0 0 0 rgba(11,191,134,0);} }

/* ---------- screen ---------- */
.screen {
  flex: 1; overflow-y: auto; padding: 14px 14px 8px; background: #f4f7fb;
  scrollbar-width: thin; scrollbar-color: #cdd7e5 transparent;
}
.screen::-webkit-scrollbar { width: 6px; }
.screen::-webkit-scrollbar-thumb { background: #cdd7e5; border-radius: 3px; }
.screen__label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.screen__label strong { color: var(--ink); font-size: 14px; }
.screen__sub { color: var(--muted); font-size: 11.5px; }

/* message feed (chat bubbles) */
.feed { display: flex; flex-direction: column; gap: 12px; }
.msg {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 13px; box-shadow: 0 2px 10px rgba(13,27,42,.05);
  animation: rise .35s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.msg-badge { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.msg-sender { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.msg-time { margin-inline-start: auto; font-size: 11px; color: var(--muted); }
.msg p { margin: 0; color: #2b3a4d; font-size: 13.5px; line-height: 1.75; }
.msg b { color: var(--ink); }
.msg--ejar { border-inline-start: 3px solid var(--ejar); }
.msg--ejar .msg-badge { background: var(--ejar); }
.msg--bank { border-inline-start: 3px solid var(--bank); background: var(--bank-soft); }
.msg--bank .msg-badge { background: var(--bank); }
.msg--agent {
  background: linear-gradient(180deg, #effaf4, #e3f6ec); border-color: rgba(24,160,107,.3);
  border-inline-start: 3px solid var(--green);
}
.msg--agent .msg-badge { background: var(--green); }

/* typing indicator */
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); opacity: .4; animation: blink 1.2s infinite; }
.typing span:nth-child(2){ animation-delay: .2s; } .typing span:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,100%{opacity:.3; transform: translateY(0);} 50%{opacity:1; transform: translateY(-2px);} }

/* 5-day tracker */
.five-day { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 13px; box-shadow: 0 2px 10px rgba(13,27,42,.05); }
.five-day__label { font-size: 12.5px; color: var(--ink); font-weight: 600; margin-bottom: 11px; }
.five-day__dots { display: flex; justify-content: space-between; gap: 6px; }
.day-dot {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 0; border-radius: 11px; background: #f0f3f8; border: 1px solid var(--line);
  color: #9aa8ba; transition: .3s;
}
.day-dot b { font-size: 14px; font-weight: 800; }
.day-dot small { font-size: 9.5px; }
.day-dot.on { background: var(--green-soft); border-color: rgba(24,160,107,.4); color: var(--green); transform: translateY(-2px); }

/* match result */
.match-result { margin-top: 14px; }
.paid-banner {
  display: flex; align-items: center; gap: 11px; padding: 14px;
  background: linear-gradient(135deg, var(--green), #14b378); border-radius: 16px; color: #fff;
  box-shadow: 0 12px 26px rgba(24,160,107,.35); animation: rise .4s ease both;
}
.paid-check { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 18px; font-weight: 800; }
.paid-copy strong { display: block; font-size: 17px; }
.paid-copy p { margin: 2px 0 0; font-size: 12px; opacity: .92; }
.mini-confidence { margin-inline-start: auto; font-size: 15px; font-weight: 800; }
.evidence-title { font-size: 12px; color: var(--muted); margin: 13px 0 7px; font-weight: 600; }
.evidence-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.evidence-list li {
  position: relative; padding: 9px 32px 9px 11px; background: #fff; border: 1px solid var(--line);
  border-radius: 11px; font-size: 12.5px; color: #2b3a4d; line-height: 1.55;
}
.evidence-list li::before {
  content: "✓"; position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%);
  color: var(--green); font-weight: 800;
}

/* panels */
.action-panel, .closed-panel, .next-actions, .draft-section { margin-top: 14px; }
.action-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 2px 10px rgba(13,27,42,.05); }
.action-panel strong { color: var(--ink); font-size: 14px; }
.action-panel p { color: var(--muted); font-size: 12.5px; margin: 5px 0 12px; line-height: 1.6; }

.primary-action {
  width: 100%; border: none; cursor: pointer; font-family: var(--font); font-weight: 700; font-size: 14px;
  color: #fff; padding: 13px 16px; border-radius: 13px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 10px 22px rgba(11,191,134,.35); transition: .15s;
}
.primary-action:hover { transform: translateY(-1px); filter: brightness(1.04); }
.primary-action:active { transform: translateY(0); }

.closed-panel {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--green-soft); border: 1px solid rgba(24,160,107,.35); border-radius: 16px;
}
.big-check { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 800; }
.closed-panel strong { display: block; color: var(--ink); font-size: 14.5px; }
.closed-panel p { margin: 3px 0 0; color: #3c6a55; font-size: 12.5px; }

.next-overline { font-size: 12px; color: var(--muted); font-weight: 700; margin: 0 0 9px; }
.actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.action-tile {
  cursor: pointer; text-align: start; font-family: var(--font); background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 12px;
  display: flex; flex-direction: column; gap: 5px; transition: .15s; box-shadow: 0 2px 10px rgba(13,27,42,.05);
}
.action-tile:hover { border-color: var(--brand-2); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11,191,134,.18); }
.tile-icon { font-size: 22px; }
.action-tile strong { color: var(--ink); font-size: 13px; }
.action-tile small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.action-output { margin-top: 11px; font-size: 12.5px; color: var(--green); line-height: 1.7; min-height: 0; }
.action-output.show { background: var(--green-soft); border: 1px solid rgba(24,160,107,.3); padding: 10px 12px; border-radius: 11px; }

.draft-card { margin-top: 9px; }
.draft-card label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.draft-card textarea {
  width: 100%; resize: none; font-family: var(--font); font-size: 12.5px; color: #2b3a4d;
  border: 1px solid var(--line); border-radius: 11px; padding: 10px; background: #fff; line-height: 1.7;
}
.draft-card--secondary textarea { background: #f7f9fc; color: var(--muted); direction: ltr; text-align: left; }

/* dock */
.phone__dock {
  display: flex; align-items: center; gap: 9px; padding: 12px 14px;
  background: #fff; border-top: 1px solid var(--line);
}
.dock-primary {
  flex: 1; border: none; cursor: pointer; font-family: var(--font); font-weight: 700; font-size: 14px;
  color: #fff; padding: 13px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 8px 18px rgba(11,191,134,.32);
  transition: .15s;
}
.dock-primary:hover { transform: translateY(-1px); }
.dock-primary:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.dock-ghost {
  width: 46px; height: 46px; border-radius: 13px; cursor: pointer; font-size: 16px;
  background: #f0f3f8; border: 1px solid var(--line); color: #45526a; transition: .15s;
}
.dock-ghost:hover { background: #e6ebf3; }

.phone-caption { color: #8ea3bf; font-size: 13px; text-align: center; margin: 0; }

/* ---------- privacy substitute drawer ---------- */
.substitute-drawer {
  max-width: 1180px; margin: 8px auto 0; padding: 0 clamp(16px, 4vw, 40px);
}
.substitute-drawer > summary {
  cursor: pointer; list-style: none; color: #cdd9ea; font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  padding: 14px 18px; border-radius: 14px; transition: .15s;
}
.substitute-drawer > summary::-webkit-details-marker { display: none; }
.substitute-drawer > summary:hover { background: rgba(255,255,255,.09); }
.substitute-drawer[open] > summary { border-radius: 14px 14px 0 0; }
.substitute-body {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-top: none;
  border-radius: 0 0 14px 14px; padding: 18px;
}
.substitute-body > p { color: #aebed3; font-size: 13.5px; line-height: 1.8; margin: 0 0 14px; }
.upload-dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  border: 2px dashed rgba(255,255,255,.22); border-radius: 14px; padding: 24px; cursor: pointer; transition: .15s;
}
.upload-dropzone:hover, .upload-dropzone.dragover { border-color: var(--brand-2); background: rgba(11,191,134,.07); }
.upload-icon { font-size: 24px; color: var(--brand-2); }
.upload-dropzone strong { color: #e8eefc; font-size: 14px; }
.upload-dropzone small { color: #94a6bf; font-size: 12px; }
.upload-dropzone input { display: none; }
.selected-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.file-chip { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 7px 11px; }
.file-chip strong { display: block; color: #e8eefc; font-size: 12px; }
.file-chip small { color: #8ea3bf; font-size: 10.5px; }
.substitute-body .secondary-action {
  margin-top: 14px; width: 100%; cursor: pointer; font-family: var(--font); font-weight: 700; font-size: 14px;
  color: #0a1120; background: linear-gradient(135deg, #d7e6ff, #fff); border: none; padding: 12px; border-radius: 12px;
}
.upload-result { margin-top: 12px; font-size: 13px; color: #cdd9ea; line-height: 1.7; }
.upload-result.success { color: #7ff0c4; }
.upload-result.error { color: #ffb0b0; }

/* ---------- footer ---------- */
footer {
  max-width: 1180px; margin: 28px auto 36px; padding: 0 clamp(16px, 4vw, 40px);
  color: #8ea3bf; font-size: 14px; line-height: 1.8; text-align: center;
}
footer strong { color: #bfe6d6; }

.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px;
  margin-top: 10px;
}
.footer-links a {
  color: #bfe6d6; text-decoration: none; border-bottom: 1px solid rgba(191,230,214,.35);
}
.footer-links a:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- App Store / legal pages ---------- */
.legal-page {
  background: #f6f8fb;
  color: #182536;
  min-height: 100vh;
}
.legal-page .legal-shell {
  width: min(960px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}
.legal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0 22px;
}
.legal-brand {
  display: flex; align-items: center; gap: 12px; color: #182536; text-decoration: none;
}
.legal-brand .brand-mark { box-shadow: none; }
.legal-brand strong { display: block; font-size: 17px; }
.legal-brand small { display: block; color: #64748b; font-size: 12px; margin-top: 2px; }
.legal-nav {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px;
  font-size: 13px;
}
.legal-nav a, .legal-link {
  color: #096b4c; text-decoration: none; font-weight: 700;
}
.legal-nav a:hover, .legal-link:hover { text-decoration: underline; }
.legal-card {
  background: #fff;
  border: 1px solid #e3e9f2;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  padding: clamp(22px, 4vw, 38px);
}
.legal-card h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: 0;
}
.legal-card h2 {
  margin: 30px 0 10px;
  color: #0f172a;
  font-size: 21px;
  line-height: 1.3;
}
.legal-card h3 {
  margin: 22px 0 8px;
  color: #172033;
  font-size: 16px;
}
.legal-card p, .legal-card li {
  color: #415166;
  font-size: 15px;
  line-height: 1.75;
}
.legal-card p { margin: 0 0 12px; }
.legal-card ul, .legal-card ol { padding-inline-start: 22px; margin: 8px 0 14px; }
.legal-card code {
  background: #eef5f1; color: #07583f; border-radius: 6px;
  padding: 2px 6px; font-size: .95em;
}
.legal-meta {
  color: #64748b;
  font-size: 13px;
  margin-bottom: 22px;
}
.legal-note {
  background: #edf7f2;
  border: 1px solid #bee8d5;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 18px 0;
}
.legal-note p:last-child { margin-bottom: 0; }
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 6px;
}
.link-tile {
  display: block;
  border: 1px solid #e3e9f2;
  border-radius: 8px;
  padding: 14px;
  color: #182536;
  text-decoration: none;
  background: #fbfdff;
}
.link-tile:hover { border-color: #0a7d5a; box-shadow: 0 8px 18px rgba(10,125,90,.10); }
.link-tile strong { display: block; color: #0f172a; margin-bottom: 5px; }
.link-tile span { color: #64748b; font-size: 13px; overflow-wrap: anywhere; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 8px;
}
.legal-table th, .legal-table td {
  border: 1px solid #e3e9f2;
  padding: 12px;
  text-align: left;
  vertical-align: top;
  color: #415166;
  font-size: 14px;
  line-height: 1.55;
}
.legal-table th { background: #f1f5f9; color: #0f172a; }
.legal-footer {
  color: #64748b;
  text-align: center;
  font-size: 13px;
  padding-top: 18px;
}
.arabic-summary {
  direction: rtl;
  text-align: right;
  border-top: 1px solid #e3e9f2;
  margin-top: 28px;
  padding-top: 24px;
}
.arabic-summary h2, .arabic-summary p, .arabic-summary li { font-family: var(--font); }

/* ---------- helpers ---------- */
.hidden { display: none !important; }

/* LTR tweaks for English */
.lang-en .hero-text, .lang-en .msg p, .lang-en .evidence-list li { direction: ltr; text-align: left; }
.lang-en .draft-card textarea { direction: ltr; text-align: left; }

/* ---------- presentation mode (?customer-flow=1): focus on the phone ---------- */
body.present .narration .story-steps,
body.present .rule-card,
body.present .substitute-drawer,
body.present .privacy-chip { /* kept but de-emphasized; rule stays in-phone via narration */ }
body.present .substitute-drawer { opacity: .55; }
body.present .substitute-drawer:hover { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; gap: 28px; }
  .narration { order: 2; }
  .phone-wrap { order: 1; }
  #heroTitle { font-size: clamp(24px, 6vw, 32px); }
}
@media (max-width: 420px) {
  .phone { width: 100%; height: 78vh; min-height: 620px; border-width: 8px; }
  .topbar { flex-wrap: wrap; }
  .legal-header { align-items: flex-start; flex-direction: column; }
  .legal-nav { justify-content: flex-start; }
  .link-grid { grid-template-columns: 1fr; }
}
