* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.65;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }

img, svg { max-width: 100%; height: auto; }

button,
.button {
  font: inherit;
  cursor: pointer;
}

.field-error { color: #9b2c2c; font-size: 0.9rem; }

[data-form-status] { font-weight: 700; }

form { display: grid; gap: 0.8rem; max-width: 36rem; }

label { display: grid; gap: 0.3rem; }

input, textarea, select {
  font: inherit;
  padding: 0.7rem 0.8rem;
}

footer,
.site-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-areas: "about quick policies share" "legal legal legal legal" !important;
  column-gap: 2.5rem !important;
  row-gap: 1.75rem !important;
  align-items: start !important;
  width: auto !important;
  margin: 0 !important;
  padding: 3rem max(1.25rem, calc((100% - 1120px) / 2)) 1.4rem !important;
  background: #fff;
  color: var(--color-text, #333);
}

[data-footer-about] { grid-area: about; }
[data-footer-quick] { grid-area: quick; }
[data-footer-policies] { grid-area: policies; }
[data-footer-share] { grid-area: share; }
[data-footer-legal] {
  grid-area: legal;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--color-border, #e0e0e0);
}

footer h2,
.site-footer h2 {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text, #333);
}

footer p,
.site-footer p {
  margin: 0;
  max-width: 36rem;
  color: var(--color-text-muted, #666);
}

[data-footer-quick],
[data-footer-policies] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

.footer-links a {
  display: block !important;
  width: 100%;
  padding: 0.4rem 0;
  line-height: 1.45;
  text-decoration: none;
}

[data-footer-quick] a:not(.logo-link),
[data-footer-policies] a,
[data-footer-share] > a {
  display: block !important;
  width: 100%;
  padding: 0.4rem 0;
  text-decoration: none;
}

footer a,
.site-footer a {
  color: var(--color-text, #333);
  text-decoration: none;
}

footer a:hover,
.site-footer a:hover {
  color: var(--color-primary, #8b1538);
}

@media (max-width: 860px) {
  footer,
  .site-footer {
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas: "about about" "quick policies" "share share" "legal legal" !important;
  }
}

@media (max-width: 560px) {
  footer,
  .site-footer {
    padding-inline: 0.75rem !important;
    grid-template-columns: 1fr !important;
    grid-template-areas: "about" "quick" "policies" "share" "legal" !important;
  }
}
