/* Migaweb legal site. Palette matches QuillInk in the iOS app. Light only. */

:root {
  --canvas: #e8eef6;
  --mist: #d6deea;
  --plate: #f7fafd;
  --ridge: rgba(56, 73, 96, 0.16);
  --ink: #1c2a3a;
  --hush: #5a6b7d;
  --dusk: #4c6fa8;
  --dusk-deep: #324e7a;
  --star: #c9a46a;
  --sage: #6b8f71;
  --halo: #9eb9da;
  --ember: #b54a4a;
  --readable: 720px;
  --radius: 18px;
  --cta: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -80px;
  background: radial-gradient(circle, rgba(158, 185, 218, 0.45) 0%, rgba(232, 238, 246, 0) 70%);
}

body::after {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: -90px;
  background: radial-gradient(circle, rgba(201, 164, 106, 0.18) 0%, rgba(232, 238, 246, 0) 72%);
}

a {
  color: var(--dusk);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  color: var(--dusk-deep);
  text-decoration: underline;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: var(--readable);
  margin: 0 auto;
  padding: 20px 20px 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: inherit;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dusk);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1.6px rgba(255, 255, 255, 0.88);
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-meta {
  font-size: 12px;
  color: var(--hush);
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--plate);
  border: 1px solid var(--ridge);
  color: var(--dusk);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.nav a.is-on,
.nav a:hover {
  background: var(--dusk);
  border-color: var(--dusk);
  color: var(--plate);
  text-decoration: none;
}

.hero {
  background: var(--plate);
  border: 1px solid var(--ridge);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  margin-bottom: 16px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(107, 143, 113, 0.14);
  color: var(--sage);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0 8px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lede,
.updated {
  margin: 0;
  color: var(--hush);
  font-size: 15px;
  line-height: 1.55;
}

.updated {
  margin-top: 10px;
  font-size: 13px;
}

.card {
  background: var(--plate);
  border: 1px solid var(--ridge);
  border-radius: var(--radius);
  padding: 22px 22px 8px;
  margin-bottom: 14px;
}

h2 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
  font-weight: 650;
}

p,
li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0 0 14px;
  padding-left: 1.15em;
}

li + li {
  margin-top: 6px;
}

.grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

.choice {
  display: flex;
  flex-direction: column;
  background: var(--plate);
  border: 1px solid var(--ridge);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 180px;
  color: inherit;
  text-decoration: none;
}

.choice:hover {
  text-decoration: none;
  color: inherit;
  border-color: rgba(76, 111, 168, 0.45);
  box-shadow: 0 10px 28px rgba(50, 78, 122, 0.08);
}

.choice h2 {
  margin-top: 10px;
}

.choice p {
  color: var(--hush);
  flex: 1;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--cta);
  background: var(--dusk);
  color: var(--plate);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}

.cta:hover {
  background: var(--dusk-deep);
  color: var(--plate);
  text-decoration: none;
}

.cta.ghost {
  background: var(--plate);
  color: var(--dusk);
  border: 1.5px solid var(--dusk);
}

.cta.ghost:hover {
  background: rgba(76, 111, 168, 0.08);
  color: var(--dusk-deep);
}

.mail {
  display: block;
  background: var(--canvas);
  border: 1px solid var(--ridge);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 550;
  color: var(--dusk-deep);
}

.foot {
  margin-top: 28px;
  color: var(--hush);
  font-size: 13px;
  line-height: 1.5;
}

.foot nav {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}
