/* Recuvalis Predpisy - Main Stylesheet */

:root {
    --bg-primary: #F5F0EB;
    --bg-card: #FFFFFF;
    --bg-sidebar: #1A1A1A;
    --bg-sidebar-alt: #faf8f5;
    --text-primary: #2D2A26;
    --text-secondary: #6B6560;
    --text-muted: #999;
    --accent-gold: #C4A265;
    --accent-gold-hover: #b3913a;
    --accent-gold-light: #F5EDD8;
    --border-subtle: #E5DED5;
    --border-light: #f0ebe5;
    --link-color: #8B6914;
    --highlight-bg: #FFF8E7;
    --highlight-border: #C4A265;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-legal: 'Source Serif 4', Georgia, serif;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--link-color); text-decoration: none; transition: color var(--transition); }
a:hover { text-decoration: underline; color: var(--accent-gold-hover); }

/* === HEADER === */
.site-header {
    background: var(--bg-sidebar);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.logo {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; opacity: 0.9; }
.logo-icon { font-size: 1.6rem; }
.logo-text { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.logo-sep { color: var(--accent-gold); }
.header-search { flex: 1; max-width: 420px; }
.search-form-compact { display: flex; }
.search-input-compact {
    flex: 1;
    padding: 0.5rem 0.85rem;
    border: 1px solid #444;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: #2a2a2a;
    color: #fff;
    font-size: 0.875rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition);
}
.search-input-compact::placeholder { color: #888; }
.search-input-compact:focus { border-color: var(--accent-gold); }
.search-btn-compact {
    padding: 0.5rem 0.85rem;
    background: var(--accent-gold);
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #fff;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background var(--transition);
}
.search-btn-compact:hover { background: var(--accent-gold-hover); }
.header-nav { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-link { color: #ccc; font-size: 0.875rem; transition: color var(--transition); }
.nav-link:hover { color: var(--accent-gold); text-decoration: none; }
.nav-ai {
    background: var(--accent-gold);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.85rem;
    transition: background var(--transition);
}
.nav-ai:hover { background: var(--accent-gold-hover); color: #fff; text-decoration: none; }
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* === MAIN === */
.main-content {
    flex: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* === HERO === */
.hero {
    text-align: center;
    padding: 5rem 1rem 3.5rem;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
}
.hero-search {
    max-width: 660px;
    margin: 0 auto;
    display: flex;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.hero-search-input {
    flex: 1;
    padding: 1.1rem 1.5rem;
    border: 2px solid var(--border-subtle);
    border-right: none;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    font-size: 1rem;
    background: #fff;
    outline: none;
    font-family: var(--font-body);
    transition: border-color var(--transition);
}
.hero-search-input:focus { border-color: var(--accent-gold); }
.hero-search-btn {
    padding: 1.1rem 2.25rem;
    background: var(--accent-gold);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background var(--transition);
    white-space: nowrap;
}
.hero-search-btn:hover { background: var(--accent-gold-hover); }
.hero-count {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* === SECTIONS === */
.section { padding: 2.5rem 0; }
.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* === LAW GRID (homepage) === */
.law-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}
.law-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--accent-gold);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.law-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}
.law-card-number {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.law-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
}
.law-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 0.35rem;
}

/* === AI BANNER === */
.section-ai { padding-bottom: 3.5rem; }
.ai-banner {
    background: var(--bg-sidebar);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2.25rem 2.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.ai-banner h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}
.ai-banner p { color: #aaa; font-size: 0.95rem; line-height: 1.5; }
.ai-banner-btn {
    background: var(--accent-gold);
    color: #fff;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background var(--transition);
    font-size: 0.95rem;
}
.ai-banner-btn:hover { background: var(--accent-gold-hover); text-decoration: none; color: #fff; }

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 1rem 0 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.breadcrumb-link {
    color: var(--accent-gold);
    font-weight: 500;
    text-decoration: none;
}
.breadcrumb-link:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--text-muted); font-size: 0.9rem; }
.breadcrumb-current { color: var(--text-primary); font-weight: 500; }

/* === LAW DETAIL PAGE === */
.law-page {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 140px);
    margin: 0 -2rem;
}

/* TOC Sidebar */
.toc-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: var(--bg-sidebar-alt);
    border-right: 1px solid var(--border-subtle);
    padding: 1.75rem 1.25rem;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-subtle) transparent;
}
.toc-sidebar::-webkit-scrollbar { width: 5px; }
.toc-sidebar::-webkit-scrollbar-track { background: transparent; }
.toc-sidebar::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 3px; }
.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}
.toc-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
}
.toc-close { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-secondary); }
.toc-nav { font-size: 0.82rem; }
.toc-item { margin-bottom: 0.1rem; }
.toc-item.depth-0 > .toc-link { font-weight: 600; color: var(--text-primary); font-size: 0.88rem; }
.toc-item.depth-1 { padding-left: 0.85rem; }
.toc-item.depth-1 > .toc-link { font-weight: 500; color: var(--text-primary); }
.toc-item.depth-2 { padding-left: 1.6rem; }
.toc-item.depth-2 > .toc-link { font-weight: 400; }
.toc-item.depth-3 { padding-left: 2.3rem; }
.toc-item.depth-3 > .toc-link { font-size: 0.78rem; }
.toc-item.depth-4 { padding-left: 2.9rem; }
.toc-item.depth-4 > .toc-link { font-size: 0.76rem; }
.toc-item.depth-5 { padding-left: 3.4rem; }
.toc-item.depth-5 > .toc-link { font-size: 0.74rem; }
.toc-link {
    display: block;
    padding: 0.3rem 0.6rem;
    color: var(--text-secondary);
    border-radius: 4px;
    text-decoration: none;
    line-height: 1.4;
    transition: background var(--transition), color var(--transition);
    border-left: 2px solid transparent;
}
.toc-link:hover {
    background: var(--accent-gold-light);
    color: var(--text-primary);
    text-decoration: none;
}
.toc-link.toc-active {
    background: var(--accent-gold-light);
    color: var(--accent-gold);
    border-left-color: var(--accent-gold);
    font-weight: 600;
}
.toc-range { font-size: 0.72rem; color: var(--text-muted); margin-left: 0.2rem; }

.toc-toggle {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    background: var(--bg-sidebar);
    color: #fff;
    border: none;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-family: var(--font-body);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background var(--transition);
}
.toc-toggle:hover { background: #333; }

/* Law Content */
.law-content {
    flex: 1;
    padding: 1rem 3rem 3rem;
    max-width: 820px;
}
.law-header {
    margin-bottom: 2.25rem;
    padding-bottom: 1.75rem;
    border-bottom: 2px solid var(--border-subtle);
}
.law-main-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.law-short-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}
.law-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    align-items: center;
}
.meta-badge {
    background: var(--accent-gold-light);
    color: var(--accent-gold);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
}
.meta-item a { color: var(--link-color); }

/* Pagination info */
.pagination-info {
    background: var(--accent-gold-light);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Hierarchy headings */
.hierarchy-heading {
    margin: 2.5rem 0 1.25rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.hierarchy-heading.depth-0 { border-bottom-width: 2px; margin-top: 3rem; }
.hierarchy-part.depth-0 {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-heading);
}
.hierarchy-part.depth-1 {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.hierarchy-part.depth-2 {
    font-weight: 500;
    color: var(--text-secondary);
}
.hierarchy-sep { margin: 0 0.35rem; color: #ccc; }

/* Paragraphs */
.paragraph {
    padding: 1.15rem 1.5rem;
    margin-bottom: 0.35rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: background var(--transition), border-color var(--transition);
}
.paragraph:hover { background: rgba(255,255,255,0.7); }
.paragraph.highlighted {
    background: var(--highlight-bg);
    border-left-color: var(--highlight-border);
    box-shadow: 0 1px 6px rgba(196,162,101,0.12);
}
.par-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.par-number {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
    flex-shrink: 0;
}
.par-citation {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
}
.par-ai-btn {
    opacity: 0;
    transition: opacity var(--transition);
    font-size: 1.1rem;
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: auto;
}
.paragraph:hover .par-ai-btn { opacity: 0.5; }
.par-ai-btn:hover { opacity: 1 !important; background: var(--accent-gold-light); text-decoration: none; }
.par-text {
    font-family: var(--font-legal);
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--text-primary);
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.page-btn:hover {
    background: var(--accent-gold-light);
    border-color: var(--accent-gold);
    text-decoration: none;
}
.page-numbers {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}
.page-num:hover { background: var(--accent-gold-light); text-decoration: none; color: var(--text-primary); }
.page-num.active {
    background: var(--accent-gold);
    color: #fff;
    font-weight: 600;
}
.page-ellipsis { color: var(--text-muted); font-size: 0.88rem; padding: 0 0.3rem; }

/* === SEARCH PAGE === */
.search-page { padding: 2.5rem 0; max-width: 800px; }
.search-form-large {
    display: flex;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.search-count { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 1.75rem; }
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.5rem;
    margin-bottom: 0.85rem;
    transition: box-shadow var(--transition);
}
.result-card:hover { box-shadow: var(--shadow-sm); }
.result-header {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    margin-bottom: 0.4rem;
}
.result-title { font-weight: 600; font-size: 1rem; line-height: 1.35; }
.result-lawid {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    white-space: nowrap;
}
.result-hierarchy { font-size: 0.8rem; color: var(--accent-gold); margin-bottom: 0.35rem; }
.result-citation { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.35rem; }
.result-snippet {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === ERROR PAGE === */
.error-page { text-align: center; padding: 6rem 1rem; }
.error-code { font-family: var(--font-heading); font-size: 6rem; color: var(--accent-gold); letter-spacing: -0.03em; }
.error-message { font-size: 1.15rem; color: var(--text-secondary); margin: 1.25rem 0 2.5rem; line-height: 1.5; }
.error-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    background: var(--accent-gold); color: #fff; padding: 0.8rem 1.75rem;
    border-radius: var(--radius-md); font-weight: 600; text-decoration: none;
    transition: background var(--transition);
    font-family: var(--font-body);
}
.btn-primary:hover { background: var(--accent-gold-hover); text-decoration: none; color: #fff; }
.btn-secondary {
    background: transparent; color: var(--accent-gold); padding: 0.8rem 1.75rem;
    border: 2px solid var(--accent-gold); border-radius: var(--radius-md);
    font-weight: 600; text-decoration: none;
    transition: background var(--transition), color var(--transition);
    font-family: var(--font-body);
}
.btn-secondary:hover { background: var(--accent-gold-light); text-decoration: none; }

/* === FOOTER === */
.site-footer {
    background: var(--bg-sidebar);
    color: #888;
    padding: 1.75rem 2rem;
    margin-top: auto;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a { color: #aaa; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-gold); text-decoration: none; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .toc-sidebar {
        position: fixed;
        left: -320px;
        top: 64px;
        height: calc(100vh - 64px);
        z-index: 90;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0,0,0,0.2);
        background: var(--bg-sidebar-alt);
    }
    .toc-sidebar.open { left: 0; }
    .toc-close { display: block; }
    .toc-toggle { display: block; }
    .law-content { padding: 1rem 1.5rem 2rem; }
    .main-content { padding: 0 1.5rem; }
}

@media (max-width: 768px) {
    .header-inner { padding: 0 1rem; height: 56px; }
    .header-search { display: none; }
    .hamburger { display: block; }
    .nav-link:not(.nav-ai) { display: none; }
    .hero { padding: 3rem 0.5rem 2.5rem; }
    .hero-title { font-size: 1.9rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .hero-search { flex-direction: column; border-radius: var(--radius-lg); }
    .hero-search-input { border-right: 2px solid var(--border-subtle); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .hero-search-btn { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
    .law-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.85rem; }
    .law-card { padding: 1rem 1.15rem; }
    .ai-banner { flex-direction: column; text-align: center; padding: 1.75rem 1.5rem; }
    .law-page { margin: 0 -1rem; }
    .law-content { padding: 0.75rem 1rem 2rem; }
    .law-main-title { font-size: 1.3rem; }
    .law-short-title { font-size: 1rem; }
    .paragraph { padding: 0.85rem 1rem; }
    .par-number { font-size: 1rem; }
    .par-text { font-size: 0.92rem; }
    .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
    .search-form-large { flex-direction: column; }
    .main-content { padding: 0 1rem; }
    .breadcrumbs { font-size: 0.8rem; }
    .pagination { gap: 0.5rem; }
    .page-btn { padding: 0.5rem 0.85rem; font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.5rem; }
    .law-grid { grid-template-columns: 1fr; }
}

/* === PRINT === */
@media print {
    .site-header, .site-footer, .toc-sidebar, .toc-toggle,
    .par-ai-btn, .hero-search, .breadcrumbs, .pagination { display: none; }
    .law-page { display: block; }
    .law-content { max-width: 100%; padding: 0; }
    .paragraph { break-inside: avoid; border-left: none; }
    .par-text { font-size: 11pt; }
    body { background: #fff; }
}

/* ═══ LEGAL TEXT FORMATTING ═══ */
.legal-nadpis { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.legal-plain { margin: 0; line-height: 1.75; }
.legal-odstavec { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; line-height: 1.75; }
.legal-odstavec:last-child { margin-bottom: 0; }
.legal-odstavec-mark { font-weight: 700; color: var(--text-primary); flex-shrink: 0; min-width: 1.8rem; user-select: none; }
.legal-odstavec-content { flex: 1; min-width: 0; }
.legal-odstavec-content .legal-text { display: block; margin-bottom: 0.25rem; }
.legal-pismeno { display: flex; gap: 0.4rem; margin-top: 0.35rem; margin-bottom: 0.2rem; padding-left: 0.5rem; line-height: 1.7; }
.legal-pismeno-mark { font-weight: 600; color: var(--accent-gold); flex-shrink: 0; min-width: 1.5rem; user-select: none; }
.legal-pismeno-text { flex: 1; min-width: 0; }
.legal-bod { display: flex; gap: 0.4rem; margin-top: 0.25rem; margin-bottom: 0.15rem; padding-left: 1rem; line-height: 1.7; }
.legal-bod-mark { font-weight: 600; color: var(--text-secondary); flex-shrink: 0; min-width: 1.2rem; user-select: none; }
.legal-bod-text { flex: 1; min-width: 0; }
@media (max-width: 768px) {
    .legal-odstavec { gap: 0.35rem; }
    .legal-pismeno { padding-left: 0.25rem; }
    .legal-bod { padding-left: 0.5rem; }
}
@media print {
    .legal-odstavec { page-break-inside: avoid; }
    .legal-pismeno-mark, .legal-bod-mark { color: #000; }
}
