/* public/css/public/legal.css
   Legal + Support + Accept Terms pages (v1)
*/

.page-legal .app-main {
  padding-top: 14px;
}

.legal {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.legal-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 900px) {
  .legal-card {
    padding: 22px;
  }
}

.legal-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.legal-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.legal-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.2px;
}

@media (min-width: 900px) {
  .legal-title {
    font-size: 30px;
  }
}

.legal-sub {
  margin: 0 0 14px;
  opacity: 0.85;
  line-height: 1.55;
  max-width: 75ch;
}

.legal-h2 {
  margin: 18px 0 8px;
  font-size: 16px;
  font-weight: 950;
}

.legal-p {
  margin: 0 0 10px;
  opacity: 0.88;
  line-height: 1.6;
}

.legal-ul {
  margin: 0 0 10px;
  padding-left: 18px;
  opacity: 0.88;
  line-height: 1.65;
}

.legal-hr {
  height: 1px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  margin: 16px 0;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* ============================================================
   Homescreen prompt
============================================================ */

.hs-prompt {
  display: flex;
  justify-content: center;
}

.hs-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.hs-app-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.hs-app-icon {
  width: 160px;
  height: 160px;
  border-radius: 36px;
  object-fit: cover;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255,255,255,0.12);
}

.hs-how {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hs-inline-share {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  color: var(--accent, #22d3ff);
  flex-shrink: 0;
}

.hs-next-btn {
  background: #0b1220 !important;
  color: #fff !important;
  border-color: #0b1220 !important;
}

.hs-title {
  text-align: center;
}


.hs-card .legal-actions {
  justify-content: center;
}

/* accept terms form helpers */
.legal-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}

.legal-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 6px;
  border: 2px solid rgba(11, 18, 32, 0.35);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.legal-check input[type="checkbox"]:checked {
  background: #0b1220;
  border-color: #0b1220;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' fill='none' d='M3 8l3.5 3.5L13 4.5'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: center;
}

.legal-check input[type="checkbox"]:focus-visible {
  outline: 2px solid #22d3ff;
  outline-offset: 2px;
}

.legal-doc-link {
  color: #0b1220;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(11, 18, 32, 0.45);
  transition: text-decoration-color 0.15s;
}

.legal-doc-link:hover {
  text-decoration-color: #0b1220;
}
