.policy-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.45;
}

.policy-consent input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.policy-consent a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(89, 238, 199, .42);
}

.policy-consent a:hover {
  border-bottom-color: var(--accent);
}

.consent-error {
  display: block;
  margin-top: -4px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.consent-submit-wrap {
  display: grid;
}

.consent-submit-wrap .primary {
  width: 100%;
}

#registerForm.auth-form.active {
  max-height: 520px;
}

.profile-intro-card {
  width: min(660px, 100%);
  overflow: hidden;
}

.profile-intro-card .panel-head {
  align-items: start;
}

.profile-intro-card .info-copy {
  gap: 14px;
}

.profile-intro-card .intro-lead {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.55;
}

.profile-intro-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-intro-points li {
  position: relative;
  padding: 12px 12px 12px 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-bg);
  color: var(--muted);
  line-height: 1.45;
}

.profile-intro-points li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 0 18px rgba(89, 238, 199, .35);
  transform: rotate(45deg);
}

.profile-intro-note {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(242, 179, 93, .24);
  border-radius: 8px;
  background: rgba(242, 179, 93, .08);
  color: var(--text);
  line-height: 1.5;
}

.profile-intro-actions {
  justify-content: flex-end;
}

.header-contacts {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
}

body.is-authed .header-contacts {
  display: flex;
}

.header-contacts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  max-width: 250px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field-bg);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  transition: transform .18s, border-color .18s, background .18s;
}

.header-contacts a:hover {
  transform: translateY(-1px);
  border-color: rgba(89, 238, 199, .42);
  background: rgba(89, 238, 199, .08);
}

.contacts-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(89, 238, 199, .1), transparent 42%),
    linear-gradient(245deg, rgba(242, 179, 93, .12), transparent 38%),
    var(--panel-bg);
}

.contacts-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(89, 238, 199, .28), rgba(242, 179, 93, .22));
  opacity: .16;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}

.contacts-panel .panel-head {
  position: relative;
  margin-bottom: 16px;
}

.contact-links {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contact-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(89, 238, 199, .4);
  background: rgba(89, 238, 199, .08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

.contact-card.support:hover {
  border-color: rgba(242, 179, 93, .46);
  background: rgba(242, 179, 93, .08);
}

.contact-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #07110d;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(89, 238, 199, .16);
}

.contact-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 1.15;
}

.contact-card small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.35;
}

.freedom-footer {
  display: none;
  margin-top: 26px;
}

body.is-authed .freedom-footer {
  display: block;
}

.footer-contacts {
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  body.is-authed .header-contacts {
    order: 3;
    flex-basis: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .freedom-header {
    flex-wrap: wrap;
  }

  .header-contacts a {
    max-width: none;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }
}
