@value large-tablet-breakpoint-query from '~diem-docusaurus-components/src/variables.module.css';
@value large-desktop-breakpoint-query from '~diem-docusaurus-components/src/variables.module.css';

footer {
  padding: 0 var(--body-horizontal-padding) 85px var(--body-horizontal-padding);
}

.spacer {
  padding-top: 40px;
}

.container {
  font-size: 18px;
  line-height: 22px;
}

footer ul {
  padding-left: 0;
}

.linkList.secondary {
  font-size: 14px;
  padding-top: 25px;
}

.logo svg {
  padding-bottom: 57px;
  width: 142px;
}

.logo path {
  fill: var(--accent-highlight);
}

.linkList li:not(:last-child) {
  padding-bottom: 14px;
}

.linkList.secondary li:not(:last-child) {
  padding-bottom: 9px;
}

li.primary a {
  color: var(--accent-highlight);
}

li.secondary a, .copyright {
  color: var(--footer-secondary-color);
  font-weight: 300;
}

.newsletter {
  --size: 16px;
  border: 1px solid #2C2C2C;
  background-position: 28.5px 50%;
  background-repeat: no-repeat;
  background-size: var(--size);
  color: black;
  display: inline-block;
  font-weight: 300;
  font-size: 16px;
  text-decoration: none !important;
  transition: all .075s ease-in-out;
  padding: 12px 0 12px calc( var(--size) + 9px );
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.newsletter:hover {
  background-color: var(--brand-color);
  border-color: white;
  color: white;
}

.copyright {
  padding-top: 25px;
}

@media large-tablet-breakpoint-query {
  footer {
    padding: 0 50px;
  }

  .spacer {
    margin-left: auto;
    margin-right: auto;
    padding: 40px 0px 65px 25px;
    max-width: 1252px;
  }

  footer ul {
    padding-left: var(--ifm-list-left-padding);
  }

  .container {
    display: flex;
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .logo {
    flex: 1.59;
  }

  .linkList.secondary li:not(:last-child) {
    padding-bottom: 14px;
  }

  .linkList {
    flex: 1;
  }

  .linkList.secondary {
    font-size: inherit;
    padding-top: 0;
  }

  .container > .connect {
    flex-basis: 242px;
    padding-left: 20px;
  }

  .copyright {
    font-size: 14px;
    padding-top: 85px;
  }
}

@media large-desktop-breakpoint-query {
  .spacer {
    padding-top: 70px;
  }
}

footer {
  --footer-secondary-color: rgba(0, 0, 0, .6);
}

html[data-theme='dark'] footer {
  --footer-secondary-color: var(--gray-1);
}

html[data-theme='dark'] .newsletter {
  border-color: white;
  color: white;
}

html[data-theme='dark'] .newsletter:hover {
  background-color: var(--accent-highlight);
  color: var(--brand-color);
}
