/* ==========================================================================
   CREM S.R.L.S. — Streamlined & Mobile-First Stylesheet (style.css)
   Design System: Architectural Mineral & Precision Engineering
   ========================================================================== */

:root,
[data-theme="dark"] {
    --bg-primary: #070b14;
    --bg-secondary: #0f172a;
    --bg-elevated: #141e33;
    --bg-card: rgba(20, 30, 51, 0.82);
    --bg-glass: rgba(11, 17, 30, 0.88);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --accent-primary: #d9822b;
    --accent-primary-hover: #e5933e;
    --accent-soft: rgba(217, 130, 43, 0.14);
    --accent-border: rgba(217, 130, 43, 0.42);

    --border-subtle: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.26);

    --status-ok: #10b981;
    --status-warn: #f59e0b;

    --shadow-sm: 0 4px 12px rgba(2, 6, 23, 0.25);
    --shadow-md: 0 12px 32px rgba(2, 6, 23, 0.42);
    --shadow-lg: 0 20px 48px rgba(2, 6, 23, 0.55);

    --grid-line: rgba(148, 163, 184, 0.05);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.92);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;

    --accent-primary: #b45309;
    --accent-primary-hover: #92400e;
    --accent-soft: rgba(180, 83, 9, 0.1);
    --accent-border: rgba(180, 83, 9, 0.35);

    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12);

    --grid-line: rgba(15, 23, 42, 0.04);
}

:root {
    --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --container-max: 1180px;
}

/* ==========================================================================
   1. Base Reset & Accessibility
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 78px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
    background: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    background: var(--accent-primary);
    color: #ffffff;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    z-index: 1000000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.mono {
    font-family: var(--font-mono);
}

.text-accent {
    color: var(--accent-primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #f59e0b 55%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.icon-xs { width: 15px; height: 15px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; flex-shrink: 0; }
.icon-md { width: 22px; height: 22px; flex-shrink: 0; }

/* ==========================================================================
   2. Topbar & Sticky Header
   ========================================================================== */
.topbar {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 6px 0;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.topbar-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-divider {
    opacity: 0.35;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    min-height: 30px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.topbar-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--status-warn);
    display: inline-block;
}
.status-dot.accepted { background-color: var(--status-ok); }
.status-dot.rejected { background-color: var(--text-muted); }

/* Sticky Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    gap: 16px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.brand-name small {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.brand-sub {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-top: 2px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-height: 40px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--accent-soft);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    border-radius: 10px;
    min-height: 44px;
    padding: 10px 20px;
    font-size: 0.92rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 130, 43, 0.28);
}

.btn-primary:hover {
    background-color: var(--accent-primary-hover);
}

.btn-secondary {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background-color: var(--accent-soft);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-sm {
    min-height: 38px;
    padding: 7px 14px;
    font-size: 0.84rem;
}

.btn-xs {
    min-height: 34px;
    padding: 5px 12px;
    font-size: 0.76rem;
    border-radius: 7px;
}

/* ==========================================================================
   4. Hero Section & Interactive Blueprint
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 48px 0 56px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 99px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(217, 130, 43, 0.25);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.95rem, 3.8vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.hero-lead {
    font-size: 1.02rem;
    color: var(--text-secondary);
    max-width: 58ch;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Blueprint Frame */
.blueprint-frame {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}

.blueprint-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.badge-status {
    color: var(--status-ok);
    font-weight: 600;
}

.pillar-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.pillar-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 40px;
    text-align: left;
    transition: all 0.2s ease;
}

.pillar-tab span.mono {
    color: var(--accent-primary);
    font-size: 0.72rem;
}

.pillar-tab.active {
    background: var(--accent-soft);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.pillar-display {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
}

.pillar-visual-svg {
    width: 100%;
    height: 125px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schematic-svg {
    width: 100%;
    height: 100%;
}

.pillar-code {
    display: block;
    font-size: 0.68rem;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.pillar-heading {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.pillar-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.pillar-tags,
.bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-chip {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

/* ==========================================================================
   5. Sections & Streamlined Bento Divisions
   ========================================================================== */
.section {
    padding: 56px 0;
}

.section-header {
    max-width: 680px;
    margin-bottom: 32px;
}

.section-kicker {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent-primary);
    margin-bottom: 6px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.8vw, 2.2rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 0.96rem;
    color: var(--text-secondary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.bento-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-border);
}

.bento-featured {
    background: linear-gradient(160deg, var(--bg-card) 0%, var(--accent-soft) 100%);
}

.bento-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.bento-num {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.bento-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.bento-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.25;
}

.bento-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* ==========================================================================
   6. Streamlined Filterable Sector Overview
   ========================================================================== */
.catalog-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.catalog-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.catalog-header-row .section-title {
    margin-bottom: 0;
}

.filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    max-width: 100%;
    scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 99px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.84rem;
    min-height: 40px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.product-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease;
}

.product-card:hover {
    border-color: var(--accent-border);
}

.product-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.product-cat {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.product-origin {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent-primary);
}

.product-title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   7. Visura Camerale & Direct Contacts Card
   ========================================================================== */
.visura-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.visura-banner {
    background: linear-gradient(90deg, #991b1b 0%, #7f1d1d 100%);
    color: #ffffff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.visura-badge {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.16);
    padding: 2px 9px;
    border-radius: 99px;
    margin-bottom: 3px;
}

.visura-banner h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.visura-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.35fr 1.15fr 1fr;
    gap: 1px;
    background: var(--border-subtle);
}

.visura-field {
    background: var(--bg-elevated);
    padding: 18px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 0;
}

.field-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.field-value {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.field-note {
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.inline-map-link {
    color: var(--accent-primary);
    font-weight: 600;
}

.copyable-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
}

.copy-btn {
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    min-height: 30px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.visura-statutory {
    border-top: 1px solid var(--border-subtle);
    padding: 14px 20px;
    background: var(--bg-secondary);
}

.statutory-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--accent-primary);
    min-height: 40px;
    text-align: left;
}

.chevron-icon {
    transition: transform 0.25s ease;
}

.statutory-toggle[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

.statutory-content {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.statutory-quote {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    background: var(--bg-elevated);
    padding: 16px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-primary);
}

.statutory-quote ul {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.statutory-quote li {
    position: relative;
    padding-left: 14px;
}

.statutory-quote li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* ==========================================================================
   8. Streamlined Footer
   ========================================================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0 calc(24px + env(safe-area-inset-bottom, 0px));
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.footer-brand {
    max-width: 520px;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.cookie-dashboard-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    min-width: 280px;
}

.cookie-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 8px;
}

.cookie-pills-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.cpill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.cpill.active {
    background: var(--accent-soft);
    border-color: var(--accent-border);
    color: var(--accent-primary);
}

.cookie-box-actions {
    display: flex;
    gap: 8px;
}

.footer-bottom {
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

.footer-bottom-links a:hover {
    color: var(--accent-primary);
}

/* ==========================================================================
   9. Legal / Privacy & Cookie Policy Page (privacy-policy.html)
   ========================================================================== */
.legal-page {
    padding: 40px 0 64px;
}

.legal-container {
    max-width: 920px;
}

.legal-hero {
    margin-bottom: 28px;
}

.legal-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 8px;
}

.legal-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.legal-cookie-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--accent-soft) 100%);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 32px;
}

.legal-cookie-info {
    flex: 1 1 320px;
}

.legal-cookie-info h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.legal-cookie-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
}

.legal-num {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.legal-section p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.legal-summary-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.legal-summary-item strong {
    font-size: 0.95rem;
}

.legal-summary-item small {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.legal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0 4px;
}

.legal-list li {
    position: relative;
    padding-left: 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.cookie-table-wrap {
    overflow-x: auto;
    margin-top: 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    text-align: left;
    min-width: 540px;
}

.cookie-table th,
.cookie-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.cookie-table th {
    background: var(--bg-secondary);
    font-weight: 700;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    white-space: nowrap;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-key-cell {
    font-size: 0.8rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.cookie-cat-cell,
.cookie-dur-cell {
    white-space: nowrap;
}

.table-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1.2;
}

.table-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-essential {
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--accent-primary);
}

.badge-essential::before {
    background: var(--accent-primary);
}

.badge-optional {
    background: var(--bg-secondary);
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
}

.badge-optional::before {
    background: var(--text-muted);
}

.legal-contact-callout {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-primary);
}

.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: 360px;
    margin-left: auto;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--accent-primary);
    box-shadow: var(--shadow-md);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    z-index: 999999;
    text-align: center;
}

/* ==========================================================================
   10. Mobile & Tablet Optimizations
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .visura-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }

    .container { padding: 0 16px; }

    .section { padding: 40px 0; }

    .hero-section { padding: 32px 0 40px; }

    .mobile-menu-toggle { display: inline-flex; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border-strong);
        padding: 12px 16px;
        display: none;
        box-shadow: var(--shadow-md);
    }

    .main-nav.open { display: block; }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-link {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .bento-grid,
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .bento-card,
    .legal-section,
    .legal-cookie-panel { padding: 18px; }

    .legal-summary-grid {
        grid-template-columns: 1fr;
    }

    .cookie-dashboard-box { width: 100%; }
}

@media (max-width: 480px) {
    .hide-xs { display: none !important; }

    .topbar-meta { font-size: 0.72rem; }

    .brand-sub { display: none; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn { width: 100%; }

    .stat-value { font-size: 1.05rem; }
    .stat-label { font-size: 0.72rem; }

    .visura-grid {
        grid-template-columns: 1fr;
    }

    .visura-banner { padding: 14px 16px; }
    .visura-field { padding: 14px 16px; }
    .visura-statutory { padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
