/*
 * Legal pages (privacy policy, GTC, DPA).
 * Content styling for the WordPress-exported markup (.fortytwo-post / .fortyto-text),
 * to be loaded after includes/basei.css and includes/pages.css.
 * Replaces the dependency on blog/wp-content/themes/fortytwo/style.css.
 */

/* Accessibility: skip link */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--ads-blue);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Layout */
.fortytwo-post {
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.5;
}

@media screen and (max-width: 1400px) {
  .fortytwo-post {max-width: 650px;}
}

@media screen and (max-width: 1180px) {
  .fortytwo-post {max-width: 850px;}
}

.fortytwo-post .entry-header,
.fortyto-text {
  max-width: 680px;
  margin: 0 auto;
}

.fortytwo-post .entry-content {
  margin-top: 1.5em;
}

.fortyto-text p:empty {
  display: none;
}

/* Typography */
.fortytwo-post h1 {
  font-size: 36px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ads-blue);
  margin: 40px 0 24px;
}

/* h2 keeps the site-wide colour (var(--ads-blue)) from basei.css */
.fortytwo-post h2 {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  margin: 22px 0;
  padding: 15px 0 0;
}

.fortytwo-post h2.spec-head {
  font-size: 28px;
}

.fortytwo-post h3 {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  color: #333;
  margin: 26px 0;
  padding-top: 15px;
}

.fortytwo-post p {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
  color: #333;
  margin-bottom: 1.6em;
}

.fortytwo-post b,
.fortytwo-post strong {
  font-weight: 600;
}

.fortytwo-post a {
  color: #333;
  transition: color .3s;
  text-underline-offset: 2px;
}

.fortytwo-post a:hover,
.fortytwo-post a:focus {
  color: var(--bordertopblue);
}

/* Lists */
.fortytwo-post ul {
  list-style: disc;
  margin: 0 0 1.6em;
  padding-inline-start: 22px;
}

.fortytwo-post ul li {
  font-size: 20px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 16px;
}

.fortytwo-post ul li::marker {
  color: var(--bordertopblue);
}

/* Tables */
.fortytwo-post figure {
  margin: 1em 0;
}

.fortytwo-post table {
  width: 100%;
  margin: 0 0 1.5em;
}

.fortytwo-post table,
.fortytwo-post th,
.fortytwo-post td {
  border: 1px solid lightgray;
  padding: 4px 7px;
  font-size: 16px;
  color: #333;
  white-space: nowrap;
}

/* Privacy policy tables */
.fortytwo-post table.first-table,
.fortytwo-post table.table-two,
.fortytwo-post table.table-three {
  white-space: unset !important;
  width: 678px !important;
}

.fortytwo-post .first-table th, .fortytwo-post .first-table td,
.fortytwo-post .table-two th, .fortytwo-post .table-two td,
.fortytwo-post .table-three th, .fortytwo-post .table-three td {
  white-space: unset !important;
  width: 678px !important;
  padding: 8px;
}

.first-table, .table-two {max-width: 678px;}
.first-table {padding: 8px !important;}
.table-three td:nth-child(3) {min-width: 256px;}
.table-three td:nth-child(1) {max-width: 120px;}
td.spectd {padding-top: 20px !important; padding-bottom: 20px !important;}
.spectdmob {display: none;}

@media screen and (max-width: 980px) {
  .fortytwo-post .entry-header,
  .fortyto-text {
    max-width: 570px;
  }

  .fortytwo-post h1 {
    font-size: 24px;
    line-height: 1.2;
    margin-top: 50px;
    margin-bottom: 15px;
  }

  .fortytwo-post h2,
  .fortytwo-post h2.spec-head {
    font-size: 23px;
    line-height: 1.2;
    font-weight: 600;
  }

  .fortytwo-post h3 {
    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
  }

  .fortytwo-post p {
    font-size: 16px;
    margin-bottom: 1.5em;
  }

  .fortytwo-post ul {
    padding-inline-start: 20px;
  }

  .fortytwo-post ul li {
    font-size: 16px;
    line-height: 1.5;
  }

  .spectd div {
    width: 85vw;
  }
}

@media screen and (max-width: 650px) {
  .fortytwo-post .entry-header,
  .fortyto-text {
    max-width: var(--content-width);
  }

  .fortytwo-post h1 {
    margin-top: 30px;
  }
}

@media screen and (max-width: 580px) {
  .fortytwo-post table.table-two {
    width: 600px !important;
  }
}
