/* =========================================================
   PRIME DATA GH - launch extras
   Loaded AFTER style.css. Only adds new classes; it does not
   override any rule in style.css. Uses the same colour tokens
   (--bg, --surface, --border, --text, --muted ...).
========================================================= */


/* ---------- Site footer (legal links) ---------- */

.site-footer {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px calc(28px + env(safe-area-inset-bottom));
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 22px;
}

.site-footer a,
.site-footer .link-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;              /* comfortable tap target */
    padding: 0;
    border: none;
    background: none;
    color: #b9c2d0;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.site-footer p {
    margin-top: 2px;
}


/* ---------- Inline field hint (recipient number) ---------- */

.field-hint {
    margin-top: 8px;
    color: #f0a0a0;
    font-size: 13px;
    line-height: 1.45;
}


/* ---------- Cookie consent banner ---------- */

.consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;                   /* above the purchase bar (10), below toast (40) and payment sheet (50/60) */
    padding: 0 12px calc(12px + env(safe-area-inset-bottom));
    pointer-events: none;
}

.consent-card {
    max-width: 456px;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 -14px 32px -14px rgba(0, 0, 0, 0.85);
    pointer-events: auto;
}

.consent-card p {
    color: #dfe5ee;
    font-size: 13.5px;
    line-height: 1.55;
}

.consent-card a {
    color: #ffffff;
    text-underline-offset: 3px;
}

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

/* two classes beat the single-class .primary-btn / .secondary-btn rules */
.consent-actions .primary-btn,
.consent-actions .secondary-btn {
    flex: 1;
    width: auto;
    height: 46px;
    margin-top: 0;
    font-size: 15px;
}


/* ---------- Legal pages (privacy, terms) ---------- */

.legal-page {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.legal-page .back-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg);
    color: var(--muted);
}

.legal-page .back-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-updated {
    margin: -8px 0 22px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.legal-content h2 {
    margin: 30px 0 10px;
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    color: #dfe5ee;
    font-size: 15px;
    line-height: 1.65;
}

.legal-content p {
    margin: 0 0 12px;
}

.legal-content ul {
    margin: 0 0 12px;
    padding-left: 22px;
}

.legal-content li {
    margin: 6px 0;
}

.legal-content a {
    color: #22c3cc;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.legal-content strong {
    color: #ffffff;
}


/* ---------- 404 page ---------- */

.notfound-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.notfound-mark {
    width: 84px;
    height: 84px;
    margin-bottom: 22px;
}

.notfound-page h1 {
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.notfound-page p {
    max-width: 320px;
    margin: 10px 0 26px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.notfound-page .primary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 320px;
    text-decoration: none;
}


@media print {
    .site-footer,
    .consent {
        display: none !important;
    }
}
