@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@500;700;800&display=swap");

:root {
  --lime: #D2E823;
  --forest: #254F1A;
  --blue: #2665D6;
  --maroon: #780016;
  --pale: #E8EFD6;
  --offwhite: #F3F3F1;
  --ink: #1E2330;
  --lilac: #E9C0E9;
  --purple: #502274;
  --line: rgb(30 35 48 / 12%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: "Hanken Grotesk", "DM Sans", system-ui, sans-serif;
  line-height: 1.62;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 330px;
  background: var(--lime);
}

a {
  color: var(--forest);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-nav {
  width: min(calc(100% - 40px), 1180px);
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 26px auto 0;
  border-radius: 9999px;
  background: #fff;
  padding: 14px 26px;
  box-shadow: 0 14px 34px rgb(30 35 48 / 10%);
}

.legal-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.legal-wordmark svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.legal-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 18px;
}

.legal-nav-links a {
  color: var(--ink);
  text-decoration: none;
}

.legal-nav-links .legal-login {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: #10131a;
  color: var(--offwhite);
  padding: 0 24px;
}

.wrap {
  width: min(calc(100% - 40px), 980px);
  margin: 42px auto 96px;
  border-radius: 32px;
  background: #fff;
  padding: 48px;
  box-shadow: 0 20px 54px rgb(30 35 48 / 10%);
}

header.doc {
  border-bottom: 2px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.brand {
  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 8px 0 8px;
  color: var(--forest);
  font-size: 54px;
  line-height: 1.04;
  font-weight: 800;
}

h2 {
  margin: 38px 0 10px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.08;
  font-weight: 800;
}

h3 {
  margin: 24px 0 8px;
  font-size: 20px;
  line-height: 1.12;
}

p,
li,
td,
th {
  font-size: 17px;
}

.meta,
p.lead,
footer,
footer.doc {
  color: rgb(30 35 48 / 64%);
}

.note,
.toc,
.ban,
.officer {
  border: 0;
  border-radius: 24px;
  margin: 26px 0;
  padding: 22px 26px;
}

.note,
.toc {
  background: var(--pale);
}

.ban {
  background: #fee8ef;
}

.officer {
  background: var(--lilac);
}

.card {
  display: block;
  margin: 16px 0;
  border: 0;
  border-radius: 24px;
  background: var(--pale);
  padding: 24px 26px;
  color: inherit;
  text-decoration: none;
  transition: transform 150ms ease, filter 150ms ease;
}

.card:nth-of-type(2n) {
  background: var(--lilac);
}

.card:hover {
  transform: scale(1.01);
  filter: brightness(1.02);
}

.card h2 {
  margin: 0 0 8px;
  color: var(--forest);
  font-size: 24px;
}

.card p {
  margin: 0;
}

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

.legal-contact-list {
  margin-top: 8px;
}

li {
  margin: 7px 0;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 22px 0;
}

th,
td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--pale);
  color: var(--forest);
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

th:last-child,
td:last-child {
  border-right: 0;
}

.ph {
  border-radius: 8px;
  background: var(--lilac);
  padding: 2px 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

footer.doc,
.wrap > footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.crosslinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.crosslinks a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 9999px;
  background: var(--purple);
  color: var(--offwhite);
  padding: 0 15px;
  font-size: 14px;
  text-decoration: none;
}

@media (max-width: 720px) {
  .legal-nav {
    width: min(calc(100% - 28px), 1180px);
    min-height: 70px;
    padding: 12px 16px;
  }

  .legal-nav-links a:not(.legal-login) {
    display: none;
  }

  .legal-wordmark {
    font-size: 22px;
  }

  .legal-wordmark svg {
    width: 26px;
    height: 26px;
  }

  .wrap {
    width: min(calc(100% - 28px), 980px);
    margin-top: 28px;
    padding: 28px 22px;
    border-radius: 24px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 24px;
  }

  p,
  li,
  td,
  th {
    font-size: 16px;
  }
}
