/* ============================================================
   IMStudio — legal & trust pages
   Built from the app's own tokens (style.css :root) so these
   pages read as part of the product. Self-contained: no
   dependency on the main stylesheet.
   ============================================================ */

:root {
    --bg: #f2efe8;
    --ink: #2b2b2b;
    --mid: #c2c2c2;
    --light: #faf9f5;
    --danger-color: #cc4444;
    --action-color: #4477cc;
    --hairline: color-mix(in srgb, var(--ink) 14%, transparent);
    --ink-06: color-mix(in srgb, var(--ink) 6%, transparent);
    --ink-55: color-mix(in srgb, var(--ink) 55%, transparent);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1e1e21;            /* pasteboard floor */
        --ink: #e8e6e1;
        --mid: #4a4a4f;
        --light: #26262a;
        --action-color: #7ea3e0;
        --hairline: color-mix(in srgb, var(--ink) 16%, transparent);
        --ink-06: color-mix(in srgb, var(--ink) 8%, transparent);
        --ink-55: color-mix(in srgb, var(--ink) 60%, transparent);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'IMS Sans', 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------- header: wordmark + document strip ---------- */

.site-head {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.wordmark {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .34em;
    text-decoration: none;
    color: var(--ink);
    white-space: nowrap;
}

.doc-strip {
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--hairline);
    border-radius: 9px;
    background: var(--light);
}

.doc-strip a {
    color: var(--ink-55);
    text-decoration: none;
    font-size: 12.5px;
    padding: 5px 10px;
    border-radius: 7px;
    transition: background-color 110ms ease, color 110ms ease;
    white-space: nowrap;
}

.doc-strip a:hover { background: var(--ink-06); color: var(--ink); }
.doc-strip a[aria-current="page"] { background: var(--ink-06); color: var(--ink); font-weight: 600; }
.doc-strip a:focus-visible,
a:focus-visible { outline: 2px solid var(--action-color); outline-offset: 2px; border-radius: 7px; }

/* ---------- document ---------- */

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 24px;
}

.doc-eyebrow {
    font-size: 11.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-55);
    margin: 0 0 10px;
}

h1 {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.2;
    margin: 0 0 6px;
}

.doc-dates {
    font-size: 13px;
    color: var(--ink-55);
    margin: 0 0 34px;
}

h2 {
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -.01em;
    margin: 38px 0 10px;
}

p { margin: 0 0 14px; }
main a { color: var(--action-color); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 7px; }

/* the promise plate — one sentence set like an instrument label */
.plate {
    background: var(--light);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 16px 18px;
    margin: 22px 0;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -.005em;
    line-height: 1.5;
}
.plate small {
    display: block;
    margin-top: 6px;
    font-weight: 400;
    font-size: 13px;
    color: var(--ink-55);
}

/* license cards */
.credit {
    background: var(--light);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 12px;
}
.credit h3 { margin: 0 0 3px; font-size: 15px; font-weight: 600; }
.credit .credit-meta { font-size: 13px; color: var(--ink-55); margin: 0 0 6px; }
.credit p { font-size: 14px; margin: 0 0 6px; }
.credit p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

.site-foot {
    max-width: 720px;
    margin: 0 auto;
    padding: 10px 20px 48px;
    border-top: 1px solid var(--hairline);
    font-size: 13px;
    color: var(--ink-55);
}
.site-foot p { margin: 14px 0 0; }
.site-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-foot a:hover { color: var(--ink); }

@media (max-width: 560px) {
    .site-head { justify-content: center; }
    .doc-strip { overflow-x: auto; max-width: 100%; }
    main { padding-top: 30px; }
    h1 { font-size: 23px; }
}