:root {
  font-family: system-ui, sans-serif;
  line-height: 1.55;
  color: #17242b;
  background: #fff;
}

body {
  margin: 0;
}

a {
  color: #105475;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 2px solid #105475;
  outline-offset: 3px;
}

h1 {
  margin: 0;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.2;
  color: #103e57;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

.homepage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 65rem;
  margin-inline: auto;
  padding: clamp(2rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem);
}

.homepage .logo {
  max-width: 32rem;
}

.company {
  text-align: right;
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
}

address {
  margin-top: 0.625rem;
  font-style: normal;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact li:first-child {
  flex-basis: 100%;
}

.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
}

.uid {
  margin: 1rem 0 0;
  font-size: 1rem;
}

.terms-page {
  max-width: 72ch;
  margin-inline: auto;
  padding: 2rem 1.25rem 3rem;
  overflow-wrap: break-word;
}

.terms-header {
  margin-bottom: 2rem;
}

.terms-header .logo {
  width: 9rem;
  margin-bottom: 0.75rem;
}

.terms-page article > header p {
  margin-top: 0.5rem;
}

.terms-page h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #103e57;
}

.terms-page section p {
  margin: 0.65rem 0;
}

.clause-number {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 44rem) {
  .homepage {
    grid-template-columns: 1fr;
    max-width: 30rem;
  }

  .homepage .logo {
    max-width: 19rem;
  }

  .company {
    text-align: left;
  }

  .contact {
    justify-content: flex-start;
  }
}

@media print {
  .terms-page {
    max-width: none;
    padding: 0;
  }

  .terms-header {
    margin-bottom: 1rem;
  }

  .terms-header a {
    display: none;
  }

  .terms-page h2 {
    break-after: avoid;
  }
}
