/* Compact footer and plain legal-document presentation. */
.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 6px 14px;
  border-top: 1px solid var(--line);
  padding: 12px clamp(16px, 4vw, 52px);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.footer span:first-child {
  text-transform: none;
}

.footer-main {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: none;
}

.footer-brand-icon {
  width: 24px;
  height: 24px;
}

.footer-main > span:not(.footer-brand) {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

.seller-details {
  display: flex;
  min-width: 0;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 10px;
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
  line-height: 1.25;
  opacity: 0.76;
}

.seller-details span:first-child {
  color: var(--muted);
  font-weight: 650;
  text-transform: none;
}

.seller-details strong {
  color: var(--ink);
  font-weight: 760;
}

.footer-docs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px 9px;
  font-size: 10.5px;
}

.footer-docs span {
  width: 100%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  opacity: 0.72;
  text-transform: uppercase;
}

.footer-docs a {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
}

.footer-docs a:hover,
.footer-docs a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.legal-page {
  background: #fff;
  color: #111827;
}

.legal-page .site-header {
  position: static;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  padding: 14px min(40px, 5vw);
  backdrop-filter: none;
}

.legal-page .nav a {
  color: #111827;
  text-decoration: underline;
}

.legal-shell {
  display: grid;
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  gap: 20px;
  padding: 28px 0 56px;
}

.legal-hero {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 16px;
}

.legal-hero h1 {
  width: auto;
  max-width: none;
  margin: 0;
  background: none;
  color: #111827;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: none;
  animation: none;
}

.legal-hero p,
.legal-doc p,
.legal-doc li,
.legal-meta span {
  color: #1f2937;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.58;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 0;
}

.legal-nav a,
.legal-lang {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.legal-nav a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-lang {
  color: #6b7280;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-doc {
  display: grid;
  gap: 18px;
  margin-top: 0;
}

.legal-doc section,
.legal-notice {
  display: grid;
  gap: 8px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  padding: 0;
}

.legal-doc section + section {
  margin-top: 0;
}

.legal-doc h2 {
  margin: 8px 0 0;
  color: #111827;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.3;
  text-transform: none;
}

.legal-doc h3 {
  margin: 8px 0 0;
  color: #111827;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.35;
}

.legal-doc p,
.legal-doc ul,
.legal-doc ol {
  margin: 0;
}

.legal-doc ul,
.legal-doc ol {
  display: grid;
  gap: 4px;
  padding-left: 21px;
}

.legal-meta {
  display: grid;
  gap: 4px;
  margin-top: 0;
  border: 0 !important;
  border-left: 2px solid #d1d5db !important;
  background: transparent !important;
  padding: 0 0 0 12px;
}

.legal-doc[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .footer {
    grid-template-columns: minmax(240px, 1fr) minmax(0, 1.2fr);
  }

  .footer-docs {
    justify-content: flex-end;
  }

  .seller-details {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .footer-main,
  .seller-details,
  .footer-docs {
    width: 100%;
  }

  .legal-shell {
    width: min(100% - 24px, 860px);
    padding-top: 22px;
  }
}

/* Main page active overrides for the current design pass. */
.hero {
  padding-top: clamp(18px, 3.2vh, 38px);
  padding-bottom: clamp(14px, 2.8vh, 28px);
  row-gap: clamp(14px, 2.4vw, 24px);
}

.hero-visual {
  min-height: clamp(310px, 42vh, 390px);
}

.hero-touch-art {
  max-height: min(420px, 42vh);
}

.top-human {
  margin-top: 0;
}

.donor-chip,
.donor-chip .avatar-badge-wrap,
.donor-chip .donor-avatar-frame {
  overflow: visible;
}

.donor-chip {
  grid-template-columns: 34px 72px minmax(0, 1fr);
}

.donor-chip .donor-avatar-frame {
  justify-self: start;
}

.donation-picker .tier-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(141, 187, 128, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  padding: 8px 10px;
}

.donation-picker .tier-option:has(input:checked) {
  border-color: rgba(141, 187, 128, 0.52);
  background: rgba(141, 187, 128, 0.09);
  box-shadow: inset 0 0 0 1px rgba(141, 187, 128, 0.14);
}

.tier-option-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.tier-pogon-preview {
  justify-self: end;
  width: auto;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.32));
  pointer-events: none;
}

.join-form .photo-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.photo-upload-zone {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px dashed rgba(141, 187, 128, 0.38);
  border-radius: 10px;
  background:
    radial-gradient(circle at 8% 20%, rgba(141, 187, 128, 0.12), transparent 30%),
    rgba(0, 0, 0, 0.24);
  padding: 12px;
  cursor: pointer;
  overflow: hidden;
}

.photo-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-upload-zone input[type="file"]:disabled {
  cursor: not-allowed;
}

.photo-upload-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(141, 187, 128, 0.38);
  border-radius: 10px;
  background: rgba(141, 187, 128, 0.1);
  color: var(--join-green-top, #8dbb80);
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.photo-upload-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.photo-upload-copy strong {
  color: var(--text-color, #e5e5e5);
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
}

.photo-upload-copy small {
  color: rgba(229, 229, 229, 0.62);
  line-height: 1.35;
}

.photo-upload-button {
  border: 1px solid rgba(141, 187, 128, 0.42);
  border-radius: 10px;
  background: rgba(141, 187, 128, 0.1);
  color: var(--join-green-top, #8dbb80);
  padding: 9px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.locked-field:not(.is-unlocked) .photo-upload-zone {
  opacity: 0.46;
  cursor: not-allowed;
}

.locked-field.is-unlocked .photo-upload-zone:hover,
.locked-field.is-unlocked .photo-upload-zone:focus-within {
  border-color: var(--join-green-top, #8dbb80);
  box-shadow: 0 0 18px rgba(141, 187, 128, 0.12);
}

.glitch-card .photo-cropper {
  border-color: rgba(141, 187, 128, 0.26);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
}

.glitch-card .photo-cropper canvas {
  border-color: rgba(141, 187, 128, 0.42);
  background: #050505;
}

html[lang="en"] .legal-consent-ru,
html[lang="ru"] .legal-consent-en {
  display: none;
}

.legal-consent-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.legal-consent-text a {
  color: var(--join-green-top, #8dbb80);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-readable .section-heading h2 {
  max-width: 860px;
}

.ai-readable .section-heading p {
  max-width: 900px;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.6;
}

.rules .section-heading .eyebrow {
  color: var(--muted);
}

@media (max-width: 760px) {
  .photo-upload-zone,
  .donation-picker .tier-option {
    grid-template-columns: 1fr;
  }

  .tier-pogon-preview {
    justify-self: start;
  }

  .photo-upload-button {
    justify-self: start;
  }
}
