/*
CSS navigation:
1. shared page layout
2. privacy policy
3. 404 page
4. responsive
*/

/*shared page layout*/
.inner-page,
.error404 {
    min-height: 100vh;
    background-color: #f5f5f3;
}

.page-header {
    border-bottom: 1px solid rgba(255, 138, 29, 0.5);
    background-color: #101010;
    color: var(--color-white);
}

.page-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.page-header__logo {
    display: inline-flex;
    align-items: center;
}

.page-header__logo img {
    width: 138px;
    object-fit: contain;
}

.page-header__back {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    transition: color 0.2s ease;
}

.page-header__back:hover,
.page-header__back:focus-visible {
    color: var(--color-accent);
}

.page-footer {
    border-top: 1px solid rgba(255, 138, 29, 0.5);
    background-color: #101010;
    color: rgba(255, 255, 255, 0.62);
}

.page-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    font-size: 12px;
}

.page-footer a {
    transition: color 0.2s ease;
}

.page-footer a:hover,
.page-footer a:focus-visible {
    color: var(--color-accent);
}
/*shared page layout*/

/*privacy policy*/
.legal-page {
    padding: 72px 0 96px;
}

.legal-page__header {
    max-width: 820px;
}

.legal-page__eyebrow {
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.legal-page__title {
    margin-top: 12px;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 400;
    line-height: 1.02;
}

.legal-page__lead {
    max-width: 720px;
    margin-top: 24px;
    color: #5d5d5d;
    font-size: 18px;
    line-height: 1.6;
}

.legal-page__meta {
    margin-top: 18px;
    color: #777777;
    font-size: 13px;
}

.legal-page__content {
    display: grid;
    gap: 46px;
    max-width: 900px;
    margin-top: 68px;
}

.legal-page__section {
    padding-top: 24px;
    border-top: 1px solid #d5d5d0;
}

.legal-page__section h2 {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.25;
}

.legal-page__section p,
.legal-page__section li {
    color: #4f4f4f;
    font-size: 16px;
    line-height: 1.7;
}

.legal-page__section p {
    margin-top: 14px;
}

.legal-page__section ul {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.legal-page__section li {
    position: relative;
    padding-left: 22px;
}

.legal-page__section li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 8px;
    height: 2px;
    background-color: var(--color-accent);
}

.legal-page__section a {
    color: #c56812;
    text-decoration: underline;
    text-underline-offset: 3px;
}
/*privacy policy*/

/*404 page*/
.not-found-page {
    display: grid;
    min-height: calc(100vh - 145px);
    place-items: center;
    padding: 64px 0;
    background-image:
        linear-gradient(rgba(245, 245, 243, 0.9), rgba(245, 245, 243, 0.94)),
        url("../img/ui/hero-slide-1.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.not-found-page__content {
    max-width: 720px;
    text-align: center;
}

.not-found-page__code {
    color: var(--color-accent);
    font-size: clamp(96px, 18vw, 210px);
    font-weight: 700;
    line-height: 0.8;
}

.not-found-page__title {
    margin-top: 34px;
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 400;
    line-height: 1.05;
}

.not-found-page__text {
    max-width: 560px;
    margin: 22px auto 36px;
    color: #555555;
    font-size: 17px;
    line-height: 1.6;
}
/*404 page*/

/*responsive*/
@media screen and (max-width: 620px) {
    .page-header__inner {
        min-height: 62px;
    }

    .page-header__logo img {
        width: 122px;
    }

    .page-header__back {
        font-size: 12px;
    }

    .page-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        min-height: 96px;
        gap: 6px;
    }

    .legal-page {
        padding: 48px 0 68px;
    }

    .legal-page__title {
        font-size: 40px;
    }

    .legal-page__lead {
        font-size: 16px;
    }

    .legal-page__content {
        gap: 36px;
        margin-top: 48px;
    }

    .legal-page__section h2 {
        font-size: 22px;
    }

    .legal-page__section p,
    .legal-page__section li {
        font-size: 15px;
    }

    .not-found-page {
        min-height: calc(100vh - 159px);
        padding: 48px 0;
    }

    .not-found-page__code {
        font-size: 112px;
    }

    .not-found-page__title {
        margin-top: 28px;
        font-size: 36px;
    }

    .not-found-page__text {
        margin-top: 18px;
        font-size: 15px;
    }
}
/*responsive*/
