.back-link-wrapper {
  border-bottom: 1px solid #a1acb2;
}
.back-link:link {
  display: inline-block;
  margin: 7px 0;
  color: #000000;
  text-decoration: none;
}
.back-link::before {
  content: '';
  height: 16px;
  width: 16px;
  display: inline-block;
  background: url('/themes/custom/ofstedContacts/images/arrow-back.svg') no-repeat;
  vertical-align: sub;
  margin: 0 3px;
}
.container {
  max-width: 960px;
  margin: 0 15px;
  padding-bottom: 90px;
}

.row {margin: 0 -15px;}
.row::before {
  display: table;
  content: ' ';
}
.row::after {
  display: table;
  content: ' ';
  clear: both;
}
.column-4,
.column-8,
.column-12 {
  padding: 0 15px;
  float: left;
  width: 100%;
}
.footer-meta div:nth-child(1) {
  position: relative;
}
#block-cookies,
#block-privacylink,
#block-accessibilitystatementcontacts,
#block-accessibilitystatementlogos {
  display: inline-block;
  width: fit-content;
  margin-right: 15px;
  line-height: 0.3;
}
#block-footertext {
  display: inline-block;
}
#footer p {
  font-size: 16px;
}
#block-footerlogo {
  text-align: center;
  padding-top: 15px;
}
#block-footerlogo a {
  background: url("/themes/custom/ofstedContacts/images/footer-logo.png") no-repeat top right;
  display: inline-block;
  padding: 115px 0 0 0;
}
#block-footertext p,
#block-footerlogo p {
  margin: 15px 0;
}
#block-footertext p:nth-child(2) {
  padding-left: 0;
}
#logo {
  margin-left: 15px;
}

@media(min-width: 641px) {
  .container {
    margin: 0 30px;
  }
  .column-4 {
    width: 33.33333333%;
  }
  .column-8 {
    width: 66.66666667%;
  }
  .column-12 {
    width: 100%;
  }
  #block-footertext {
    position: relative;
    width: 75%;
  }
  #block-footertext p:nth-child(2) {
    padding-left: 53px;
  }
  #block-footertext .logo {
    position: absolute;
    left: 0;
    margin-top: 5px;
  }
  #block-footerlogo {
    bottom: 0;
    display: inline-block;
    float: right;
    position: absolute;
    width: 25%;
  }
  #footer .footer-wrapper {
    padding-top: 100px!important;
  }
  .page-number {
    text-align: right;
  }
}

@media(min-width: 1020px) {
  .container {
    margin: 0 auto;
  }
  #logo {
    margin-left: 0;
  }
  #block-footertext .logo {
    margin-top: 0;
  }
}
