﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#wrapper {
    max-width: 615px;
    margin: 16px auto;
    border: 2px solid #273896;
    background-color: #fff;
    overflow: hidden;
    color: #231f20;
    font-family: "Karla", sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

header {
    padding: 0 0 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-direction: row-reverse;
}

article {
    padding: 0 16px;
    position: relative;
}

.flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 10px 0 10px;
}

.flex p {
    padding-bottom: 4px;
}

.flex p {
    margin: 0;
}

footer {
    background: #273896;
    padding: 4px 16px;
}

footer p {
    margin: 0;
    text-align: center;
}

footer a {
    color: #fff;
}

.link {
    color: #273996;
    text-decoration: underline;
}

:is(p, ul) {
    margin: 0 0 12px;
    text-align: justify;
}

h1 {
    margin: 16px 0;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 700;
    color: #273896;
}

h1 small {
    font-size: 16px;
    display: block;
}

h1 span {
    display: block;
    font-size: 16px;
}

h2 {
    font-size: 16px;
    font-weight: 700;
    color: #273896;
}

a {
    color: #231f20;
    text-decoration: none;
}

ul {
    list-style: none;
}

ul li {
    padding-left: 20px;
}

li:before {
    content: '\2022';
    float: left;
    margin-top: -2px;
    font-size: 18px;
    text-indent: -14px;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

.padding {
    padding-bottom: 0;
}

figure {
    float: right;
    margin: -34px 0 0 14px;
}

ul ul {
    padding-bottom: 0;
}

span {
    white-space: nowrap;
}

a span {
    display: inline-block;
}

@media all and (max-width: 613px) {
    #wrapper {
        border: none;
        margin: 0 auto;
        hyphens: auto;
        text-wrap: pretty;
    }

    .flex {
        margin: 0 0 16px;
    }

    .link {
        white-space: normal;
    }

    footer {
        padding: 10px 16px;
    }

    ul li {
        padding-left: 16px;
    }

    h1 br {
        display: none;
    }

    li:before {
        text-indent: -16px;
    }

    :is(p, ul) {
        text-align: left;
    }

    p span {
        white-space: nowrap;
    }

    figure {
        float: none;
        margin: 0;
        position: absolute;
        bottom: 0;
        right: 16px;
    }
}

@media all and (max-width: 480px) {
    header {
        flex-direction: column;
    }

    header div {
        width: 100%;
    }

    .flex {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding-right: 0;
    }

    .flex p {
        text-align: center;
    }

    figure {
        float: none;
        margin: 0;
        position: absolute;
        bottom: 102px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}