/**
 * Strony statyczne - kontakt, regulamin, polityka prywatnosci
 *
 * Arkusz jest samowystarczalny: kazda zmienna ma wartosc zapasowa, wiec
 * strona wyglada tak samo niezaleznie od tego, czy layout zaladowal stary
 * main.css, czy nowy design-v2.css.
 */

.static-page {
    padding: 2rem 0 4rem;
}

/* ==========================================
   NAGLOWEK
   ========================================== */
.static-page-header {
    max-width: 68ch;
    margin: 1.5rem 0 2.5rem;
}

.static-page-header h1 {
    font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
    line-height: 1.15;
    margin: 0 0 0.75rem;
    color: var(--foreground, #10233b);
}

.static-page-lead {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--muted-foreground, #5a6b80);
    margin: 0;
}

.static-page-meta {
    font-size: 0.875rem;
    color: var(--muted-foreground, #5a6b80);
    margin: 0;
}

/* ==========================================
   TRESC
   ========================================== */
.static-page-body {
    /* Limit na kolumnie, nie na tekscie - inaczej na szerokich ekranach
       karta rosnie, a tekst konczy sie w 2/3 szerokosci (patrz ERR w docs). */
    max-width: 74ch;
}

.static-page-body h2 {
    font-size: 1.375rem;
    line-height: 1.3;
    margin: 2.5rem 0 0.75rem;
    color: var(--foreground, #10233b);
}

.static-page-body h2:first-child {
    margin-top: 0;
}

.static-page-body p,
.static-page-body li {
    line-height: 1.7;
    color: var(--foreground, #22364f);
}

.static-page-body p {
    margin: 0 0 1rem;
}

.static-page-body ul,
.static-page-body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.4rem;
}

.static-page-body li {
    margin-bottom: 0.6rem;
}

.static-page-body ol > li {
    padding-left: 0.25rem;
}

.static-page-body a {
    color: var(--primary, #0a6fce);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.static-page-body a:hover {
    text-decoration: none;
}

.static-page-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--bg-alt, #f1f5f9);
    padding: 0.1em 0.4em;
    border-radius: 4px;
}

/* ==========================================
   KARTY KONTAKTOWE
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.static-page .contact-grid {
    /* Siatka kart moze byc szersza niz kolumna tekstu */
    max-width: none;
}

.contact-card {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    padding: 1.5rem;
    background: var(--card, #fff);
}

.contact-card h2 {
    font-size: 1.0625rem;
    margin: 0 0 0.6rem;
    color: var(--foreground, #10233b);
}

.contact-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--muted-foreground, #5a6b80);
    margin: 0 0 0.75rem;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    word-break: break-word;
}

.contact-value a:not(.btn) {
    color: var(--primary, #0a6fce);
}

.contact-hint {
    font-size: 0.8125rem !important;
    margin-bottom: 0 !important;
}

.contact-details {
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* ==========================================
   BLOK "ZANIM NAPISZESZ"
   ========================================== */
.static-page-note {
    border-left: 3px solid var(--primary, #0a6fce);
    background: var(--bg-alt, #f8fafc);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem 1.75rem;
}

.static-page-note h2 {
    font-size: 1.125rem;
    margin: 0 0 0.9rem;
}

.static-page-note ul {
    margin: 0;
    padding-left: 1.2rem;
}

.static-page-note li {
    margin-bottom: 0.7rem;
    line-height: 1.65;
}

.static-page-note li:last-child {
    margin-bottom: 0;
}

/* ==========================================
   TABELA DANYCH (polityka prywatnosci)
   ========================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.75rem;
    font-size: 0.875rem;
    /* Na waskich ekranach tabela przewija sie sama, a nie cala strona */
    display: block;
    overflow-x: auto;
}

.data-table th,
.data-table td {
    border: 1px solid var(--border, #e2e8f0);
    padding: 0.65rem 0.8rem;
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}

.data-table th {
    background: var(--bg-alt, #f1f5f9);
    font-weight: 600;
    white-space: nowrap;
}

/* Przycisk w karcie - stary main.css nie ustawia koloru tekstu
   dla .btn-primary poza kontekstem formularzy, wiec napis znikal */
.contact-value .btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    background: var(--primary, #0a6fce);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border: 0;
}

.contact-value .btn:hover {
    background: var(--primary-dark, #085ba8);
    color: #fff;
}

/* ==========================================
   BREADCRUMBS - layout nie zawsze ustawia poziomy uklad
   ========================================== */
.static-page .breadcrumbs {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.static-page .breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.static-page .breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground, #5a6b80);
}

.static-page .breadcrumbs-item:not(:last-child)::after {
    content: '›';
    color: var(--muted-foreground, #94a3b8);
}

.static-page .breadcrumbs-item a {
    color: var(--muted-foreground, #5a6b80);
    text-decoration: none;
}

.static-page .breadcrumbs-item a:hover {
    color: var(--primary, #0a6fce);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .static-page {
        padding: 1rem 0 3rem;
    }

    .contact-card {
        padding: 1.25rem;
    }

    .static-page-note {
        padding: 1.25rem;
    }
}
