:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --surface: #fffefa;
  --ink: #263b33;
  --muted: #666f65;
  --line: #d9ddd1;
  --accent: #305945;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #172f24; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
.search-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.search-area {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 24px;
}
.searchForm {
  display: flex;
  align-items: center;
  width: min(100%, 620px);
  padding: 8px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(38, 59, 51, .045);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.searchForm:focus-within {
  border-color: #6b8774;
  box-shadow: 0 0 0 4px rgba(48, 89, 69, .07), 0 8px 28px rgba(38, 59, 51, .045);
}
.inputSearch {
  min-width: 0;
  flex: 1;
  height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
}
.inputSearch::placeholder { color: var(--muted); opacity: 1; }
.searchButton {
  flex: 0 0 58px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: var(--accent) url("../images/magnifier.svg") center / 21px 21px no-repeat;
  cursor: pointer;
  transition: background-color .18s ease;
}
.searchButton:hover { background-color: #234332; }
.searchButton:active { background-color: #192f24; }
footer { padding: 24px 24px 30px; }
footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
footer a {
  color: var(--muted);
  font-size: 12px;
  line-height: 24px;
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }
.legal-page { padding: 64px 24px; }
.legal-document {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 56px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.legal-document h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.legal-document .modified {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 12px;
}
.legal-document h2 {
  margin: 32px 0 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.4;
}
.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: min(100%, 480px);
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.contact-card p { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.contact-card a { font-size: clamp(17px, 4vw, 24px); overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .search-area { padding: 24px 20px; }
  .searchForm { padding: 6px; border-radius: 19px; }
  .inputSearch { height: 50px; padding: 0 14px; font-size: 16px; }
  .searchButton { flex-basis: 52px; height: 50px; border-radius: 13px; }
  .legal-page { padding: 20px 12px; }
  .legal-document { padding: 28px 22px; border-radius: 16px; }
  .contact-card { padding: 30px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .searchForm, .searchButton { transition: none; }
}
