/* Tablet and down: relax the desktop legal document framing and keep the document readable. */
@media (max-width: 1024px) {
    .cgu-content {
        min-height: 100vh;
        padding: 1.5rem 1rem 2rem;
    }

    .cgu-content header {
        position: sticky;
        top: 0;
        width: 100%;
        padding: 0.9rem 1rem;
    }

    .cgu-content header h1 {
        margin-left: 0;
        font-size: clamp(1.45rem, 3vw, 1.85rem);
    }

    .cgu-content main {
        padding-top: 1.5rem;
    }

    .cgu-content .cgu-type {
        max-width: 100%;
        padding: 1.5rem 1.5rem;
    }

    .cgu-content .cgu-type p {
        font-size: clamp(1rem, 1.8vw, 1.1rem);
    }
}

/* Phone: simplify the header and reduce card density for long reading sessions. */
@media (max-width: 767px) {
    .cgu-content {
        padding: 1rem 0.75rem 1.5rem;
    }

    .cgu-content header {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        padding: 0.85rem 0.75rem;
    }

    .cgu-content .cgu-left,
    .cgu-content .cgu-center,
    .cgu-content .cgu-right {
        flex: 0 0 100%;
    }

    .cgu-content .cgu-center {
        order: -1;
    }

    .cgu-content .btn {
        width: min(100%, 18rem);
        margin: 0 auto;
    }

    .cgu-content header h1 {
        font-size: clamp(1.2rem, 5.8vw, 1.5rem);
    }

    .cgu-content main {
        padding-top: 1rem;
    }

    .cgu-content .cgu-type {
        padding: 1.15rem 0.85rem;
        border-radius: 14px;
    }

    .cgu-content .cgu-type h2,
    .cgu-content .cgu-type h3 {
        font-size: 1.05rem;
    }

    .cgu-content .cgu-type li,
    .cgu-content .cgu-type p {
        font-size: 0.98rem;
    }
}

/* Small phones: reduce outer spacing another step. */
@media (max-width: 479px) {
    .cgu-content {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }

    .cgu-content .btn {
        width: 100%;
    }

    .cgu-content .cgu-type {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
}
