/* Wspólny wygląd dokumentów prawnych; kolory wyłącznie z /theme.css. Krój systemowy: strona nie łączy się z zewnętrznymi serwerami czcionek. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--sc-background);
    color: var(--sc-foreground);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    width: 100%;
}

.back-link {
    display: inline-block;
    color: var(--sc-primary);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--sc-foreground);
    transform: translateX(-4px);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--sc-foreground) 0%, var(--sc-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: var(--sc-muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 2.5rem;
}

.card {
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-card);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sc-primary);
    margin-bottom: 1rem;
}

.card p, .card li {
    color: var(--sc-muted-foreground);
    line-height: 1.8;
    font-size: 1rem;
}

.card p + p {
    margin-top: 0.75rem;
}

.card ul, .card ol {
    margin-top: 0.75rem;
    padding-left: 0;
}

.card ul {
    list-style: none;
}

.card ol {
    list-style: none;
    counter-reset: item;
}

.card ol li {
    counter-increment: item;
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.4rem;
}

.card ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: var(--sc-primary);
    font-weight: 600;
}

.card ul li {
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.4rem;
}

.card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--sc-primary);
    border-radius: 50%;
}

.card strong {
    color: var(--sc-foreground);
    font-weight: 600;
}

.card .sub-section {
    margin-top: 1rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--sc-border);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.sub-label {
    color: var(--sc-muted-foreground);
    font-size: 0.85rem;
    font-style: italic;
}

.contact-email {
    color: var(--sc-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--sc-foreground);
}

.highlight-box {
    background: var(--sc-accent);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-card);
    padding: 1.5rem;
    margin-top: 1rem;
}

.highlight-box--center {
    text-align: center;
}

.highlight-box p {
    color: var(--sc-foreground) !important;
    font-weight: 500;
}

.footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sc-border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--sc-muted-foreground);
}

.footer a {
    color: var(--sc-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--sc-foreground);
}

.footer-sep {
    margin: 0 0.75rem;
    opacity: 0.4;
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }

    .card {
        padding: 1.5rem;
    }
}
