:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --surface: #fffefa;
  --ink: #283d35;
  --muted: #626c63;
  --line: #d9ddd3;
  --accent: #285b48;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #173c2e; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.home-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.search-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(120px, 35vh, 360px) 24px 100px;
}
.searchForm {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 660px;
  padding: 9px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--surface);
  box-shadow: 0 12px 32px -16px #283d3526;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.searchForm:focus-within {
  border-color: #739283;
  box-shadow: 0 0 0 3px #285b4810, 0 12px 32px -16px #283d3526;
}
.inputSearch {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 12px 0 20px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
}
.inputSearch::placeholder { color: #737a70; opacity: 1; }
.searchButton {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent) url("../images/magnifier.svg") center / 19px 19px no-repeat;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.searchButton:hover { background-color: #173e2e; }
.searchButton:active { background-color: #102e21; }
footer {
  width: min(660px, calc(100% - 48px));
  margin: 0 auto;
  padding: 25px 0 30px;
  border-top: 1px solid var(--line);
}
footer ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
footer a {
  display: inline-block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }
.legal-page { padding: 56px 24px; }
.legal-document {
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 60px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 16px 40px -28px #283d3533;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.legal-document h1 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -1px;
}
.legal-document .document-date {
  margin: 0 0 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.legal-document h2 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.5;
}
.legal-document p { margin: 0 0 18px; }
.legal-document > :last-child { margin-bottom: 0; }
.contact-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}
.contact-card {
  width: 100%;
  max-width: 480px;
  padding: 48px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 16px 40px -28px #283d3533;
}
.contact-card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.contact-card a { font-size: clamp(18px, 4vw, 24px); overflow-wrap: anywhere; }
.hidden { display: none; }
@media (max-width: 600px) {
  .search-main { padding-right: 20px; padding-left: 20px; }
  .searchForm { gap: 4px; padding: 7px; }
  .inputSearch { padding-left: 15px; font-size: 16px; }
  footer { width: calc(100% - 40px); }
  footer ul { gap: 24px; }
  .legal-page { padding: 20px 14px; }
  .legal-document { padding: 30px 24px; font-size: 14px; }
  .contact-card { padding: 32px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .searchForm, .searchButton { transition: none; }
}
