/* ==========================================================================
   Legal document pages (Privacy Policy / Terms of Service)
   Reuses the Imana brand tokens already defined in home.css / style.css:
   navy #2b2b5e, teal #0093ab, cyan #00cde5, body copy #5c5c75
   ========================================================================== */

.ih-doc {
    --doc-navy: #2b2b5e;
    --doc-teal: #0093ab;
    --doc-cyan: #00cde5;
    --doc-ink: #4a4a63;
    --doc-body: #5c5c75;
    --doc-muted: #8a8a9e;
    --doc-bg: #f5f7fc;
    --doc-border: #e7e7f7;
    --doc-white: #fff;

    font-family: "Montserrat", sans-serif;
    color: var(--doc-ink);
}

.ih-doc h1, .ih-doc h2, .ih-doc h3 {
    font-family: "Bricolage Grotesque", "Montserrat", sans-serif;
    letter-spacing: -0.02em;
    color: var(--doc-navy);
}

/* ---- Header strip: effective date + jump-to on mobile ------------------ */

.ih-doc__meta {
    background: var(--doc-navy);
    padding: 18px 0 22px;
}

.ih-doc__meta-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ih-doc__updated {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.68);
}

.ih-doc__updated i { color: var(--doc-cyan); }

.ih-doc__meta-links { display: flex; gap: 10px; }

.ih-doc__meta-links a {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.18);
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.ih-doc__meta-links a.is-current,
.ih-doc__meta-links a:hover {
    color: #fff;
    border-color: transparent;
    background: rgba(255,255,255,0.12);
}

/* ---- TL;DR summary chips ------------------------------------------------ */

.ih-doc__tldr {
    padding: 46px 0 10px;
}

.ih-doc__tldr-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 26px;
}

.ih-doc__tldr-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--doc-teal);
    margin-bottom: 18px;
}

.ih-doc__tldr-label::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--doc-cyan);
    display: inline-block;
}

.ih-doc__chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ih-doc__chip {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--doc-white);
    border: 1px solid var(--doc-border);
    border-radius: 14px;
    padding: 18px 18px;
}

.ih-doc__chip i {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,147,171,0.1);
    color: var(--doc-teal);
    font-size: 15px;
}

.ih-doc__chip span {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--doc-navy);
    padding-top: 6px;
}

/* ---- Two-column body: sticky contents rail + article -------------------- */

.ih-doc__body {
    padding: 50px 0 100px;
}

.ih-doc__grid {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 26px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 64px;
    align-items: start;
}

/* Sidebar */

.ih-doc__rail {
    position: sticky;
    top: 110px;
}

.ih-doc__rail-title {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--doc-muted);
    margin-bottom: 14px;
}

.ih-doc__toc {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    border-left: 2px solid var(--doc-border);
}

.ih-doc__toc li a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0 8px 16px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--doc-body);
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease;
}

.ih-doc__toc li a .n {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 12px;
    color: var(--doc-muted);
}

.ih-doc__toc li a:hover { color: var(--doc-navy); }

.ih-doc__toc li a.is-active {
    color: var(--doc-teal);
    border-left-color: var(--doc-teal);
}

.ih-doc__toc li a.is-active .n { color: var(--doc-teal); }

.ih-doc__rail-card {
    background: var(--doc-bg);
    border-radius: 14px;
    padding: 20px;
}

.ih-doc__rail-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--doc-body);
    margin: 0 0 12px;
}

.ih-doc__rail-card a {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--doc-navy);
    text-decoration: none;
    margin-bottom: 8px;
}

.ih-doc__rail-card a:last-child { margin-bottom: 0; }
.ih-doc__rail-card a i { color: var(--doc-teal); width: 14px; }

/* Article */

.ih-doc__article { min-width: 0; }

.ih-doc__section {
    scroll-margin-top: 110px;
    padding: 34px 0;
    border-bottom: 1px solid var(--doc-border);
}

.ih-doc__section:first-child { padding-top: 0; }
.ih-doc__section:last-child { border-bottom: none; padding-bottom: 0; }

.ih-doc__section-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 14px;
}

.ih-doc__section-num {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--doc-cyan);
    -webkit-text-stroke: 1px var(--doc-teal);
}

.ih-doc__section h2 {
    font-size: 21px;
    font-weight: 700;
    margin: 0;
}

.ih-doc__section p,
.ih-doc__section li {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--doc-body);
}

.ih-doc__section p { margin: 0 0 16px; }
.ih-doc__section p:last-child { margin-bottom: 0; }

.ih-doc__section ul {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.ih-doc__section ul:last-child { margin-bottom: 0; }

.ih-doc__section ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
}

.ih-doc__section ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--doc-cyan);
}

.ih-doc__section ul li:last-child { margin-bottom: 0; }

.ih-doc__note {
    margin-top: 14px;
    padding: 14px 16px;
    background: var(--doc-bg);
    border-left: 3px solid var(--doc-teal);
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--doc-body);
}

.ih-doc__note strong { color: var(--doc-navy); }

/* Mobile jump-to select (hidden on desktop) */

.ih-doc__jump {
    display: none;
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 991px) {
    .ih-doc__chips { grid-template-columns: repeat(2, 1fr); }

    .ih-doc__grid { grid-template-columns: 1fr; gap: 30px; }

    .ih-doc__rail { position: static; }

    .ih-doc__toc { display: none; }

    .ih-doc__jump {
        display: block;
        width: 100%;
        appearance: none;
        font-family: "Montserrat", sans-serif;
        font-size: 14px;
        font-weight: 600;
        color: var(--doc-navy);
        background: var(--doc-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230093AB' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E") no-repeat right 16px center;
        border: 1px solid var(--doc-border);
        border-radius: 12px;
        padding: 14px 40px 14px 16px;
        margin-bottom: 22px;
    }

    .ih-doc__meta-links { display: none; }
}

@media (max-width: 600px) {
    .ih-doc__chips { grid-template-columns: 1fr; }
    .ih-doc__section h2 { font-size: 18px; }
}
