.operator-licence-document {
  box-sizing: border-box;
  width: min(760px, calc(100vw - 30px));
  max-height: 92vh;
  padding: 0;
  overflow: auto;
  border: 8px solid #e8e3d3;
  background: #fdfcf7;
  color: #182c28;
  box-shadow: 0 22px 70px #061b164d;
}

.operator-licence-document::before {
  display: none;
  content: none;
}

.operator-licence-document > .modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}

.operator-licence-document > header {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 28px 32px;
  border: 0;
  border-bottom: 6px solid var(--gold);
  background: var(--green);
  color: #fff;
  text-align: left;
}

.operator-licence-document > header h2 {
  margin: 18px 45px 8px 0;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1.15;
}

.operator-licence-document > header p {
  margin: 0 0 10px;
  color: #d7e4df;
}

.licence-document-grid {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin: 0;
  border: 0;
  border-right: 1px solid #a99c78;
  border-left: 1px solid #a99c78;
  background: #fffdf8;
}

.licence-document-grid > span {
  box-sizing: border-box;
  min-width: 0;
  padding: 16px 20px;
  border: 0;
  border-right: 1px solid #a99c78;
  border-bottom: 1px solid #a99c78;
  background: #fffdf8;
}

.licence-document-grid > span:nth-child(2n) {
  border-right: 0;
}

.licence-tm-list {
  display: grid;
  gap: 6px;
  margin-top: 5px;
}

.licence-tm-list > span {
  display: block;
  padding-bottom: 6px;
  border-bottom: 1px dotted #c4b999;
}

.licence-tm-list > span:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.licence-tm-list b,
.licence-tm-list em {
  display: block;
}

.licence-tm-list b {
  margin-top: 0;
}

.licence-tm-list em {
  margin-top: 2px;
  color: #766c55;
  font-size: 8px;
  font-style: normal;
}

.operator-licence-document > section.licence-centres,
.operator-licence-document > section.licence-undertakings {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 20px 24px;
  border: 0;
  border-right: 1px solid #a99c78;
  border-bottom: 1px solid #a99c78;
  border-left: 1px solid #a99c78;
  background: #fffdf8;
}

.licence-centres > span {
  box-sizing: border-box;
  width: 100%;
}

.licence-signature {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 22px 24px;
  border-right: 1px solid #a99c78;
  border-bottom: 1px solid #a99c78;
  border-left: 1px solid #a99c78;
  background: #fffdf8;
}

.operator-licence-document > footer {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border: 0;
}

@media (max-width: 700px) {
  .operator-licence-document {
    border-width: 5px;
  }

  .operator-licence-document > header {
    padding: 24px 20px;
  }

  .operator-licence-document > header h2 {
    font-size: 23px;
  }

  .licence-document-grid {
    grid-template-columns: 1fr;
  }

  .licence-document-grid > span {
    border-right: 0;
  }

  .operator-licence-document > section.licence-centres,
  .operator-licence-document > section.licence-undertakings,
  .licence-signature {
    padding: 18px 20px;
  }

  .licence-signature {
    display: grid;
  }
}
