:root {
  --ink: #171b16;
  --paper: #f7f7ef;
  --paper-2: #e8ecdf;
  --green: #2f6f19;
  --green-deep: #123d06;
  --lime: #a8df45;
  --pink-deep: #5c132c;
  --pink: #ea90b3;
  --red: #b72e42;
  --white: #fffef8;
  --line: rgba(23, 27, 22, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.legal-grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

.legal-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 76px);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 650 1.05rem "Manrope", sans-serif;
}

.legal-brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.legal-brand b {
  color: var(--lime);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.back-link svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.legal-hero {
  min-height: 76svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 130px clamp(22px, 7vw, 110px) 55px;
  color: white;
  background: var(--green-deep);
}

.legal-kicker {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font: 600 0.68rem "Manrope", sans-serif;
  text-transform: uppercase;
}

.legal-hero h1,
.delete-intro h1 {
  max-width: 1250px;
  margin: 70px 0;
  font: 700 clamp(4rem, 9vw, 10rem)/0.9 "Manrope", sans-serif;
}

.legal-hero h1 em,
.delete-intro h1 em {
  color: var(--lime);
  font-family: Georgia, serif;
  font-weight: 400;
}

.legal-hero-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

.legal-hero-foot p {
  margin: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 900px);
  gap: clamp(60px, 10vw, 170px);
  justify-content: center;
  padding: clamp(80px, 10vw, 150px) clamp(22px, 7vw, 110px);
}

.legal-index {
  align-self: start;
  position: sticky;
  top: 40px;
}

.legal-index > p {
  margin: 0 0 22px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-index nav {
  display: grid;
  border-top: 1px solid var(--line);
}

.legal-index a {
  display: grid;
  grid-template-columns: 38px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}

.legal-index a span {
  color: var(--green);
}

.legal-content section {
  scroll-margin-top: 30px;
  padding: 0 0 70px;
  margin-bottom: 70px;
  border-bottom: 1px solid var(--line);
}

.legal-number,
.delete-index {
  margin-bottom: 18px;
  color: var(--green);
  font: 700 0.68rem "Manrope", sans-serif;
}

.legal-content h2,
.delete-panel h2 {
  margin: 0 0 28px;
  font: 650 clamp(2rem, 3.5vw, 3.6rem)/1.05 "Manrope", sans-serif;
}

.legal-content h3 {
  margin: 32px 0 8px;
  font: 650 1rem "Manrope", sans-serif;
}

.legal-content p {
  margin: 0 0 20px;
  color: rgba(23, 27, 22, 0.72);
  font-size: 1rem;
}

.legal-content ul,
.delete-summary ul {
  display: grid;
  gap: 0;
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
}

.legal-content li,
.delete-summary li {
  position: relative;
  padding: 13px 0 13px 24px;
  border-bottom: 1px solid var(--line);
  color: rgba(23, 27, 22, 0.75);
}

.legal-content li::before,
.delete-summary li::before {
  content: "↳";
  position: absolute;
  left: 0;
  color: var(--green);
}

.legal-content a {
  color: var(--green);
  font-weight: 700;
}

.legal-callout {
  margin: 25px 0 30px;
  padding: 26px;
  color: white;
  background: var(--green);
  font: 600 clamp(1.1rem, 1.8vw, 1.45rem)/1.45 "Manrope", sans-serif;
}

.legal-callout-warning {
  background: var(--pink-deep);
}

.contact-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 20px;
  align-items: center;
  margin-top: 35px;
  padding: 24px;
  color: white !important;
  background: var(--green-deep);
}

.contact-block span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.65;
}

.contact-block strong {
  font: 600 clamp(1.2rem, 2vw, 1.8rem) "Manrope", sans-serif;
}

.contact-block b {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 1.5rem;
}

.legal-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 48px clamp(22px, 6vw, 96px);
  color: white;
  background: var(--ink);
}

.legal-footer nav {
  display: flex;
  gap: 24px;
  font-size: 0.76rem;
}

.legal-footer small {
  grid-column: 1 / -1;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Delete account */
.delete-page {
  color: white;
  background: var(--pink-deep);
}

.legal-header-light {
  position: relative;
}

.delete-main {
  padding: 65px clamp(22px, 7vw, 110px) 130px;
}

.delete-intro {
  padding: 60px 0 100px;
}

.delete-intro h1 {
  margin-bottom: 45px;
}

.delete-intro h1 em {
  color: var(--pink);
}

.delete-intro > p {
  max-width: 560px;
  margin: 0 0 0 auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
}

.delete-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  color: var(--ink);
  background: var(--paper);
}

.delete-summary,
.delete-form-wrap {
  padding: clamp(30px, 5vw, 72px);
}

.delete-summary {
  background: var(--paper-2);
  border-right: 1px solid var(--line);
}

.delete-summary li::before {
  content: "×";
  color: var(--red);
  font-weight: 700;
}

.delete-warning {
  display: grid;
  gap: 5px;
  margin-top: 38px;
  padding: 20px;
  color: white;
  background: var(--red);
}

.delete-warning span {
  font-size: 0.82rem;
  opacity: 0.8;
}

.delete-form-wrap > div > p {
  margin: -13px 0 35px;
  color: rgba(23, 27, 22, 0.62);
}

#deleteForm {
  display: grid;
  gap: 20px;
}

.delete-field {
  display: grid;
  gap: 8px;
}

.delete-field label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.delete-field input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: var(--white);
}

.delete-field input:focus {
  border-color: var(--red);
}

.delete-button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 20px;
  color: white;
  border: 0;
  background: var(--red);
  cursor: pointer;
  font-weight: 700;
}

.delete-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.delete-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.delete-help {
  margin: 25px 0 0 !important;
  font-size: 0.78rem;
  line-height: 1.6;
}

.delete-help a {
  color: var(--red);
  font-weight: 700;
}

.delete-success {
  display: none;
  min-height: 440px;
  align-content: center;
}

.delete-success.show {
  display: grid;
}

.success-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  color: white;
  background: var(--green);
  font-size: 1.8rem;
}

.delete-success a {
  width: max-content;
  margin-top: 28px;
  padding-bottom: 5px;
  color: var(--green);
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

.legal-footer-light {
  background: #3e0b1e;
}

.legal-toast {
  position: fixed;
  z-index: 1100;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 48px));
  padding: 16px 18px;
  color: white;
  background: var(--ink);
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.3s, transform 0.3s;
}

.legal-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.legal-toast.error {
  background: var(--red);
}

.legal-toast.success {
  background: var(--green);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-index {
    position: static;
  }

  .legal-index nav {
    grid-template-columns: 1fr 1fr;
  }

  .delete-panel {
    grid-template-columns: 1fr;
  }

  .delete-summary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .legal-header {
    height: 66px;
    padding: 0 18px;
  }

  .legal-brand img {
    width: 34px;
    height: 34px;
  }

  .back-link {
    font-size: 0;
  }

  .back-link svg {
    width: 24px;
  }

  .legal-hero {
    min-height: 700px;
    padding: 105px 20px 35px;
  }

  .legal-hero h1,
  .delete-intro h1 {
    margin: 70px 0;
    font-size: clamp(3.5rem, 17vw, 5.1rem);
  }

  .legal-hero-foot {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    gap: 70px;
    padding: 80px 20px;
  }

  .legal-index nav {
    grid-template-columns: 1fr;
  }

  .legal-content section {
    padding-bottom: 50px;
    margin-bottom: 50px;
  }

  .legal-footer {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }

  .legal-footer nav {
    flex-wrap: wrap;
  }

  .delete-main {
    padding: 45px 20px 80px;
  }

  .delete-intro {
    padding: 45px 0 75px;
  }

  .delete-intro > p {
    margin-left: 0;
  }

  .delete-summary,
  .delete-form-wrap {
    padding: 28px 20px;
  }
}
