/* assets/css/info_pages.css
 * Content of the information pages (about, faq, contact, terms, privacy-policy), shown inside the
 * app layout (Tailwind) when signed in and the public layout (Bootstrap) when not
 * (includes/info_header.php). Plain CSS with an .ip- prefix and explicit margins, sizes and colours,
 * so neither framework's base styles change how the pages look.
 */

.ip {
    --ip-primary: #4F46E5;
    --ip-primary-dark: #4338CA;
    --ip-ink: #111827;
    --ip-text: #374151;
    --ip-muted: #6B7280;
    --ip-line: #E5E7EB;
    --ip-soft: #EEF2FF;
    box-sizing: border-box;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 0 40px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ip-text);
    font-size: 15px;
    line-height: 1.6;
}
.ip *, .ip *::before, .ip *::after { box-sizing: border-box; }
.ip.ip-public { padding: 40px 16px 64px; }
.ip.ip-wide { max-width: 1040px; }

/* Headings and text */
.ip h1, .ip h2, .ip h3 { margin: 0; color: var(--ip-ink); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.ip h1 { font-size: 1.75rem; }
.ip h2 { font-size: 1.15rem; }
.ip h3 { font-size: 1rem; }
.ip p { margin: 0; }
.ip a { color: var(--ip-primary); text-decoration: none; }
.ip a:hover { text-decoration: underline; }
.ip strong { color: var(--ip-ink); font-weight: 600; }
@media (min-width: 768px) { .ip h1 { font-size: 2.1rem; } }

/* Page heading */
.ip-head { margin: 0 0 24px; }
.ip-head.ip-center { text-align: center; }
.ip-head p { margin-top: 8px; color: var(--ip-muted); font-size: 1rem; }
.ip-head img { display: block; height: 48px; width: auto; margin: 0 0 16px; }

/* Cards and stacking */
.ip-stack > * + * { margin-top: 20px; }
.ip-card { background: #fff; border: 1px solid var(--ip-line); border-radius: 18px; padding: 24px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.ip-card > h2 { margin-bottom: 14px; }
.ip-card > p + p { margin-top: 12px; }
@media (max-width: 575px) { .ip-card { padding: 18px; border-radius: 16px; } }

/* Numbered steps with an icon tile (about) */
.ip-steps { list-style: none; margin: 0; padding: 0; }
.ip-steps li { display: flex; gap: 14px; }
.ip-steps li + li { margin-top: 16px; }
.ip-tile { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--ip-soft); color: var(--ip-primary); }
.ip-steps p { color: var(--ip-muted); font-size: 0.9rem; }
.ip-steps p.ip-step-title { color: var(--ip-ink); font-weight: 600; font-size: 0.97rem; }

/* Tick list */
.ip-ticks { list-style: none; margin: 0 0 16px; padding: 0; font-size: 0.9rem; color: var(--ip-muted); }
.ip-ticks li { display: flex; gap: 8px; }
.ip-ticks li + li { margin-top: 8px; }
.ip-ticks i { color: #10B981; margin-top: 4px; }

/* Rows in a bordered box (package list, contact details) */
.ip-rows { border: 1px solid var(--ip-line); border-radius: 14px; overflow: hidden; }
.ip-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.ip-row + .ip-row { border-top: 1px solid #F3F4F6; }
.ip-row small { display: block; color: var(--ip-muted); font-size: 0.78rem; }

/* Buttons */
.ip-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ip-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-size: 0.9rem; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none !important; }
.ip-btn-primary { background: var(--ip-primary); color: #fff !important; }
.ip-btn-primary:hover { background: var(--ip-primary-dark); }
.ip-btn-outline { background: #fff; border-color: #D1D5DB; color: var(--ip-text) !important; }
.ip-btn-outline:hover { background: #F9FAFB; }
.ip-btn-block { width: 100%; padding: 13px 18px; font-size: 1rem; }
.ip-link-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.9rem; font-weight: 600; }
.ip-fine { margin-top: 20px !important; font-size: 0.78rem; color: #9CA3AF; }
.ip-fine a { color: #9CA3AF; }

/* FAQ: native <details>, no script */
.ip-faq { border: 1px solid var(--ip-line); border-radius: 18px; background: #fff; overflow: hidden; }
.ip-faq details + details { border-top: 1px solid var(--ip-line); }
.ip-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; color: var(--ip-ink); font-weight: 600; font-size: 1rem; }
.ip-faq summary::-webkit-details-marker { display: none; }
.ip-faq summary::after { content: '+'; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ip-soft); color: var(--ip-primary); font-size: 1.1rem; font-weight: 600; line-height: 1; }
.ip-faq details[open] summary::after { content: '\2212'; }
.ip-faq details[open] summary { color: var(--ip-primary); }
.ip-faq .ip-answer { padding: 0 22px 20px; color: var(--ip-muted); }

/* Legal text */
.ip-prose h2 { margin: 26px 0 8px; font-size: 1.05rem; }
.ip-prose h2:first-child { margin-top: 0; }
.ip-prose ul { margin: 8px 0 0; padding-left: 20px; }
.ip-prose li + li { margin-top: 4px; }
.ip-prose p + p { margin-top: 10px; }

/* Contact: form and details side by side from 900px */
.ip-split { display: grid; gap: 20px; }
@media (min-width: 900px) { .ip-split { grid-template-columns: 3fr 2fr; align-items: start; } }
.ip-field { display: block; }
.ip-field + .ip-field { margin-top: 14px; }
.ip-field span { display: block; margin-bottom: 6px; color: var(--ip-ink); font-size: 0.88rem; font-weight: 600; }
.ip-field input, .ip-field textarea { display: block; width: 100%; margin: 0; padding: 11px 14px; border: 1px solid #D1D5DB; border-radius: 12px; background: #fff; color: var(--ip-ink); font: inherit; font-size: 16px; line-height: 1.4; }
.ip-field textarea { min-height: 130px; resize: vertical; }
.ip-field input:focus, .ip-field textarea:focus { outline: none; border-color: var(--ip-primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); }
.ip-contact { display: flex; gap: 12px; }
.ip-contact + .ip-contact { margin-top: 16px; padding-top: 16px; border-top: 1px solid #F3F4F6; }
.ip-contact .ip-flag { font-size: 1.3rem; line-height: 1; }
.ip-contact a, .ip-contact small { display: block; font-size: 0.88rem; }
.ip-contact small { margin-top: 2px; color: var(--ip-muted); }
.ip-social { display: flex; gap: 14px; font-size: 1.5rem; }

/* Flash messages (public layout; the app header shows its own) */
.ip-flash { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; }
.ip-flash-ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.ip-flash-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
