/* ============================================================================
   Static pages — Terms of Use, Privacy Policy, Contact
   Uses the Aistarlets design tokens (see aistarlets.css).
   ============================================================================ */

/* The app shell hides every scrollbar (see aistarlets.css). These pages are
   long-form reading, so bring a slim one back — otherwise there's no cue that
   the document continues. */
html:has(body.pg-page) {
    scrollbar-width: auto;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
html:has(body.pg-page)::-webkit-scrollbar,
body.pg-page::-webkit-scrollbar {
    display: block;
    width: 10px;
    height: 10px;
}
html:has(body.pg-page)::-webkit-scrollbar-track,
body.pg-page::-webkit-scrollbar-track { background: transparent; }
html:has(body.pg-page)::-webkit-scrollbar-thumb,
body.pg-page::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .16);
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: 100px;
}
html:has(body.pg-page)::-webkit-scrollbar-thumb:hover,
body.pg-page::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .3); background-clip: content-box; }

.pg-stage {
    display: flex;
    justify-content: center;
    padding: 20px 18px 8px;
}
.pg-card {
    width: 100%;
    max-width: 720px;
    padding: 30px 26px 32px;
    border-radius: 24px;
    background: var(--ast-surface);
    border: 1px solid var(--ast-line);
    box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8);
}
.pg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ast-text-2);
}
.pg-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ast-accent-a);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--ast-accent-a) 26%, transparent);
}
.pg-title {
    margin: 0 0 10px;
    font-weight: 800;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #fff;
}
.pg-lead {
    margin: 0 0 24px;
    color: var(--ast-text-2);
    font-size: 15px;
    line-height: 1.6;
}
.pg-body p { margin: 0 0 14px; color: var(--ast-text-2); line-height: 1.7; }
.pg-body h2 {
    margin: 30px 0 12px;
    font-size: 17px;
    font-weight: 800;
    color: var(--ast-text);
    scroll-margin-top: 80px;
}
.pg-body h2:first-child { margin-top: 0; }
.pg-body h3 {
    margin: 20px 0 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ast-text);
}
.pg-body ul,
.pg-body ol { margin: 0 0 16px; padding-left: 20px; }
.pg-body li { margin-bottom: 7px; color: var(--ast-text-2); line-height: 1.7; }
.pg-body a { color: var(--ast-accent-a); }

/* Company details that must not be copy-pasteable: selection is disabled and a
   transparent shield sits over the block so a drag can't start inside it. The
   Contact link is lifted above the shield so it remains clickable. */
.pg-nocopy {
    position: relative;
    margin-bottom: 14px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.pg-nocopy p:last-child { margin-bottom: 0; }
.pg-nocopy ::selection { background: transparent; }
.pg-nocopy-shield {
    position: absolute;
    inset: -4px;
    z-index: 2;
}
.pg-nocopy-link {
    position: relative;
    z-index: 3;
    -webkit-user-select: none;
    user-select: none;
}

.pg-updated {
    margin: 0 0 24px;
    color: var(--ast-muted);
    font-size: 13px;
}

/* Placeholder notice for legal copy that is still being drafted. */
.pg-placeholder {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--ast-r-md);
    background: var(--ast-surface-soft);
    border: 1px solid var(--ast-line);
    color: var(--ast-text-2);
    font-size: 14px;
    line-height: 1.6;
}
.pg-placeholder svg { width: 20px; height: 20px; flex: none; color: var(--ast-accent-a); }

.pg-meta {
    margin: 26px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--ast-line-soft);
    color: var(--ast-muted);
    font-size: 12.5px;
    line-height: 1.6;
}
.pg-meta a { color: var(--ast-accent-a); }

/* ---------- Contact form ---------- */
.pg-field { margin-bottom: 16px; }
.pg-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .02em;
    color: var(--ast-text-2);
}
.pg-input,
.pg-textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: var(--ast-r-md);
    border: 1px solid var(--ast-line-strong);
    background: var(--ast-surface-soft);
    color: var(--ast-text);
    font-family: var(--ast-font);
    font-size: 15px;
    outline: none;
    transition: border-color .18s ease, background .18s ease;
}
.pg-input:focus,
.pg-textarea:focus {
    border-color: var(--ast-accent-a);
    background: var(--ast-surface-hover);
}
.pg-textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.pg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pg-errors {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: var(--ast-r-md);
    background: color-mix(in oklab, var(--ast-danger) 14%, transparent);
    border: 1px solid color-mix(in oklab, var(--ast-danger) 34%, transparent);
    color: var(--ast-text);
    font-size: 13.5px;
    line-height: 1.5;
}
.pg-errors ul { margin: 0; padding-left: 18px; }
.pg-submit { width: 100%; margin-top: 6px; }

.pg-contact-facts {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--ast-line-soft);
}
.pg-fact {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--ast-text-2);
    font-size: 13.5px;
    line-height: 1.6;
}
.pg-fact svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--ast-muted); }
.pg-fact strong { display: block; color: var(--ast-text); font-size: 13px; }
