:root {
    font-size: 100%;
    font-family: bree, sans-serif;
    font-weight: 300;
    font-style: normal;
    line-height: 1.2;
    color: var(--surface-dark);
    background-color: var(--surface-white);
    --surface-white: #f8fbf9;
    --surface-dark: #040907;
    --surface-dark-transparent: #0409072e;
    --brand-darkblue: #005a64;
    --brand-blue: #0098b5;
    --brand-gold: #d39d2f;
    --brand-primary: var(--brand-darkblue);
    --box-shadow-stnd: 0px 0px 1rem var(--surface-dark-transparent);
}

::selection {
    background-color: var(--brand-darkblue);
    color: var(--surface-white);
}
::-moz-selection {
    background-color: var(--brand-darkblue);
    color: var(--surface-white);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surface-white);
    position: relative;
    color: var(--brand-darkblue);
}

h1 {
    font-size: 2rem;
    font-family: bree-serif, serif;
    font-weight: 600;
    font-style: italic;
    color: var(--brand-darkblue);
    text-align: center;
    margin: 2.4rem auto 1.2rem;
}

h2 {
    font-size: 1.5rem;
    font-family: bree-serif, serif;
    font-weight: 600;
    font-style: italic;
    color: var(--brand-darkblue);
    text-align: center;
    margin: 2.4rem auto 1.2rem;
}

h3 {
    font-size: 1.25rem;
    font-family: bree-serif, serif;
    font-weight: 600;
    color: var(--brand-darkblue);
    text-align: left;
    margin: 1.5rem 0 0.75rem;
}

p {
    font-size: 1.125rem;
    text-align: center;
    margin: 0 auto;
}

@media (min-width: 640px) {
    p {
        width: 75%;
        max-width: 420px;
    }
}

p a {
    text-decoration: none;
    color: var(--brand-darkblue);
    font-weight: 600;
    transition: .5s ease;
}

p a:hover {
    color: var(--brand-blue);
}

/* Legal pages styling */
section h1 + p,
section h2 + p,
section h3 + p,
section h4 + p {
    text-align: left;
    max-width: none;
    width: 100%;
    margin: 0 0 1rem 0;
}

section ul {
    text-align: left;
    padding-left: 1rem;
    margin: 0 0 1rem 0;
}

section p {
    text-align: left;
    max-width: none;
    width: 100%;
    margin: 0 0 1rem 0;
}

.boxed-text {
    max-width: 420px;
    text-align: center;
    margin: 0 auto;
}

b {
    font-weight: 600;
}

@media (min-width: 1024px) {
    figure img {
        max-width: 50%;
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

nav a {
    color: var(--brand-darkblue);
    text-decoration: none;
    font-weight: 600;
    transition: 0.5s ease;
}

main {
    flex: 1;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-wrapper {
    margin-top: 5%;
    margin-bottom: 5%;
    background-color: var(--surface-white);
    border-radius: 2.5rem;
    box-shadow: var(--box-shadow-stnd);
    overflow: hidden;
    width: 85%;
}

.section-wrapper-inner {
    margin: 0 auto;
    
    padding: 1rem 2.5rem;
}

@media (min-width: 1024px) {
    .section-wrapper {
        width: auto;
        border-radius: 5rem;
    }
    .section-wrapper-inner {
        padding: 2.5rem 4rem;
    }
}

section + section {
    margin-top: 2rem;
}

figure {
    margin-top: 1rem;
    text-align: center;
}

figure img {
    width: auto;
    max-width: 90%;
}

@media (min-width: 640px) {
    figure img {
        max-width: 75%;
    }
}

@media (min-width: 1024px) {
    figure img {
        max-width: 70%;
    }
}

.logo {
    margin-left: .5rem;
    max-width: 420px;
}

.page-logo {
    text-align: center;
    margin: 0 auto 2rem;
}

.page-logo a {
    display: inline-block;
    text-decoration: none;
    border: none;
}

.page-logo img {
    max-width: 200px;
    width: 100%;
    height: auto;
    transition: .5s ease;
}

.page-logo a:hover img {
    opacity: .75;
}

form {
    display: grid;
    gap: 0.75rem;
    max-width: 480px;
}

input,
textarea {
    padding: 0.75rem;
    border: 1px solid var(--surface-white);
    border-radius: 4px;
    font: inherit;
}

button {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    background: var(--brand-darkblue);
    color: var(--surface-white);
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem 1.2rem;
    margin: 2.4rem auto 2.4rem;
    font-size: 1.125rem;
    
    border-radius: 999px;
    background: var(--brand-darkblue);
    color: var(--surface-white);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.5s ease, transform 0.5s ease;
    box-shadow: var(--box-shadow-stnd);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--brand-blue);
}

.img-wrapper {
    width: 100%;
    border-radius: 2.5rem;
    overflow: hidden;
    display: flex;
}
.img-wrapper img {
    width: 100%;
}

footer {
    text-align: center;
    padding: 1rem;
    color: var(--brand-darkblue);
    position: relative;
    z-index: 1;
    width: 100%;
}

footer nav {
    display: inline-block;
    background-color: var(--surface-white);
    padding: 1rem 2rem 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 999px;
    box-shadow: var(--box-shadow-stnd);

}

footer nav a {
    font-size: 1rem;
}

footer nav a:hover {
    color: var(--brand-blue);
}
