/* Shared styles of the public Yupiter pages: self-hosted font, legal links, consent banner, map. */

/* Nunito, self-hosted so no request goes to Google Fonts (SIL OFL 1.1, see css/fonts/nunito/OFL.txt) */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-display: swap;
    font-weight: 200 1000;
    src: url('fonts/nunito/nunito-latin-wght-normal.woff2') format('woff2-variations'),
         url('fonts/nunito/nunito-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.4rem;
    font-size: .9rem;
    font-weight: 700;
}

.legal-links a,
.legal-links button {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.legal-links button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

.consent-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1000;
    max-width: 34rem;
    margin-left: auto;
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(31, 35, 40, 0.1);
    border-radius: 18px;
    background: #fffaf2;
    color: #1f2328;
    box-shadow: 0 18px 50px rgba(31, 35, 40, 0.18);
    font-family: 'Nunito', sans-serif;
    font-size: .95rem;
    line-height: 1.55;
}

.consent-banner[hidden] {
    display: none;
}

.consent-banner h2 {
    margin: 0 0 .4rem;
    font-size: 1.1rem;
    font-weight: 800;
}

.consent-banner p {
    margin: 0 0 1rem;
}

.consent-banner a {
    color: #264653;
    text-decoration: underline;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.consent-button {
    padding: .55rem 1rem;
    border: 1px solid #264653;
    border-radius: 999px;
    background: transparent;
    color: #264653;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.consent-button--primary {
    background: #264653;
    color: #fff;
}

.consent-map {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .8rem;
    min-height: 250px;
    padding: 1.2rem;
    border: 1px dashed rgba(31, 35, 40, 0.25);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
}

.consent-map p {
    margin: 0;
}

.consent-map a {
    text-decoration: underline;
}

.consent-map .consent-button {
    align-self: flex-start;
}

.consent-map iframe {
    display: block;
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 14px;
}

.consent-map--loaded {
    padding: 0;
    border: 0;
    background: none;
}
