/* legal.css — About and personal data pages */

.legal {
    flex: 1;
    width: min(64rem, 100%);
    margin: 0 auto;
    padding: 3rem var(--gutter) 4rem;
    animation: legal-in .8s ease both;
}

@keyframes legal-in {
    from {
        opacity: 0;
        transform: translateY(.75rem);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legal {
        animation: none;
    }
}

.legal__title {
    margin: 0 0 3rem;
    font-size: clamp(1.4rem, 2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-bright);
}

.legal__title::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 2px;
    margin: 1.5rem auto 0;
    background: var(--glow);
}

/* Running text, centred, about 75 characters per line. */
.legal__text {
    width: min(50rem, 100%);
    margin: 0 auto;
}

.legal__text p {
    margin: 0 0 1.4rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    text-wrap: pretty;
}

.legal__text p:last-child {
    margin-bottom: 0;
}

/* Error pages: one centred paragraph and a link home. */
.legal--error .legal__text {
    text-align: center;
}

.legal--error .legal__text p + p {
    margin-top: 2rem;
}

/* The second part (personal data) gets a title of its own, set apart. */
.legal__part + .legal__part {
    margin-top: 4rem;
}

.legal__part-title {
    margin: 0 0 1.5rem;
    font-size: clamp(1.1rem, 1.5vw, 1.6rem);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-bright);
}

/* Two columns: heading on the left, text on the right. */
.legal__section {
    display: grid;
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    column-gap: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--rule);
}

.legal__section:last-child {
    border-bottom: 1px solid var(--rule);
}

.legal__heading {
    margin: .2rem 0 0;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--glow-soft);
}

.legal__section p {
    grid-column: 2;
    margin: 0 0 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    text-wrap: pretty;
}

.legal__section p:last-child {
    margin-bottom: 0;
}

.legal__section a {
    color: var(--glow-soft);
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--glow-rgb), .4);
}

@media (max-width: 700px) {
    .legal {
        padding-top: 2rem;
    }

    .legal__section {
        grid-template-columns: 1fr;
        row-gap: .8rem;
        padding: 1.5rem 0;
    }

    .legal__section p,
    .legal__text p {
        grid-column: 1;
        font-size: 1rem;
    }
}
