/* Shared style of the legal and support pages in web/pages/, in the look of
   the landing site (landing.css): DM Sans and the app's colours. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --lime: #d6e81e;
  --black: #0a0a0a;
  --paper: #f5f5f5;
  --white: #fff;
  --muted: #5c5c5c;
  --muted-on-black: #a8a8a8;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: var(--paper);
  color: var(--black);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}

header {
  margin-bottom: 32px;
}

/* A link home in a black pill, like the landing site's header. */
.app-name {
  margin: 0 0 32px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-name a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px 9px 16px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
}

/* The logo, lime on black. */
.app-name a::before {
  content: '';
  width: 22px;
  height: 22px;
  background: var(--lime);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19.462506 19.867134'%3E%3Cpath transform='translate(-1759.378,838.60733)' d='m 1769.1287,-838.6072 a 1.3138413,1.3138413 0 0 0 -1.1539,0.65216 l -5.502,9.42371 a 1.3138413,1.3138413 0 0 0 0.7586,1.90479 l -3.7238,6.43734 a 0.96582575,0.96582575 0 0 0 0.8361,1.449 h 17.5312 a 0.96582575,0.96582575 0 0 0 0.8361,-1.449 l -3.3429,-5.7795 a 1.3138413,1.3138413 0 0 0 0.4718,-1.73632 l -5.578,-10.21902 a 1.3138413,1.3138413 0 0 0 -1.1332,-0.68316 z m -0.019,1.31361 4.8875,8.9545 0.6889,1.26245 -3.9569,-3.1657 c 0,0.22258 -0.01,0.43976 -0.023,0.65164 -0.015,0.21188 -0.037,0.4187 -0.066,0.62012 -0.058,0.40285 -0.1429,0.78475 -0.2511,1.14722 -1.5149,5.07451 -7.5742,6.28644 -7.5742,6.28644 0.7914,-0.59355 1.4589,-1.17473 2.0215,-1.73737 0.2815,-0.2814 0.5368,-0.55805 0.768,-0.8294 0.1155,-0.13564 0.2248,-0.26973 0.3286,-0.40256 0.2077,-0.26567 0.3927,-0.52546 0.5571,-0.77877 0.2466,-0.37995 0.4475,-0.74517 0.6098,-1.09295 0.1623,-0.34779 0.2862,-0.67817 0.3798,-0.98857 0.156,-0.51733 0.2274,-0.9794 0.2506,-1.37356 0.019,-0.31533 0.01,-0.58719 -0.019,-0.80977 -0.049,-0.44517 -0.1483,-0.69247 -0.1483,-0.69247 l -3.4323,2.05983 -0.5246,0.31471 z'/%3E%3C/svg%3E") center / contain no-repeat;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 7vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  margin: 40px 0 8px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h3 {
  margin: 24px 0 4px;
  font-size: 18px;
}

.updated {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

p,
ul,
ol {
  margin: 0 0 12px;
}

ul,
ol {
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--black);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}

.card {
  margin: 16px 0;
  padding: 18px 22px;
  border-radius: 22px;
  background: var(--white);
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
  margin-bottom: 0;
}

/* A black card, like the landing site's footer. */
footer {
  margin-top: 48px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--black);
  color: var(--muted-on-black);
  font-size: 15px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 8px;
}

footer a {
  color: inherit;
}

footer a:hover {
  color: var(--white);
}

footer p {
  margin: 0;
}
