/* ============================================================================
 * ZeroPanel 2027 — Terms, Contact & About Pages Styles (Zero-CDN)
 * ============================================================================ */

.zpp-hero {
    position: relative; padding: clamp(32px, 5vw, 56px) 0 clamp(26px, 4vw, 38px);
    border-bottom: 1px solid var(--border); overflow: hidden;
}
.zpp-hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    -webkit-mask-image: radial-gradient(ellipse 75% 90% at 50% 0%, #000 10%, transparent 100%);
    mask-image: radial-gradient(ellipse 75% 90% at 50% 0%, #000 10%, transparent 100%);
}
.zpp-hero-glow {
    position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
    width: min(760px, 120vw); height: 340px; pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.11) 0%, transparent 72%);
}
.zpp-hero-in { position: relative; z-index: 1; }
.zpp-crumb { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: var(--fg-3); margin-bottom: 12px; }
.zpp-crumb a:hover { color: var(--brand); }
.zpp-h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.zpp-lead { font-size: clamp(0.86rem, 1.3vw, 0.96rem); color: var(--fg-2); max-width: 720px; line-height: 1.9; }
.zpp-meta-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.zpp-sec { padding: clamp(32px, 5vw, 56px) 0; }

/* ============================================================================
 * 1. TERMS PAGE (2-Column Sticky TOC + Live Search & Highlight)
 * ============================================================================ */
.zpt-principles {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px;
}
.zpt-princ {
    padding: 16px; border-radius: 14px; background: var(--surface-1); border: 1px solid var(--border);
    display: flex; align-items: flex-start; gap: 11px;
}
.zpt-princ-ic {
    width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand);
    display: grid; place-items: center; flex-shrink: 0;
}
.zpt-princ strong { display: block; font-size: 0.85rem; margin-bottom: 3px; }
.zpt-princ span { display: block; font-size: 0.76rem; color: var(--fg-2); line-height: 1.65; }

.zpt-search-bar {
    position: relative; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.zpt-search-wrap { position: relative; flex: 1 1 280px; }
.zpt-search-ic { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }
.zpt-search-inp { padding-right: 40px; }
.zpt-search-stat { font-size: 0.78rem; color: var(--fg-3); }

/* Mobile Sticky Horizontal TOC */
.zpt-mtoc {
    display: none; position: sticky; top: var(--header-h); z-index: 40;
    background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); margin: 0 calc(-1 * clamp(14px, 3vw, 24px)) 20px;
    padding: 10px clamp(14px, 3vw, 24px); overflow-x: auto; scrollbar-width: none; gap: 6px;
}
.zpt-mtoc::-webkit-scrollbar { display: none; }
.zpt-mtoc a {
    flex-shrink: 0; padding: 6px 11px; border-radius: 8px; background: var(--surface-1);
    border: 1px solid var(--border); font-size: 0.74rem; font-weight: 700; color: var(--fg-2);
}
.zpt-mtoc a.is-active { background: var(--brand-soft); border-color: var(--brand-ring); color: var(--brand); }

.zpt-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.zpt-toc {
    position: sticky; top: calc(var(--header-h) + 20px);
    background: var(--surface-1); border: 1px solid var(--border); border-radius: 16px;
    padding: 14px; max-height: calc(100dvh - var(--header-h) - 40px); overflow-y: auto;
}
.zpt-toc-t { font-size: 0.74rem; font-weight: 700; color: var(--fg-3); padding: 4px 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 8px; display: block; }
.zpt-toc a {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px;
    font-size: 0.79rem; font-weight: 500; color: var(--fg-2); transition: all .14s ease;
}
.zpt-toc a:hover { background: var(--surface-2); color: var(--fg); }
.zpt-toc a.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.zpt-toc-num { font-family: var(--font-mono); font-size: 0.7rem; opacity: .7; width: 20px; flex-shrink: 0; }

.zpt-chapters { display: flex; flex-direction: column; gap: 16px; }
.zpt-chap {
    scroll-margin-top: calc(var(--header-h) + 22px);
    padding: clamp(18px, 3vw, 26px); background: var(--surface-1);
    border: 1px solid var(--border); border-radius: 16px;
}
.zpt-chap.is-hidden { display: none; }
.zpt-chap-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border);
}
.zpt-chap-id { display: flex; align-items: center; gap: 10px; }
.zpt-chap-num {
    width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft);
    border: 1px solid var(--brand-ring); color: var(--brand); font-family: var(--font-mono);
    font-size: 0.78rem; font-weight: 700; display: grid; place-items: center; flex-shrink: 0;
}
.zpt-chap h2 { font-size: 1.03rem; font-weight: 700; line-height: 1.4; }
.zpt-copy-anchor {
    padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg);
    font-size: 0.72rem; font-weight: 700; color: var(--fg-3); flex-shrink: 0;
}
.zpt-copy-anchor:hover { border-color: var(--brand-ring); color: var(--brand); }
.zpt-clauses { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.zpt-clauses li {
    position: relative; padding-right: 46px; font-size: 0.86rem; color: var(--fg-2); line-height: 1.9;
}
.zpt-clause-code {
    position: absolute; right: 0; top: 3px; font-family: var(--font-mono); font-size: 0.71rem;
    font-weight: 700; color: var(--fg-3); background: var(--surface-2); padding: 1px 6px; border-radius: 6px;
}
.zpt-clauses mark { background: rgba(249, 115, 22, 0.28); color: var(--fg); padding: 0 3px; border-radius: 4px; }

/* ============================================================================
 * 2. CONTACT PAGE (Department Cards + Secure Form + Channels)
 * ============================================================================ */
.zpc-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 24px; align-items: start; }
.zpc-form-card { padding: clamp(20px, 3vw, 28px); }
.zpc-depts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.zpc-dept {
    position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 12px;
    border-radius: 12px; border: 1px solid var(--border); background: var(--bg); cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.zpc-dept input { position: absolute; opacity: 0; pointer-events: none; }
.zpc-dept:hover { border-color: var(--border-strong); }
.zpc-dept.is-selected { border-color: var(--brand); background: var(--brand-soft); }
.zpc-dept-ic {
    width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); color: var(--brand);
    display: grid; place-items: center; flex-shrink: 0;
}
.zpc-dept strong { display: block; font-size: 0.82rem; color: var(--fg); }
.zpc-dept span { display: block; font-size: 0.72rem; color: var(--fg-3); margin-top: 2px; line-height: 1.45; }

.zpc-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.zpc-field { margin-bottom: 14px; }
.zpc-field label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--fg-2); margin-bottom: 6px; }
.zpc-alert {
    padding: 13px 15px; border-radius: 12px; font-size: 0.84rem; line-height: 1.8; margin-bottom: 16px;
}
.zpc-alert-ok { background: var(--ok-soft); border: 1px solid rgba(16, 185, 129, 0.35); color: var(--ok); }
.zpc-alert-err { background: var(--danger-soft); border: 1px solid rgba(239, 68, 68, 0.35); color: var(--danger); }

.zpc-side { display: flex; flex-direction: column; gap: 14px; }
.zpc-channel { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.zpc-channel-top { display: flex; align-items: center; gap: 11px; }
.zpc-channel-ic {
    width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand);
    display: grid; place-items: center; flex-shrink: 0;
}
.zpc-channel h3 { font-size: 0.92rem; font-weight: 700; }
.zpc-channel p { font-size: 0.8rem; color: var(--fg-2); line-height: 1.75; }
.zpc-phish {
    padding: 16px; border-radius: 14px; background: var(--warn-soft);
    border: 1px solid rgba(245, 158, 11, 0.35); font-size: 0.8rem; line-height: 1.8; color: var(--fg);
}

/* ============================================================================
 * 3. ABOUT PAGE (Philosophy + 4 Pillars + Architecture + Trust)
 * ============================================================================ */
.zpa-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.zpa-pillar { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.zpa-pillar-ic {
    width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft);
    color: var(--brand); display: grid; place-items: center;
}
.zpa-pillar h3 { font-size: 0.96rem; font-weight: 700; }
.zpa-pillar p { font-size: 0.83rem; color: var(--fg-2); line-height: 1.85; }

.zpa-arch {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
    padding: 22px; background: var(--surface-1); border: 1px solid var(--border); border-radius: 18px;
}
.zpa-node {
    padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 6px;
}
.zpa-node-step { font-family: var(--font-mono); font-size: 0.72rem; color: var(--brand); font-weight: 700; }
.zpa-node strong { font-size: 0.88rem; }
.zpa-node span { font-size: 0.77rem; color: var(--fg-2); line-height: 1.7; }

.zpa-trust-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; align-items: stretch; }

/* Responsive Precision */
@media (max-width: 980px) {
    .zpt-layout { grid-template-columns: 1fr; }
    .zpt-toc { display: none; }
    .zpt-mtoc { display: flex; }
    .zpt-principles { grid-template-columns: 1fr; }
    .zpc-grid, .zpa-trust-grid { grid-template-columns: 1fr; }
    .zpa-arch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .zpc-depts, .zpc-row-2, .zpa-arch { grid-template-columns: 1fr; }
    .zpt-chap-head { flex-direction: column; align-items: flex-start; }
}