/* ─── 2008.dev shared site chrome ─── */
:root {
    --accent: #00e0ff;
    --bg: #06060a;
    --surface: #0a0a0a;
    --border: #1a1a1a;
    --text: #e4e1e8;
    --muted: #888;
}

/* Legal / utility page shell */
.site-legal-page {
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 224, 255, 0.06), transparent),
        linear-gradient(to right, rgba(26, 26, 26, 0.6) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26, 26, 26, 0.6) 1px, transparent 1px);
    background-size: 100% 100%, 3rem 3rem, 3rem 3rem;
    color: var(--text);
    font-family: Geist, system-ui, sans-serif;
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: rgba(6, 6, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
    .site-header {
        padding: 1rem 2rem;
    }
}

.site-header__brand {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
}

.site-header__nav {
    display: none;
    gap: 1.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (min-width: 1024px) {
    .site-header__nav {
        display: flex;
    }
}

.site-header__nav a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.site-header__nav a:hover,
.site-header__nav a.active {
    color: var(--accent);
}

.site-header__cta {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #000;
    text-decoration: none;
}

.site-legal-main {
    flex: 1;
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

@media (min-width: 1024px) {
    .site-legal-main {
        padding: 3rem 2rem 4rem;
        max-width: 48rem;
    }
}

.site-legal-main h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #fff;
}

.site-legal-kicker {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.site-legal-updated {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 2rem;
}

.site-legal-section {
    margin-bottom: 2rem;
}

.site-legal-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.75rem;
}

.site-legal-section p,
.site-legal-section li {
    font-size: 15px;
    line-height: 1.7;
    color: #c4c7c8;
    margin: 0 0 0.75rem;
}

.site-legal-section ul {
    padding-left: 1.25rem;
    margin: 0 0 0.75rem;
}

.site-legal-section a {
    color: var(--accent);
}

.site-legal-section code {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--accent);
}

.site-legal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Unified public footer */
.site-footer {
    background: #08080c;
    border-top: 1px solid var(--border);
    padding: 2.5rem 1rem calc(2.5rem + env(safe-area-inset-bottom, 0));
}

@media (min-width: 1024px) {
    .site-footer {
        padding: 3rem 2rem;
    }
}

.site-footer__grid {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 2.5rem;
    }
}

.site-footer__brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.site-footer__tagline {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 20rem;
}

.site-footer__col h3 {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin: 0 0 1rem;
}

.site-footer__col a {
    display: block;
    font-size: 13px;
    color: #c4c7c8;
    text-decoration: none;
    padding: 0.35rem 0;
    transition: color 0.2s;
}

.site-footer__col a:hover {
    color: var(--accent);
}

.site-footer__bottom {
    max-width: 72rem;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--muted);
}

@media (min-width: 1024px) {
    .site-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Cookie consent (EU) */
#cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    transform: translateY(110%);
    transition: transform 0.35s ease;
    pointer-events: none;
}

#cookie-consent.visible {
    transform: translateY(0);
    pointer-events: auto;
}

#cookie-consent .cookie-inner {
    max-width: 42rem;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    padding: 1.25rem;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}

@media (min-width: 1024px) {
    #cookie-consent {
        left: auto;
        right: 1.5rem;
        bottom: 1.5rem;
        max-width: 24rem;
        padding: 0;
    }
}

#cookie-consent p {
    font-size: 13px;
    line-height: 1.55;
    color: #c4c7c8;
    margin: 0 0 1rem;
}

#cookie-consent a {
    color: var(--accent);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-actions button {
    flex: 1;
    min-width: 7rem;
    padding: 0.65rem 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: #fff;
}

.cookie-actions button.cookie-accept {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Main site footer upgrade */
#main-site .site-footer-enhanced {
    background: #08080c;
    border-top: 1px solid var(--border);
}

#main-site .site-footer-enhanced .site-footer__grid {
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    #main-site .site-footer-enhanced .site-footer__grid {
        padding: 0 2rem;
    }
}

/* Portfolio legal footer bar */
#portfolio-app .site-footer-portfolio {
    margin-top: auto;
}

/* Form consent */
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    line-height: 1.55;
    color: var(--muted);
    cursor: pointer;
}

.consent-label input {
    margin-top: 0.2rem;
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.consent-label a {
    color: var(--accent);
}

/* Impressum dynamic fields */
[data-legal-field]:empty::before {
    content: '— configure in Admin → Legal or .env';
    color: var(--muted);
    font-style: italic;
}
