:root {
    --color-marine: #061A30;
    --color-sand: #E6D5B8;
    --color-mint: #8FD9C8;
    --color-white: #FFFFFF;
    --spacing-fluid: clamp(1rem, 4vw, 3rem);
    --radius-squircle: 24px;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--color-white);
    color: var(--color-marine);
    margin: 0;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    justify-content: space-between;
}

.container {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 var(--spacing-fluid);
}

.centered-container {
    width: 100%;
}

.variable-fluid-spacing {
    padding-top: clamp(1.25rem, 3vw, 2.5rem);
    padding-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

img {
    aspect-ratio: 16/9;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-3-2 {
    aspect-ratio: 3 / 2;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-standard {
    aspect-ratio: 4 / 3;
}

.aspect-portrait {
    aspect-ratio: 3 / 4;
}

.heading-condensed {
    font-family: system-ui, -apple-system, sans-serif;
    font-stretch: condensed;
    font-weight: 700;
    text-transform: uppercase;

    margin-top: 0;
    margin-bottom: 15px;
}

.squircle {
    border-radius: var(--radius-squircle);
}

.soft-shadow {
    box-shadow: 0 8px 24px rgba(6, 26, 48, 0.08);
}

.squircle-radius {
    border-radius: var(--radius-squircle);
}

.neutral-only-bg {
    background-color: #f7f8fa;
}

.bg-marine {
    background-color: var(--color-marine);
    color: var(--color-white);
}

.bg-navy {
    background-color: var(--color-marine);
}

.bg-mint {
    background-color: var(--color-mint);
}

.text-navy {
    color: var(--color-marine);
}

.text-mint {
    color: var(--color-mint);
}

.focus-visible-mint:focus-visible {
    outline: 2px solid var(--color-mint);
    outline-offset: 2px;
}

.text-white {
    color: var(--color-white);
}

.text-sand {
    color: var(--color-sand);
}

.underline-accent {
    text-decoration: none;
    position: relative;
}

.underline-accent::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-sand);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: bottom right;
}

.underline-accent:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.site-header {
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    padding: 25px 0;
}

.site-header.scrolled {
    padding: calc(var(--spacing-fluid) * 0.5) 0;
    box-shadow: 0 4px 12px rgba(6, 26, 48, 0.05);
}

.header-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.main-nav {
    order: 1;
    width: 100%;
    position: relative;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-marine);
    border-radius: 12px;
    color: var(--color-marine);
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle-label span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: currentColor;
    position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background-color: currentColor;
}

.nav-toggle-label span::before {
    top: -6px;
}

.nav-toggle-label span::after {
    top: 6px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-fluid) * 0.8);
    justify-content: center;
}

.nav-link {
    color: var(--color-marine);
    font-weight: 500;
}

.condensed-headings {
    font-family: system-ui, -apple-system, sans-serif;
    font-stretch: condensed;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
    color: var(--color-marine);
}

.legal-card {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(1.25rem, 2.4vw, 2.25rem);
    border: 1px solid rgba(6, 26, 48, 0.08);
}

.legal-card h1 {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: clamp(1.7rem, 3.8vw, 2.6rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--color-marine);
    margin: 0 0 0.6rem 0;
    text-wrap: balance;
}

.legal-card>p {
    margin: 0.75rem 0 0;
    color: rgba(6, 26, 48, 0.75);
    font-size: 0.95rem;
}

.steps-timeline {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.9rem;
}

.steps-timeline section {
    background: var(--color-white);
    border: 1px solid rgba(6, 26, 48, 0.08);
    border-left: 4px solid var(--color-sand);
    border-radius: 14px;
    padding: 1rem 1rem 1rem 1.1rem;
}

.steps-timeline h2 {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin-bottom: 0.45rem;
}

.steps-timeline p {
    margin: 0;
    line-height: 1.65;
    color: rgba(6, 26, 48, 0.92);
}

.legal-contact-block {
    margin-top: 1rem;
    background: var(--color-white);
    border: 1px solid rgba(6, 26, 48, 0.08);
    border-left: 4px solid var(--color-marine);
    border-radius: 14px;
    padding: 1rem 1rem 1rem 1.1rem;
}

.legal-contact-block h2 {
    margin-bottom: 0.45rem;
}

.legal-contact-block p {
    margin: 0.25rem 0;
    line-height: 1.6;
}

.activ_link {
    font-weight: 700;
}

.activ_link::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

@media (max-width: 767px) {
    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .header-container .brand {
        order: 1;
    }

    .header-container .main-nav {
        order: 2;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 0.75rem;
        width: fit-content;
        flex: 0 0 auto;
        max-width: 100%;
        position: relative;
        margin-left: auto;
    }

    .nav-toggle-label {
        display: inline-flex;
        margin-left: 0;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: min(320px, calc(100vw - 2rem));
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem;
        border: 1px solid rgba(6, 26, 48, 0.15);
        border-radius: 12px;
        background-color: var(--color-white);
        box-shadow: 0 10px 24px rgba(6, 26, 48, 0.12);
        z-index: 120;
    }

    .nav-toggle:checked~.nav-list {
        display: flex;
    }

    .nav-list li {
        text-align: left;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 0.5rem 0.25rem;
    }
}

.brand {
    order: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-name {
    font-size: 1rem;
    color: var(--color-marine);
    white-space: nowrap;
    font-weight: 700;
    text-transform: uppercase;
}

.site-header .brand-name {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.1;
}

.brand svg {
    width: 30px;
    height: 30px;
}

.site-header .brand svg {
    width: 30px;
    height: 30px;
}

.site-header .nav-link {
    font-size: 1rem;
    line-height: 1.2;
}

.site-footer {
    padding: calc(var(--spacing-fluid) * 2) 0;

    border-top: 4px solid var(--color-sand);
}

.footer-grid {
    display: grid;
    gap: var(--spacing-fluid);
    grid-template-columns: 1fr;
}

.footer-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0.5rem;
    color: var(--color-sand);
}

.footer-brand .tagline {
    margin-top: 1rem;
    color: var(--color-sand);
    font-style: italic;
}

.contact-address {
    font-style: normal;
    line-height: 1.6;
}

.contact-link {
    color: var(--color-white);
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-sand);
    background: var(--color-white);
    color: var(--color-marine);
    font-family: inherit;
}

.btn-sand {
    background-color: var(--color-sand);
    color: var(--color-marine);
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-stretch: condensed;
    transition: opacity 0.3s ease;
}

.btn-sand:hover {
    opacity: 0.9;
}

@media (min-width: 768px) {
    .header-container {
        flex-direction: row;
    }

    .nav-list {
        justify-content: flex-start;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        width: 100%;
    }

    .brand {
        order: 1;
    }

    .main-nav {
        order: 2;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 0.75rem;
        width: fit-content;
        flex: 0 0 auto;
        max-width: 100%;
        margin-left: auto;
    }

    .nav-toggle-label {
        display: inline-flex;
        margin-left: 0;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: min(320px, calc(100vw - 2rem));
        flex-direction: column;
        gap: 0.25rem;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0.75rem;
        border: 1px solid rgba(6, 26, 48, 0.15);
        border-radius: 12px;
        background-color: var(--color-white);
        box-shadow: 0 10px 24px rgba(6, 26, 48, 0.12);
        z-index: 120;
    }

    .nav-toggle:checked~.nav-list {
        display: flex;
    }

    .nav-list li {
        text-align: left;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 0.5rem 0.25rem;
    }
}

@media (min-width: 1024px) {
    .lg\:flex-row-reverse {
        flex-direction: row-reverse;
    }

    .lg\:w-1\/2 {
        width: 50%;
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* footer extras */
.footer__extras {
    margin-top: 16px;
}

.footer__extrasInner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.footer__social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-social {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    text-decoration: none;
}

.footer-social__icon {
    display: block;
}

.footer__poemWrap {
    max-width: 520px;
}

.footer-poem {
    opacity: 0.9;
    font-size: 0.95em;
    line-height: 1.35;
}

/* --- injected by logo step --- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px
}

.brand-logo {
    width: 28px;
    height: 28px;
    display: inline-block;
    flex: 0 0 auto
}

.brand-logo * {
    vector-effect: non-scaling-stroke
}

/* --- /injected by logo step --- */
.privacy-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-light-grey);
    border-radius: 4px;
    margin-bottom: 0;
}

.flex-wrap {
    flex-wrap: wrap;
}

a,
button {
    cursor: pointer;
    text-align: center;
}

.mb-10 {
    margin-bottom: 2rem;
}
