.deepdrft-footer {
    /* position:relative + z-index:1 creates a stacking context that paints above the
       WaveformVisualizer backdrop (z-index:0), keeping footer text fully legible. */
    position: relative;
    z-index: 1;
    background: var(--deepdrft-page-surface);
    border-top: 1px solid var(--deepdrft-border);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.deepdrft-footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.deepdrft-footer-logo {
    font-family: var(--deepdrft-font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--deepdrft-page-text);
}

.deepdrft-footer-logo span {
    /*font-style: italic;*/
    color: var(--deepdrft-green);
}

.deepdrft-footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.deepdrft-footer-links a,
.deepdrft-footer-links button {
    font-family: var(--deepdrft-font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--deepdrft-page-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.deepdrft-footer-links a:hover,
.deepdrft-footer-links button:hover { color: var(--deepdrft-page-text); }

.deepdrft-footer-copy {
    font-family: var(--deepdrft-font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    color: var(--deepdrft-page-text-muted);
}

/* PRIVACY trigger — reset button chrome so it reads as a link, not a button element.
   Typography/colour shared with footer <a> links via the grouped selector above. */
.deepdrft-footer-privacy-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: inherit;
    font-family: inherit;
}

@media (max-width: 440px) {
    .deepdrft-footer {
        padding: 1.5rem;
        /*flex-wrap: wrap;*/
        gap: 1rem;
    }
    
    .deepdrft-footer-links {
        flex-direction: column;
        gap: 0.25rem;
    }

    .deepdrft-footer-copy {
        /*width: 100%;*/
        justify-self: right;
    }
}
