body.legal-page {
    position: relative;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 203, 226, 0.55), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 230, 188, 0.5), transparent 28%),
        linear-gradient(180deg, #fffdfd 0%, #fff7fa 46%, #fff4ee 100%);
    color: #3a2431;
    overflow-x: hidden;
}

body.legal-page::before {
    content: "";
    position: fixed;
    inset: auto auto 6% -2rem;
    width: min(30rem, 58vw);
    aspect-ratio: 1;
    background: url("/PinkLogo.png?v=20260619") center/contain no-repeat;
    opacity: 0.14;
    filter: saturate(1.32) contrast(1.06);
    pointer-events: none;
    z-index: 0;
}

.legal-page-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 40px 20px 56px;
}

.legal-page-ornaments {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.legal-emoji {
    position: absolute;
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    opacity: 0.42;
    filter: saturate(1.08);
    animation: legal-float linear infinite;
}

.legal-emoji:nth-child(1) { top: 9%; left: 5%; animation-duration: 18s; animation-delay: -5s; }
.legal-emoji:nth-child(2) { top: 18%; right: 9%; animation-duration: 20s; animation-delay: -8s; }
.legal-emoji:nth-child(3) { top: 42%; left: 8%; animation-duration: 23s; animation-delay: -11s; }
.legal-emoji:nth-child(4) { top: 32%; right: 14%; animation-duration: 19s; animation-delay: -7s; }
.legal-emoji:nth-child(5) { bottom: 18%; left: 10%; animation-duration: 22s; animation-delay: -13s; }
.legal-emoji:nth-child(6) { bottom: 12%; right: 8%; animation-duration: 24s; animation-delay: -16s; }
.legal-emoji:nth-child(7) { top: 62%; left: 48%; animation-duration: 21s; animation-delay: -9s; }
.legal-emoji:nth-child(8) { top: 12%; left: 42%; animation-duration: 17s; animation-delay: -12s; }

.legal-card {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 28px clamp(1.1rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem);
    border: 1px solid rgba(231, 122, 164, 0.18);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 26px 80px rgba(168, 89, 120, 0.12);
    backdrop-filter: blur(16px);
}

.legal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(239, 126, 169, 0.4), rgba(255, 210, 155, 0.26));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.legal-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.legal-brand img {
    width: clamp(68px, 12vw, 110px);
    height: auto;
    filter: drop-shadow(0 12px 22px rgba(232, 138, 176, 0.24));
}

.legal-brand-copy span {
    display: block;
    margin-bottom: 0.25rem;
    color: #ba6a8c;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.legal-brand-copy strong {
    display: block;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    color: #8f355e;
}

.legal-page h1,
.legal-page h2,
.legal-page h3 {
    color: #842f56;
}

.legal-page h1 {
    margin-bottom: 0.35rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.legal-page h2 {
    margin-top: 2rem;
}

.legal-page p,
.legal-page li,
.legal-page th,
.legal-page td {
    color: #4a3240;
}

.legal-updated {
    margin-top: 0;
    margin-bottom: 1.4rem;
    color: #9b5e79;
    font-weight: 600;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 248, 251, 0.88);
}

.legal-table th,
.legal-table td {
    padding: 12px 14px;
    text-align: left;
}

.legal-table thead {
    background: rgba(244, 183, 207, 0.24);
}

.legal-table th {
    border-bottom: 1px solid rgba(205, 137, 165, 0.26);
}

.legal-table td {
    border-bottom: 1px solid rgba(205, 137, 165, 0.16);
}

.legal-table tbody tr:last-child td {
    border-bottom: 0;
}

.legal-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.75rem;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef7ea9, #f8ba8a);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(239, 126, 169, 0.24);
}

.legal-footer-link:hover {
    color: #fff;
    transform: translateY(-1px);
}

@keyframes legal-float {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(10px, -14px, 0) rotate(8deg);
    }
    100% {
        transform: translate3d(-8px, 10px, 0) rotate(-6deg);
    }
}

@media (max-width: 768px) {
    body.legal-page::before {
        width: 76vw;
        inset: auto auto 2% -10vw;
        opacity: 0.12;
    }

    .legal-page-shell {
        padding: 24px 14px 40px;
    }

    .legal-card {
        border-radius: 24px;
        padding-top: 22px;
    }

    .legal-brand {
        gap: 0.8rem;
        align-items: flex-start;
    }

    .legal-emoji {
        font-size: 1.55rem;
        opacity: 0.3;
    }

    .legal-table th,
    .legal-table td {
        padding: 10px;
        font-size: 0.94rem;
    }

    .legal-footer-link {
        width: 100%;
    }
}