/* 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;
}

@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: var(--ink) !important;
  color: #fff !important;
  border-color: var(--ink) !important;
}

[data-theme="dark"] .hs-next-btn {
  color: #0b1220 !important;
}

.hs-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(34, 211, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 255, 0.25);
  margin-bottom: 12px;
}

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


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

/* Invite page */
.inv-logo {
  box-shadow: none !important;
  width: 100px !important;
  height: 100px !important;
  border-radius: 22px !important;
}

.inv-brand {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}

.inv-from {
  text-align: center;
  font-size: 15px;
  margin: 0 0 6px;
}

.inv-desc {
  text-align: center;
  line-height: 1.55;
  opacity: 0.5;
  margin: 0;
  font-size: 14px;
}

.inv-google-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}

.inv-google-img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.inv-hint {
  text-align: center;
  font-size: 12px;
  opacity: 0.35;
  margin-top: 14px;
}

/* 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 var(--border);
  background: var(--input-bg);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

/* Ghost checkmark hint (unchecked state) */
.legal-check input[type="checkbox"]:not(:checked) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23000' stroke-opacity='0.15' 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;
}

[data-theme="dark"] .legal-check input[type="checkbox"]:not(:checked) {
  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-opacity='0.15' 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"]: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;
}

[data-theme="dark"] .legal-check input[type="checkbox"]:checked {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%230b1220' 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: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--ink-soft);
  transition: text-decoration-color 0.15s;
}

.legal-doc-link:hover {
  text-decoration-color: var(--ink);
}
