/******************************************************************

    Legal Pages (Impressum / Datenschutz)
    Standalone stylesheet — intentionally independent from main.css
    (the hero stylesheet forces html{font-size:10px} + overflow:hidden,
    which is correct for the single-viewport hero but wrong for
    scrollable, readable long-form content).

 ******************************************************************/

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

html
{
    font-size: 100% !important;
}

html,
body
{
    height: auto;

    overflow: visible !important;
}

body.legal-page
{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;

    min-height: 100vh;
    margin: 0;

    color: #f3f3f5;
    background-color: #07070a;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(39,7,235,.35), transparent),
        url(../img/background.jpg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    background-attachment: fixed;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.legal-page::before
{
    position: fixed;
    z-index: 0;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    content: '';
    pointer-events: none;

    background: rgba(3, 3, 6, .82);
}

/* Topbar
*******************************************************************/

.legal-topbar
{
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    max-width: 880px;
    margin: 0 auto;
    padding: 32px 24px;
}

.legal-topbar .brand
{
    display: flex;
    align-items: center;
}

.legal-topbar img.logo
{
    display: block;

    height: 26px;
    width: auto;
}

.legal-back
{
    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 18px;
    -webkit-transition: all .2s ease;
            transition: all .2s ease;
    letter-spacing: .02em;
    text-decoration: none !important;

    color: #f3f3f5;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 100px;
    background: rgba(255,255,255,.04);
}

.legal-back:hover
{
    color: #fff;
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.1);
}

.legal-back .arrow
{
    -webkit-transition: -webkit-transform .2s ease;
            transition: transform .2s ease;
}

.legal-back:hover .arrow
{
    -webkit-transform: translateX(-3px);
        -ms-transform: translateX(-3px);
            transform: translateX(-3px);
}

/* Content
*******************************************************************/

.legal-main
{
    position: relative;
    z-index: 2;

    max-width: 880px;
    margin: 0 auto;
    padding: 8px 24px 96px;
}

.legal-hero
{
    margin-bottom: 8px;
    padding-bottom: 32px;

    border-bottom: 1px solid rgba(255,255,255,.1);
}

.legal-hero .eyebrow
{
    font-size: 13px;
    font-weight: 600;

    display: inline-block;

    margin-bottom: 18px;
    padding: 6px 14px;

    letter-spacing: .08em;
    text-transform: uppercase;

    color: #b9b3ff;
    border-radius: 100px;
    background: rgba(99, 76, 255, .16);
    border: 1px solid rgba(120, 100, 255, .3);
}

.legal-hero h1
{
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;

    margin: 0 0 14px;
    letter-spacing: -.02em;

    color: #fff;
}

.legal-hero .lede
{
    font-size: 16px;
    line-height: 1.7;

    max-width: 60ch;
    margin: 0;

    color: rgba(243,243,245,.68);
}

.legal-card
{
    margin-top: 40px;
    padding: 44px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    background: rgba(255,255,255,.035);
    -webkit-backdrop-filter: blur(18px);
            backdrop-filter: blur(18px);
    box-shadow: 0 30px 60px -25px rgba(0,0,0,.6);
}

.legal-card section + section
{
    margin-top: 36px;
    padding-top: 36px;

    border-top: 1px solid rgba(255,255,255,.08);
}

.legal-card h2
{
    font-size: 18px;
    font-weight: 700;

    display: flex;
    align-items: baseline;
    gap: 10px;

    margin: 0 0 14px;
    letter-spacing: -.01em;

    color: #fff;
}

.legal-card h2 .num
{
    font-size: 13px;
    font-weight: 700;

    color: #8d83ff;
}

.legal-card h3
{
    font-size: 15px;
    font-weight: 600;

    margin: 20px 0 8px;

    color: #fff;
}

.legal-card p,
.legal-card li
{
    font-size: 15px;
    line-height: 1.75;

    color: rgba(243,243,245,.82);
}

.legal-card p
{
    margin: 0 0 14px;
}

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

.legal-card ul
{
    margin: 0 0 14px;
    padding-left: 20px;
}

.legal-card li
{
    margin-bottom: 6px;
}

.legal-card a
{
    -webkit-transition: color .2s ease;
            transition: color .2s ease;
    text-decoration: underline;
    text-decoration-color: rgba(141, 131, 255, .55);
    text-underline-offset: 3px;

    color: #fff;
}

.legal-card a:hover
{
    color: #b9b3ff;
    text-decoration-color: #b9b3ff;
}

.legal-card .fact-grid
{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
}

.legal-card .fact-grid dt
{
    font-size: 12px;
    font-weight: 600;

    margin-bottom: 4px;

    letter-spacing: .06em;
    text-transform: uppercase;

    color: rgba(243,243,245,.45);
}

.legal-card .fact-grid dd
{
    font-size: 15px;
    line-height: 1.6;

    margin: 0;

    color: #f3f3f5;
}

.legal-note
{
    font-size: 13px;

    margin-top: 28px;
    padding: 14px 18px;

    color: rgba(243,243,245,.55);
    border-left: 2px solid rgba(141, 131, 255, .5);
}

.legal-footer
{
    font-size: 13px;

    margin-top: 40px;
    padding-top: 28px;

    text-align: center;

    color: rgba(243,243,245,.4);
}

.legal-footer .legal-nav
{
    margin-top: 10px;
}

.legal-footer .legal-nav a
{
    color: rgba(243,243,245,.7);
}

.legal-footer .legal-nav a:hover
{
    color: #fff;
}

.legal-footer .legal-nav .sep
{
    margin: 0 10px;

    opacity: .4;
}

/* Entrance animation
*******************************************************************/

.legal-hero,
.legal-card
{
    -webkit-animation: legal-fade-up .6s ease both;
            animation: legal-fade-up .6s ease both;
}

.legal-card
{
    -webkit-animation-delay: .1s;
            animation-delay: .1s;
}

@-webkit-keyframes legal-fade-up
{
    from
    {
        -webkit-transform: translateY(14px);
                transform: translateY(14px);

        opacity: 0;
    }

    to
    {
        -webkit-transform: translateY(0);
                transform: translateY(0);

        opacity: 1;
    }
}

@keyframes legal-fade-up
{
    from
    {
        -webkit-transform: translateY(14px);
                transform: translateY(14px);

        opacity: 0;
    }

    to
    {
        -webkit-transform: translateY(0);
                transform: translateY(0);

        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce)
{
    .legal-hero,
    .legal-card
    {
        -webkit-animation: none;
                animation: none;
    }
}

/* Responsive
*******************************************************************/

@media (max-width: 640px)
{
    .legal-topbar
    {
        padding: 22px 18px;
    }

    .legal-main
    {
        padding: 8px 18px 72px;
    }

    .legal-card
    {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .legal-card .fact-grid
    {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .legal-back span.label
    {
        display: none;
    }

    .legal-back
    {
        padding: 10px 14px;
    }
}
