/* The privacy policy and the terms (privacypolicy.html, terms.html): static pages in the site's look, with the
   site's font (Rubik), colours and a header and footer that lead back to the site. */

:root {
    --legal-text: #2a2833;
    --legal-muted: #74727a;
    --legal-accent: #ff4eb5;
    --legal-accent-2: #ffa065;
    --legal-line: #efefef;
    --legal-bg: #ffffff;
    --legal-header-bg: #fff5fb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--legal-bg);
    color: var(--legal-text);
    font-family: "Rubik", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}

a {
    color: var(--legal-accent);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--legal-text);
    text-decoration: underline;
}

/* header: the logo (to the home page) on the left, "Log in" and "Start for free" on the right */
.legal-header {
    background: var(--legal-header-bg);
    border-bottom: 1px solid #f7d3e8;
}

.legal-header__inner,
.legal-footer__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.legal-header__inner {
    min-height: 80px;
}

.legal-header__logo {
    display: block;
    line-height: 0;
}

.legal-header__logo img {
    width: 140px;
    height: auto;
}

.legal-header__nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 16px;
}

.legal-header__nav a {
    color: var(--legal-muted);
}

.legal-header__nav a:hover,
.legal-header__nav a:focus {
    color: var(--legal-text);
    text-decoration: none;
}

/* the site's button: a gradient border around white */
.legal-header__nav a.legal-btn {
    display: inline-block;
    padding: 9px 20px;
    border: 2px solid transparent;
    border-radius: 5px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(90deg, var(--legal-accent) 0%, var(--legal-accent-2) 100%) border-box;
    color: var(--legal-text);
    font-weight: 500;
    white-space: nowrap;
}

.legal-header__nav a.legal-btn:hover,
.legal-header__nav a.legal-btn:focus {
    background: linear-gradient(90deg, var(--legal-accent) 0%, var(--legal-accent-2) 100%) border-box;
    color: #fff;
}

/* the text: one readable column */
.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 16px 64px;
}

.legal h1 {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 8px;
}

.legal h2 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    margin: 40px 0 12px;
}

.legal p,
.legal li {
    margin: 0 0 12px;
}

.legal ul {
    margin: 0 0 16px;
    padding-left: 24px;
}

.legal li::marker {
    color: var(--legal-accent);
}

.legal .updated {
    color: var(--legal-muted);
    margin-bottom: 32px;
}

/* footer: back to the site */
.legal-footer {
    border-top: 1px solid var(--legal-line);
    color: var(--legal-muted);
    font-size: 15px;
}

.legal-footer__inner {
    min-height: 72px;
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 16px;
}

.legal-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.legal-footer a {
    color: var(--legal-muted);
}

.legal-footer a:hover,
.legal-footer a:focus {
    color: var(--legal-text);
}

@media (max-width: 575px) {
    .legal-header__inner {
        min-height: 64px;
    }

    .legal-header__logo img {
        width: 110px;
    }

    .legal-header__nav {
        gap: 14px;
        font-size: 15px;
    }

    .legal-header__nav a.legal-btn {
        padding: 7px 12px;
    }

    .legal {
        padding-top: 32px;
    }

    .legal h1 {
        font-size: 30px;
    }

    .legal h2 {
        font-size: 19px;
        margin-top: 32px;
    }
}

@media print {
    .legal-header,
    .legal-footer {
        display: none;
    }
}
