:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #293c34;
  background: #f5f4ef;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #315f4c; text-underline-offset: 4px; }
a:hover { color: #173f2d; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #8cae9b;
  outline-offset: 5px;
}

.search-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.searchForm {
  display: flex;
  width: min(640px, calc(100% - 40px));
  margin: auto;
  padding: 7px;
  border: 1px solid #d6ddd5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 36px #263e2f08;
  transform: translateY(-3vh);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.searchForm:focus-within {
  border-color: #719681;
  box-shadow: 0 0 0 4px #315f4c0a, 0 10px 36px #263e2f08;
}
.inputSearch {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 19px;
  border: 0;
  border-radius: 13px;
  outline: none;
  background: transparent;
  color: #293c34;
  font: inherit;
  font-size: 18px;
}
.inputSearch::placeholder { color: #68736b; opacity: 1; }
.searchButton {
  flex: 0 0 62px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: #315f4c url("../images/magnifier.svg") center / 22px 22px no-repeat;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.searchButton:hover { background-color: #234b3a; }
.searchButton:active { background-color: #183c2c; }
.search-page footer { padding: 24px 20px 30px; }
.search-page nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.search-page footer a {
  color: #68736b;
  font-size: 12px;
  line-height: 1.6;
  text-decoration: none;
}
.search-page footer a:hover { color: #315f4c; text-decoration: underline; }

.document-page { padding: 64px 24px; }
.legal-document {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 64px;
  border: 1px solid #dce0d7;
  border-top: 4px solid #315f4c;
  border-radius: 4px;
  background: #fff;
}
.legal-document h1 {
  margin: 0 0 12px;
  color: #244734;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 400;
  line-height: 1.2;
}
.legal-document .modified {
  margin: 0 0 36px;
  color: #68736b;
  font-size: 12px;
}
.legal-document h2 {
  margin: 32px 0 12px;
  color: #244734;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}
.legal-document p {
  margin: 0 0 16px;
  color: #4f5b53;
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.legal-document > :last-child { margin-bottom: 0; }
.legal-document a { overflow-wrap: anywhere; }

.contact-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
  place-items: center;
}
.contact-card {
  width: min(100%, 480px);
  padding: 48px;
  border: 1px solid #dce0d7;
  border-top: 4px solid #315f4c;
  border-radius: 4px;
  background: #fff;
}
.contact-card p { margin: 0 0 18px; color: #68736b; font-size: 14px; }
.contact-card a { font-size: clamp(17px, 4vw, 22px); overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .inputSearch { height: 50px; padding: 0 12px; font-size: 16px; }
  .searchButton { flex-basis: 54px; height: 50px; }
  .searchForm { border-radius: 18px; }
  .document-page { padding: 20px 16px; }
  .legal-document { padding: 30px 24px; }
  .contact-card { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .searchForm, .searchButton { transition: none; }
}
