/* Shared styles for KSeF Connect legal/help pages. Self-contained: no external fonts or scripts,
   so the pages render correctly when served from ksef-connect.pl. */

:root {
    --brand: #635bff;        /* Stripe-ish indigo */
    --brand-dark: #4b45c6;
    --ink: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg-soft: #eef0ff;
    --max: 880px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: #ffffff;
    line-height: 1.7;
}

.doc-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px 20px 80px;
}

.doc-topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.doc-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.95rem;
}

.doc-nav a {
    color: var(--muted);
    text-decoration: none;
}

.doc-nav a:hover { color: var(--ink); }
.doc-nav a.active { color: var(--brand); font-weight: 600; }

.lang-switch {
    display: inline-flex;
    gap: 6px;
    font-size: 0.85rem;
}

.lang-switch a {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
}

.lang-switch a.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.doc-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.doc-header h1 {
    font-size: 1.9rem;
    margin: 0 0 8px;
}

.doc-header .subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
}

.doc-content h2 {
    font-size: 1.3rem;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(99, 91, 255, 0.2);
}

.doc-content h2:first-of-type { margin-top: 0; }

.doc-content h3 {
    font-size: 1.08rem;
    margin: 28px 0 10px;
}

.doc-content p { margin: 0 0 14px; }

.doc-content ol, .doc-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.doc-content li { margin-bottom: 10px; }
.doc-content ol ol { list-style-type: lower-alpha; margin-top: 8px; }

.doc-content a { color: var(--brand); text-decoration: none; }
.doc-content a:hover { text-decoration: underline; }

.doc-content code {
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.callout {
    margin: 18px 0;
    padding: 14px 16px;
    background: var(--bg-soft);
    border: 1px solid rgba(99, 91, 255, 0.25);
    border-radius: 8px;
}

.callout.warn {
    background: #fff7ed;
    border-color: #fed7aa;
}

.steps { counter-reset: step; padding-left: 0; list-style: none; }
.steps > li {
    position: relative;
    padding-left: 44px;
    margin-bottom: 22px;
}
.steps > li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.faq-q {
    font-weight: 600;
    margin: 26px 0 6px;
    font-size: 1.05rem;
}

.update-date {
    margin-top: 44px;
    padding: 14px;
    background: var(--bg-soft);
    border-radius: 8px;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.doc-footer {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
}

.doc-footer a { color: var(--muted); }
