* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	background: #f3f5f9;
	color: #1f2937;
}

main {
  min-height: 100dvh;
  width: 100%;
}

.container {
	max-width: 640px;
	margin: 48px auto;
	padding: 28px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

h1 {
	margin: 0 0 20px;
	font-size: 1.75rem;
	line-height: 1.2;
  margin-inline: auto;
}

form {
	display: grid;
	gap: 12px;
}

label {
	font-weight: 600;
	font-size: 0.95rem;
}

input,
select,
textarea,
button {
	font: inherit;
}

input,
select,
textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	color: #111827;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

textarea {
	resize: vertical;
	min-height: 120px;
}

button {
	margin-top: 6px;
	padding: 11px 16px;
	border: none;
	border-radius: 8px;
	background: #2563eb;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.06s ease;
}

button:hover {
	background: #1d4ed8;
}

button:active {
	transform: translateY(1px);
}

header {
	width: 100%;
  padding: 20px 40px;
  background: #fff;
  border: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
	display: flex;
	align-items: left;
	gap: 20px;
	position: sticky;
	top: 0;
}

header h1 {
	margin: 0;
}

.page-header__link {
	display: block;
	width: fit-content;
	height: fit-content;
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f3f5f9;
	color: #1f2937;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.2s ease, transform 0.06s ease;
}

.page-header__link:hover {
	background: #e5e7eb;
}

.page-header__link:active {
	transform: translateY(1px);
}

footer {
  width: 100%;
  padding: 20px 0;
  background: #fff;
  border: none;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.footer__list-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.footer__list-label {
  font-weight: 600;
  color: gray;
  margin-bottom: 16px;
}

.footer__list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.footer__list li + li:before {
  content: "•";
  color: darkgray;
  margin-right: 10px;
}

.footer__list a {
  color: darkgray;
  text-decoration: none;
}

.footer__list a:hover {
  text-decoration: underline;
  color: gray;
}

.legal-content {
	line-height: 1.65;
	font-size: 1rem;
	color: #1f2937;
}

.legal-content h2 {
	margin: 20px 0 10px;
	font-size: 1.1rem;
	line-height: 1.3;
}

.legal-content h2:first-child {
	margin-top: 0;
}

.legal-content p {
	margin: 0 0 14px;
}

.legal-list {
	margin: 0 0 18px;
	padding-left: 20px;
}

.legal-list li {
	margin-bottom: 10px;
}

.legal-list li:last-child {
	margin-bottom: 0;
}

.legal-list li::marker {
	color: #9ca3af;
}

@media (max-width: 640px) {
	.container {
		margin: 20px;
		padding: 20px;
	}

	h1 {
		font-size: 1.5rem;
	}

  .footer__list-label {
    margin-bottom: 18px;
  }

  .footer__list {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer__list li + li:before {
    content: "";
    margin: 0;
  }
}