/*
Legal pages (legal notice, privacy policy, terms of use).
Layout ranges: phone up to 600px, tablet 601-950px, desktop from 951px.
Tablet and desktop share one layout; phones get a smaller title and headings.
*/

/* Matches the bottom edge of the darkened background photo (visible as a band on phones while the browser bar hides) */
html {
    background-color: #292929;
}

h1 {
    font-size: 3rem;
    text-align: center;
    text-transform: uppercase;
    /* Long words never run off the screen. Preferred break points are marked with &shy; in the page (e.g. nutzungs&shy;bedingungen) */
    overflow-wrap: break-word;
}

h2 {
    width: 100%;
    font-size: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 1em 0 0.5em;
}

p {
    width: 100%;
    margin: 0 0 0.75em;
}

/* "Last updated" line: set apart from the content above */
.legal-date {
    margin-top: 2.5em;
}

.background-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    filter: brightness(40%);
}

/*-------------------
---------------------
---CONTENT---
---------------------
-------------------*/

/* Frame: 32px side margins, at most 1200px wide */
.content-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(calc(100% - 64px), 1200px);
    /* Starts right below the 80px header */
    margin: 5rem auto 0;
    z-index: 1;
}

/*-------------------
---TITLE---
-------------------*/

.title-container {
    width: 100%;
    margin: 3rem auto 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Reading column: at most 680px, centred (about 85-90 characters per line) */
.background-text-container {
    margin: 0 auto;
    width: min(100%, 680px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.text-container {
    width: 100%;
    margin: 1.75rem 0;
    font-size: 1.0625rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Phone */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .title-container {
        margin-top: 2rem;
    }

    .text-container {
        margin: .75rem 0;
    }
}
