body.legal-page {
    background:
        radial-gradient(circle at top left, rgba(151, 179, 155, 0.18), transparent 32%),
        radial-gradient(circle at top right, rgba(217, 122, 108, 0.14), transparent 28%),
        linear-gradient(180deg, #f6efe7 0%, #f9f5ef 36%, #fbf9f6 100%);
    color: #3b2f28;
}

body.legal-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(98, 78, 64, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(98, 78, 64, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 78%);
    opacity: 0.42;
}

.legal-shell {
    position: relative;
    width: min(calc(100% - 40px), 1180px);
    margin: 0 auto;
    padding: 36px 0 80px;
}

.legal-page .btn {
    min-height: 50px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.legal-page .btn--ghost {
    border: 1px solid rgba(75, 58, 47, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: #3f3028;
    box-shadow: none;
}

.legal-page .btn--primary {
    background: linear-gradient(135deg, #c96f60, #dc8e7c);
    color: #fff;
    box-shadow: 0 18px 32px rgba(201, 111, 96, 0.18);
}

.legal-page .btn:hover {
    transform: translateY(-1px);
}

.legal-hero {
    margin-bottom: 28px;
    padding: 0;
    border: 1px solid rgba(84, 64, 52, 0.1);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 237, 0.94)),
        #fff;
    box-shadow:
        0 28px 60px rgba(68, 52, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.legal-hero__top {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 300px;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 0;
    padding: 34px 34px 24px;
}

.legal-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 15px;
    border: 1px solid rgba(201, 111, 96, 0.16);
    border-radius: 999px;
    background: rgba(201, 111, 96, 0.08);
    color: #b26452;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.legal-hero__title {
    max-width: 760px;
}

.legal-hero__title h1 {
    margin: 16px 0 18px;
    color: #3c2d26;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(3rem, 6vw, 4.9rem);
    line-height: 0.9;
    letter-spacing: 0.01em;
    text-transform: none;
}

.legal-hero__title p {
    margin: 0;
    max-width: 62ch;
    color: #6c5a50;
    font-size: 1rem;
    line-height: 1.9;
}

.legal-hero__brand {
    display: grid;
    align-content: start;
    justify-items: stretch;
    gap: 14px;
}

.legal-hero__brand-media {
    width: 100%;
    min-height: 196px;
    padding: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(79, 62, 50, 0.08);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 239, 231, 0.94)),
        #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 16px 32px rgba(64, 48, 38, 0.08);
}

.legal-hero__brand-media img {
    width: min(160px, 100%);
    max-height: 100px;
    object-fit: contain;
}

.legal-hero__brand-caption {
    margin: 0;
    color: #8f7767;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
}

.legal-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 34px 0;
    border-top: 1px solid rgba(84, 64, 52, 0.08);
}

.legal-hero__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    padding: 22px 34px 34px;
}

.legal-summary-card {
    position: relative;
    min-height: 136px;
    padding: 22px 22px 20px;
    border: 1px solid rgba(87, 68, 55, 0.08);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 245, 240, 0.94)),
        #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 14px 26px rgba(68, 52, 42, 0.06);
}

.legal-summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #c96f60, #d8b083 58%, rgba(216, 176, 131, 0));
}

.legal-summary-card strong,
.legal-summary-card span {
    display: block;
}

.legal-summary-card strong {
    margin-bottom: 10px;
    color: #8b7364;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.legal-summary-card span {
    color: #4f4037;
    font-size: 0.96rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.legal-summary-card a {
    color: #b26452;
    font-weight: 800;
    text-decoration: none;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.legal-card {
    position: relative;
    overflow: hidden;
    padding: 26px 28px 28px;
    border: 1px solid rgba(84, 64, 52, 0.08);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 248, 244, 0.92)),
        #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        0 18px 36px rgba(68, 52, 42, 0.07);
}

.legal-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #c96f60, #d8b083 58%, rgba(216, 176, 131, 0));
}

.legal-card:first-child,
.legal-card:last-child {
    grid-column: 1 / -1;
}

.legal-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(84, 64, 52, 0.08);
}

.legal-card__header h2 {
    margin: 0;
    color: #382b24;
    font-size: 1.45rem;
    line-height: 1.18;
}

.legal-card__header p {
    margin: 10px 0 0;
    color: #6b584e;
    line-height: 1.8;
}

.legal-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(201, 111, 96, 0.16);
    border-radius: 999px;
    background: rgba(201, 111, 96, 0.08);
    color: #b26452;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.legal-card p {
    margin: 0 0 16px;
    color: #584a41;
    line-height: 1.82;
}

.legal-card a {
    color: #af5f4d;
    font-weight: 700;
    text-decoration: none;
}

.legal-list,
.legal-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-list {
    display: grid;
    gap: 14px;
}

.legal-list li {
    position: relative;
    padding-left: 20px;
    color: #584a41;
    line-height: 1.78;
}

.legal-list li::before {
    content: "";
    position: absolute;
    top: 0.78em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c96f60, #d8b083);
    transform: translateY(-50%);
}

.legal-steps {
    counter-reset: legal-step;
    display: grid;
    gap: 16px;
}

.legal-steps li {
    position: relative;
    min-height: 42px;
    padding-left: 56px;
    color: #584a41;
    line-height: 1.78;
}

.legal-steps li::before {
    counter-increment: legal-step;
    content: counter(legal-step, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #46352c, #70564a);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.legal-note {
    margin-top: 22px;
    padding: 20px 22px;
    border: 1px solid rgba(201, 111, 96, 0.14);
    border-left: 4px solid #c96f60;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(201, 111, 96, 0.08), rgba(255, 255, 255, 0.96));
    color: #5c473d;
}

.legal-note strong {
    display: block;
    margin-bottom: 8px;
    color: #3f3028;
    font-size: 0.92rem;
}

.legal-cross-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.legal-link-card {
    padding: 22px 22px 20px;
    border: 1px solid rgba(87, 68, 55, 0.08);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 237, 0.94)),
        #fff;
}

.legal-link-card strong {
    display: block;
    margin-bottom: 8px;
    color: #382b24;
    font-size: 1.02rem;
}

.legal-link-card p {
    margin: 0 0 16px;
}

.legal-link-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b26452;
    font-weight: 800;
}

.legal-link-card a::after {
    content: "\2192";
    font-size: 1rem;
}

.legal-footer {
    margin-top: 20px;
    padding: 22px 24px;
    border: 1px solid rgba(84, 64, 52, 0.08);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 243, 237, 0.9)),
        #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 18px 36px rgba(68, 52, 42, 0.06);
}

.legal-footer p {
    margin: 0;
    color: #645248;
    line-height: 1.82;
}

@media (max-width: 980px) {
    .legal-hero__top {
        grid-template-columns: 1fr;
    }

    .legal-hero__brand {
        grid-template-columns: 124px 1fr;
        align-items: center;
    }

    .legal-hero__brand-media {
        width: 124px;
        min-height: 124px;
    }

    .legal-grid {
        grid-template-columns: 1fr;
    }

    .legal-card:first-child,
    .legal-card:last-child {
        grid-column: auto;
    }
}

@media (max-width: 780px) {
    body.legal-page::before {
        background-size: 22px 22px;
        opacity: 0.24;
    }

    .legal-shell {
        width: min(calc(100% - 20px), 100%);
        padding: 20px 0 56px;
    }

    .legal-hero {
        border-radius: 24px;
    }

    .legal-hero__top {
        padding: 22px 16px 18px;
        gap: 18px;
    }

    .legal-hero__title h1 {
        font-size: clamp(2.35rem, 12vw, 3.6rem);
    }

    .legal-hero__title p {
        font-size: 0.96rem;
        line-height: 1.8;
    }

    .legal-hero__brand {
        grid-template-columns: 88px 1fr;
        gap: 14px;
    }

    .legal-hero__brand-media {
        width: 88px;
        min-height: 88px;
        padding: 14px;
        border-radius: 20px;
    }

    .legal-hero__brand-caption {
        text-align: left;
    }

    .legal-hero__actions,
    .legal-hero__summary {
        padding-left: 16px;
        padding-right: 16px;
    }

    .legal-hero__actions {
        display: grid;
        padding-top: 16px;
    }

    .legal-hero__actions .btn {
        width: 100%;
    }

    .legal-hero__summary {
        grid-template-columns: 1fr;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .legal-summary-card {
        min-height: 0;
        padding: 18px;
        border-radius: 20px;
    }

    .legal-card {
        padding: 20px 16px 22px;
        border-radius: 22px;
    }

    .legal-card__header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .legal-card__header h2 {
        font-size: 1.24rem;
    }

    .legal-steps li {
        padding-left: 50px;
    }

    .legal-steps li::before {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .legal-cross-links {
        grid-template-columns: 1fr;
    }

    .legal-link-card,
    .legal-note,
    .legal-footer {
        border-radius: 20px;
    }

    .legal-link-card,
    .legal-note,
    .legal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}
