/* Trust / information pages (templates/app/info/*): about, contact, FAQ,
   how we choose, comment policy, privacy, terms, complaints. Prefix ip-. */
.ip {
    --ip-brand: #1562df;
    --ip-navy: #102d5c;
    --ip-soft: #eef3ff;
    --ip-line: #e3e9f4;
    --ip-ink: #18243a;
    --ip-muted: #5b6b85;
    --ip-ok: #12a05c;
    --ip-radius: 18px;
    color: var(--ip-ink);
    padding-bottom: 48px;
}
.ip *, .ip *::before, .ip *::after { box-sizing: border-box; }

/* hero */
.ip-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(1200px 400px at 85% -20%, rgba(98, 150, 255, .35), transparent 60%),
                linear-gradient(135deg, #0d2552 0%, #143a80 55%, #1562df 100%);
    color: #fff;
    padding: 42px 16px 78px;
}
.ip-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -60% auto;
    width: 420px; height: 420px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .18);
    pointer-events: none;
}
.ip-hero__in { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }
.ip-crumbs { font-size: 12.5px; opacity: .8; margin-bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.ip-crumbs a { color: #fff; text-decoration: none; }
.ip-crumbs a:hover { text-decoration: underline; }
.ip-hero h1 {
    color: #fff !important;
    font-size: clamp(24px, 4.2vw, 38px) !important;
    margin: 0 0 12px !important;
    line-height: 1.35;
}
.ip-hero p {
    max-width: 760px;
    font-size: clamp(14px, 1.6vw, 16.5px);
    line-height: 2;
    color: rgba(255, 255, 255, .88);
    margin: 0;
}
.ip-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ip-hero__chips span {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 700;
}

/* layout */
.ip-wrap {
    max-width: 1120px;
    margin: -48px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.ip-side { position: sticky; top: 90px; }
.ip-side__box {
    background: #fff;
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    padding: 10px;
    box-shadow: 0 10px 30px rgba(16, 45, 92, .06);
}
.ip-side__title { font-size: 12px; font-weight: 800; color: var(--ip-muted); padding: 6px 10px 8px; }
.ip-side a {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--ip-ink);
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
}
.ip-side a::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: #c9d5ea; flex: none;
}
.ip-side a:hover { background: var(--ip-soft); color: var(--ip-brand); }
.ip-side a.is-on { background: var(--ip-soft); color: var(--ip-brand); }
.ip-side a.is-on::before { background: var(--ip-brand); }

.ip-toc {
    margin-top: 12px;
    background: #fff;
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    padding: 12px 14px;
}
.ip-toc b { display: block; font-size: 12px; color: var(--ip-muted); margin-bottom: 6px; }
.ip-toc a { display: block; font-size: 13px; color: var(--ip-muted); padding: 4px 0; text-decoration: none; }
.ip-toc a:hover { color: var(--ip-brand); }

.ip-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* section card */
.ip-sec {
    background: #fff;
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    padding: 26px 26px 20px;
    box-shadow: 0 10px 30px rgba(16, 45, 92, .05);
    scroll-margin-top: 90px;
}
.ip-sec > h2 {
    display: flex; align-items: center; gap: 10px;
    font-size: clamp(18px, 2.1vw, 21px) !important;
    color: var(--ip-navy) !important;
    margin: 0 0 14px !important;
}
.ip-sec > h2 .ip-num {
    width: 30px; height: 30px; border-radius: 10px;
    display: inline-grid; place-items: center;
    background: var(--ip-soft); color: var(--ip-brand);
    font-size: 14px; flex: none;
}
.ip-sec p { font-size: 14.5px; line-height: 2.05; color: #33415a; margin: 0 0 12px; }
.ip-sec a { color: var(--ip-brand); }

.ip-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.ip-list li {
    position: relative;
    padding: 10px 40px 10px 14px;
    background: #f8faff;
    border: 1px solid #edf1f9;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.9;
    color: #33415a;
}
.ip-list li::before {
    content: "";
    position: absolute;
    right: 14px; top: 15px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--ip-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center/12px no-repeat;
}
[dir="ltr"] .ip-list li { padding: 10px 14px 10px 40px; }
[dir="ltr"] .ip-list li::before { right: auto; left: 14px; }

.ip-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 4px 0 14px; }
.ip-card {
    border: 1px solid var(--ip-line);
    border-radius: 16px;
    padding: 18px 16px;
    background: linear-gradient(180deg, #fff, #f9fbff);
    transition: transform .2s ease, border-color .2s ease;
}
.ip-card:hover { transform: translateY(-2px); border-color: #c8d7f5; }
.ip-card__ic {
    width: 42px; height: 42px; border-radius: 13px;
    display: grid; place-items: center;
    background: var(--ip-soft); color: var(--ip-brand);
    margin-bottom: 10px;
}
.ip-card__ic svg { width: 22px; height: 22px; }
.ip-card h3 { font-size: 15px !important; color: var(--ip-navy) !important; margin: 0 0 6px !important; }
.ip-card p { font-size: 13.5px; line-height: 1.9; margin: 0; color: var(--ip-muted); }

.ip-steps { list-style: none; counter-reset: ip; margin: 4px 0 14px; padding: 0; display: grid; gap: 10px; }
.ip-steps li {
    counter-increment: ip;
    position: relative;
    padding: 14px 58px 14px 16px;
    border: 1px solid var(--ip-line);
    border-radius: 14px;
    background: #fff;
}
.ip-steps li::before {
    content: counter(ip);
    position: absolute;
    right: 14px; top: 14px;
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--ip-brand); color: #fff;
    font-weight: 900; font-size: 14px;
}
.ip-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 28px; top: 46px; bottom: -12px;
    border-right: 2px dashed #cfdcf3;
}
[dir="ltr"] .ip-steps li { padding: 14px 16px 14px 58px; }
[dir="ltr"] .ip-steps li::before { right: auto; left: 14px; }
[dir="ltr"] .ip-steps li:not(:last-child)::after { right: auto; left: 28px; }
.ip-steps b { display: block; color: var(--ip-navy); font-size: 14.5px; margin-bottom: 3px; }
.ip-steps span { font-size: 13.5px; line-height: 1.9; color: var(--ip-muted); }

.ip-note {
    display: flex; gap: 12px; align-items: flex-start;
    background: linear-gradient(135deg, #eef4ff, #f6f9ff);
    border: 1px solid #d5e2fb;
    border-radius: 14px;
    padding: 14px 16px;
    margin: 4px 0 12px;
    font-size: 14px;
    line-height: 2;
    color: #22365e;
    font-weight: 600;
}
.ip-note svg { width: 22px; height: 22px; flex: none; color: var(--ip-brand); margin-top: 3px; }

/* FAQ */
.ip-faq { display: grid; gap: 10px; }
.ip-faq details {
    border: 1px solid var(--ip-line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}
.ip-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 15px 16px;
    font-weight: 800;
    font-size: 14.5px;
    color: var(--ip-navy);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.ip-faq summary::-webkit-details-marker { display: none; }
.ip-faq summary::after {
    content: "+";
    flex: none;
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--ip-soft); color: var(--ip-brand);
    font-size: 18px; font-weight: 700;
    transition: transform .2s ease;
}
.ip-faq details[open] summary::after { transform: rotate(45deg); }
.ip-faq details[open] summary { border-bottom: 1px solid var(--ip-line); }
.ip-faq .ip-faq__a { padding: 12px 16px 14px; font-size: 14px; line-height: 2; color: #33415a; }

/* callout at the bottom of every page */
.ip-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--ip-navy), #1a4aa0);
    color: #fff;
    border-radius: var(--ip-radius);
    padding: 22px 24px;
}
.ip-cta b { display: block; font-size: 17px; margin-bottom: 4px; }
.ip-cta span { font-size: 13.5px; opacity: .85; }
.ip-cta__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ip-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none !important;
    border: 0;
    cursor: pointer;
    line-height: 1.4;
}
.ip-btn--light { background: #fff; color: var(--ip-navy) !important; }
.ip-btn--ghost { background: rgba(255, 255, 255, .12); color: #fff !important; border: 1px solid rgba(255, 255, 255, .3); }
.ip-btn--brand { background: var(--ip-brand); color: #fff !important; }
.ip-btn--brand:hover { background: #0f50bb; }
.ip-btn--line { background: #fff; color: var(--ip-brand) !important; border: 1px solid #cddcf7; }

/* about */
.ip-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ip-stat {
    background: #fff;
    border: 1px solid var(--ip-line);
    border-radius: 16px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(16, 45, 92, .05);
}
.ip-stat b { display: block; font-size: 24px; color: var(--ip-brand); font-weight: 900; line-height: 1.4; }
.ip-stat span { font-size: 13px; color: var(--ip-muted); font-weight: 700; }
.ip-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ip-founder { display: flex; gap: 16px; align-items: center; }
.ip-founder__av {
    width: 72px; height: 72px; border-radius: 50%;
    flex: none; object-fit: cover;
    background: var(--ip-soft); color: var(--ip-brand);
    display: grid; place-items: center;
    font-size: 28px; font-weight: 900;
}
.ip-founder b { font-size: 16px; color: var(--ip-navy); display: block; }
.ip-founder small { color: var(--ip-muted); font-size: 13px; }

/* contact */
.ip-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.ip-ch {
    display: flex; gap: 12px; align-items: center;
    background: #fff;
    border: 1px solid var(--ip-line);
    border-radius: 16px;
    padding: 16px;
    text-decoration: none !important;
    color: var(--ip-ink) !important;
    transition: border-color .2s ease, transform .2s ease;
    min-width: 0;
}
a.ip-ch:hover { border-color: #b9cdf3; transform: translateY(-2px); }
.ip-ch__ic {
    width: 46px; height: 46px; border-radius: 14px; flex: none;
    display: grid; place-items: center;
    background: var(--ip-soft); color: var(--ip-brand);
}
.ip-ch__ic svg { width: 22px; height: 22px; }
.ip-ch--wa .ip-ch__ic { background: #e7f8ee; color: #1aa555; }
.ip-ch--tg .ip-ch__ic { background: #e6f4fd; color: #229ed9; }
.ip-ch--ig .ip-ch__ic { background: #fdeef4; color: #d6336c; }
.ip-ch small { display: block; font-size: 12px; color: var(--ip-muted); font-weight: 700; }
.ip-ch b { display: block; font-size: 14.5px; overflow-wrap: anywhere; }
.ip-map { border: 0; width: 100%; height: 320px; border-radius: 14px; display: block; }

/* complaint form */
.ip-alert {
    border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 2; margin-bottom: 12px;
}
.ip-alert--ok { background: #e9f8f0; border: 1px solid #bfe9d2; color: #0d6b3e; font-weight: 700; }
.ip-alert--err { background: #fff1f1; border: 1px solid #f6caca; color: #a12525; }
.ip-alert--err ul { margin: 0; padding: 0 18px; }
.ip-form { display: grid; gap: 14px; }
.ip-field label { display: block; font-weight: 800; font-size: 13.5px; color: var(--ip-navy); margin-bottom: 6px; }
.ip-field small { display: block; color: var(--ip-muted); font-size: 12px; margin-top: 5px; }
.ip-field select,
.ip-field input,
.ip-field textarea {
    width: 100%;
    border: 1px solid #d6e0f0;
    border-radius: 12px;
    padding: 11px 13px;
    font: inherit;
    font-size: 14px;
    background: #fbfcff;
    color: var(--ip-ink);
    outline: none;
}
.ip-field textarea { min-height: 150px; resize: vertical; line-height: 1.9; }
.ip-field select:focus, .ip-field input:focus, .ip-field textarea:focus {
    border-color: var(--ip-brand); background: #fff; box-shadow: 0 0 0 3px rgba(21, 98, 223, .12);
}
.ip-subjects { display: flex; flex-wrap: wrap; gap: 8px; }
.ip-subjects input { position: absolute; opacity: 0; pointer-events: none; width: 1px; }
.ip-subjects label {
    margin: 0; font-weight: 700; font-size: 13px; color: var(--ip-ink);
    border: 1px solid #d6e0f0; background: #fbfcff;
    padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.ip-subjects input:checked + label { background: var(--ip-brand); border-color: var(--ip-brand); color: #fff; }
.ip-subjects input:focus-visible + label { box-shadow: 0 0 0 3px rgba(21, 98, 223, .25); }
.ip-login {
    text-align: center; padding: 26px 16px;
    border: 1px dashed #c6d6f3; border-radius: 16px; background: #f8fbff;
}
.ip-login p { margin-bottom: 14px; }
.ip-promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 4px; }
.ip-promise div {
    display: flex; gap: 10px; align-items: center;
    background: #f8faff; border: 1px solid #edf1f9; border-radius: 12px;
    padding: 10px 12px; font-size: 13px; font-weight: 700; color: #33415a;
}
.ip-promise svg { width: 20px; height: 20px; color: var(--ip-brand); flex: none; }

/* mobile */
@media (max-width: 900px) {
    .ip-wrap { grid-template-columns: minmax(0, 1fr); margin-top: -40px; }
    .ip-side { position: static; order: 2; }
    .ip-toc { display: none; }
    .ip-side__box { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
    .ip-side__title { width: 100%; padding: 0 2px 2px; }
    .ip-side a { padding: 7px 12px; background: #f6f8fc; font-size: 13px; }
    .ip-side a::before { display: none; }
    .ip-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .ip-hero { padding: 26px 16px 66px; }
    .ip-sec { padding: 20px 16px 14px; border-radius: 16px; }
    .ip-cta { padding: 18px; }
    .ip-cta__btns, .ip-cta__btns .ip-btn { width: 100%; }
    .ip-map { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
    .ip-card, .ip-ch, .ip-faq summary::after { transition: none; }
}

/* contact page: "who are you?" gate */
.ip-who p { margin-bottom: 14px; }
.ip-who__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ip-who__opt {
    display: flex; align-items: center; gap: 12px; text-align: right;
    padding: 16px; border-radius: 16px; border: 1.5px solid var(--ip-line); background: #fff;
    cursor: pointer; font: inherit; color: var(--ip-ink); transition: border-color .2s, background .2s;
}
[dir="ltr"] .ip-who__opt { text-align: left; }
.ip-who__opt:hover { border-color: #b9cdf3; }
.ip-who__opt[aria-pressed="true"] { border-color: var(--ip-brand); background: var(--ip-soft); }
.ip-who__opt svg { width: 42px; height: 42px; padding: 10px; flex: none; border-radius: 13px; background: var(--ip-soft); color: var(--ip-brand); }
.ip-who__opt b { display: block; font-size: 14.5px; color: var(--ip-navy); }
.ip-who__opt small { display: block; font-size: 12.5px; color: var(--ip-muted); margin-top: 2px; }
.ip-who__seeker { margin-top: 14px; }
.ip-who__seeker[hidden], .ip-owner-only[hidden] { display: none; }
.ip-owner-only { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 640px) { .ip-who__opts { grid-template-columns: 1fr; } }

/* Mobile: compact cards, icon beside the title instead of above it. */
@media (max-width: 640px) {
    .ip-cards { gap: 8px; }
    .ip-card { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: start; padding: 12px 14px; }
    .ip-card__ic { grid-row: 1 / span 2; width: 38px; height: 38px; margin: 0; }
    .ip-card__ic svg { width: 19px; height: 19px; }
    .ip-card h3 { margin: 2px 0 2px !important; }
    .ip-card p { line-height: 1.75; }
}
