.form-legal-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-legal-note a,
.contact-form .consent a,
.legal-main a {
  color: var(--blue);
  text-underline-offset: 2px;
}

.contact-form .consent {
  line-height: 1.5;
}

.contact-form .button:disabled {
  opacity: .6;
  cursor: wait;
}

.form-note.is-error {
  color: #a12626;
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.footer-legal a,
.footer-legal button {
  color: var(--muted) !important;
  font: inherit;
  font-size: 12px;
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: var(--blue) !important;
}

.footer-legal button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.legal-header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.legal-header nav a {
  color: #404b5d;
  font-size: 14px;
  text-decoration: none;
}

.legal-header nav a:hover,
.legal-header nav a[aria-current] {
  color: var(--blue);
}

.legal-main {
  max-width: 920px;
  padding-top: 88px;
  padding-bottom: 110px;
}

.legal-main h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
}

.legal-lead {
  max-width: 760px;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 19px;
}

.legal-main section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal-main section h2 {
  margin-bottom: 14px;
  font-size: clamp(23px, 2.5vw, 31px);
  letter-spacing: -.04em;
}

.legal-main section p,
.legal-note {
  max-width: 780px;
  color: #3d485a;
  font-size: 16px;
  line-height: 1.75;
}

.legal-main section p:last-child {
  margin-bottom: 0;
}

.legal-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.legal-facts p {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 20px;
  border-radius: 14px;
  background: var(--mist);
}

.legal-facts strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.legal-main th,
.legal-main td {
  min-width: 150px;
  padding: 15px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-main th {
  background: var(--mist);
}

.legal-note {
  padding: 20px 24px;
  border-radius: 14px;
  background: #edf3ff;
}

.legal-main code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--mist);
  font-size: .9em;
}

.legal-action {
  display: inline-flex;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  background: var(--blue);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.legal-footer {
  border-top: 1px solid var(--line);
}

.legal-footer .container {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.legal-footer .container > a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 22px 24px;
  overflow: auto;
  border: 1px solid #304568;
  border-radius: 18px;
  color: #fff;
  background: #101d37;
  box-shadow: 0 18px 50px rgba(4, 12, 28, .28);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0 0 5px;
  font-size: 20px;
  letter-spacing: -.03em;
}

.cookie-banner p {
  max-width: 650px;
  margin: 0;
  color: #ced8ea;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-banner a {
  color: #a8c8ff;
}

.cookie-actions {
  display: flex;
  flex: none;
  gap: 9px;
}

.cookie-actions button {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #91a6c7;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-actions button[data-cookie-allow] {
  border-color: var(--blue);
  background: var(--blue);
}

@media (max-width: 800px) {
  .legal-header nav { gap: 12px; }
  .legal-main { padding-top: 60px; padding-bottom: 80px; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .legal-footer .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .legal-header nav a { font-size: 12px; }
  .legal-header nav a:not(:first-child) { display: none; }
  .legal-facts { grid-template-columns: 1fr; }
  .cookie-banner { right: 12px; bottom: 12px; left: 12px; width: calc(100% - 24px); padding: 18px; }
  .cookie-actions { flex-direction: column; }
}
