/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fff;
  color: #333;
  font: 16px/1.6 Arial, Helvetica, sans-serif;
}

a {
  color: #52505d;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a img {
  border: 0;
  vertical-align: top;
}
img {
  max-width: 100%;
  height: auto;
}
:focus {
  outline: none;
}

/* HEADINGS */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.4em;
  line-height: 1.3em;
  font-weight: bold;
}
h1 {
  font-size: 2em;
}
h2 {
  font-size: 1.7em;
}
h3 {
  font-size: 1.4em;
}
p {
  margin-bottom: 1em;
}

/* LAYOUT CONTAINERS */
.wrapper {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px;
}
.header,
.middle,
.footer {
  width: 100%;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: nowrap;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  width: 214px;
  height: auto;
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
}

.nav li {
  font-size: 1.2em;
  font-weight: bold;
  line-height: 1.6;
}

.nav li a {
  text-decoration: none;
}

/* MIDDLE */
.middle-container {
  min-height: 400px;
  border-top: 1px solid #cacaca;
  border-bottom: 1px solid #cacaca;
}
.col-main {
  padding: 20px 0;
}
.group2 {
  text-align: justify;
  margin: 20px 0 30px;
}
.group2 p {
  font-size: 1em;
  margin-bottom: 1em;
}

/* FOOTER */
.footer {
  padding-top: 15px;
  font-weight: bold;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.footer-info {
  list-style: none;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.footer-info li {
  font-size: 0.95em;
}
.footer .legality {
  font-size: 0.95em;
}

/* RESPONSIVE DESIGN */
@media only screen and (max-width: 1024px) {
  .wrapper {
    padding: 0 20px;
  }
}

@media only screen and (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-nav {
    justify-content: center;
    margin-top: 15px;
    width: 100%;
  }

  .nav {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-info {
    justify-content: center;
  }

  .footer-info li {
    padding: 5px 10px;
  }

  .footer .legality {
    padding: 10px 0;
  }
}

@media only screen and (max-width: 480px) {
  body {
    font-size: 15px;
  }

  h2 {
    font-size: 1.3em;
  }

  .group2 p {
    font-size: 0.95em;
  }
}