.fhyl-legal {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 40px;
    padding: 80px 24px 48px;
    max-width: 640px;
    margin: 0 auto;
}

.fhyl-legal__title {
    margin: 0;
    font-family: var(--fhyl-font-display);
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 300;
    color: var(--fhyl-color-text-strong);
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-align: center;
}

.fhyl-legal__body {
    display: grid;
    gap: 32px;
    width: 100%;
}

.fhyl-legal__section {
    display: grid;
    gap: 8px;
}

.fhyl-legal__heading {
    margin: 0;
    font-family: var(--fhyl-font-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--fhyl-color-text-strong);
}

.fhyl-legal__text {
    margin: 0;
    font-family: var(--fhyl-font-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--fhyl-color-text-muted);
}

.fhyl-legal__text a {
    color: var(--fhyl-color-text-strong);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--fhyl-duration-fast) var(--fhyl-ease);
}

.fhyl-legal__text a:hover,
.fhyl-legal__text a:focus-visible {
    color: var(--fhyl-color-accent);
}

.fhyl-legal__back {
    display: inline-grid;
    justify-items: center;
    gap: 8px;
    padding: 4px 8px;
    margin: -4px -8px;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    border-radius: 999px;
}

.fhyl-legal__back:focus-visible {
    outline: 2px solid rgba(126, 97, 223, 0.45);
    outline-offset: 8px;
}

.fhyl-legal__back-label {
    display: inline-block;
    font-family: var(--fhyl-font-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fhyl-color-text-strong);
    transition:
        color var(--fhyl-duration-fast) var(--fhyl-ease),
        transform 220ms var(--fhyl-ease);
}

.fhyl-legal__back:hover .fhyl-legal__back-label,
.fhyl-legal__back:focus-visible .fhyl-legal__back-label {
    color: var(--fhyl-color-accent-deep);
    transform: translateY(-1px) scale(1.025);
}

.fhyl-legal__back-line {
    width: 40px;
    height: 1px;
    background-color: var(--fhyl-color-text-strong);
    transition:
        width var(--fhyl-duration-base) var(--fhyl-ease),
        background-color var(--fhyl-duration-fast) var(--fhyl-ease);
}

.fhyl-legal__back:hover .fhyl-legal__back-line,
.fhyl-legal__back:focus-visible .fhyl-legal__back-line {
    width: 60px;
    background-color: var(--fhyl-color-accent);
}

.fhyl-404 {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 32px;
    padding: 48px 24px;
    text-align: center;
}

.fhyl-404__code {
    margin: 0;
    font-family: var(--fhyl-font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 300;
    color: var(--fhyl-color-text-strong);
    letter-spacing: -0.04em;
    line-height: 1;
}

.fhyl-404__text {
    margin: 0;
    font-family: var(--fhyl-font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--fhyl-color-text-muted);
    max-width: 360px;
}

.fhyl-404__link {
    display: inline-grid;
    justify-items: center;
    gap: 8px;
    padding: 4px 8px;
    margin: -4px -8px;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    border-radius: 999px;
}

.fhyl-404__link:focus-visible {
    outline: 2px solid rgba(126, 97, 223, 0.45);
    outline-offset: 8px;
}

.fhyl-404__link-label {
    display: inline-block;
    font-family: var(--fhyl-font-sans);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--fhyl-color-text-strong);
    transition:
        color var(--fhyl-duration-fast) var(--fhyl-ease),
        transform 220ms var(--fhyl-ease);
}

.fhyl-404__link:hover .fhyl-404__link-label,
.fhyl-404__link:focus-visible .fhyl-404__link-label {
    color: var(--fhyl-color-accent-deep);
    transform: translateY(-1px) scale(1.025);
}

.fhyl-404__link-line {
    width: 48px;
    height: 1px;
    background-color: var(--fhyl-color-text-strong);
    transition:
        width var(--fhyl-duration-base) var(--fhyl-ease),
        background-color var(--fhyl-duration-fast) var(--fhyl-ease);
}

.fhyl-404__link:hover .fhyl-404__link-line,
.fhyl-404__link:focus-visible .fhyl-404__link-line {
    width: 72px;
    background-color: var(--fhyl-color-accent);
}
