/* Shared presentation for MemoryPing's public legal pages. */
.legal-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(77, 150, 244, 0.13), transparent 34rem),
        radial-gradient(circle at 85% 25%, rgba(244, 77, 150, 0.09), transparent 30rem),
        var(--bg-color);
}

.legal-page header {
    position: sticky;
}

.legal-page .logo {
    text-decoration: none;
}

.legal-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.legal-nav a:not(.cta-button) {
    color: var(--text-muted);
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--smooth-duration) var(--smooth-ease);
}

.legal-nav a:not(.cta-button):hover,
.legal-nav a:not(.cta-button):focus-visible,
.legal-nav a[aria-current="page"] {
    color: var(--accent-yellow);
}

.legal-page a:focus-visible {
    outline: 3px solid var(--accent-yellow);
    outline-offset: 4px;
    border-radius: 4px;
}

.legal-main {
    width: min(100% - 40px, 920px);
    margin: 0 auto;
    padding: 86px 0 20px;
}

.legal-hero {
    padding: 54px 0 42px;
    border-bottom: 1px solid var(--card-border);
}

.legal-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--accent-yellow);
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin-bottom: 18px;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.legal-intro {
    max-width: 760px;
    color: #c6c6c6;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.75;
}

.legal-updated {
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.legal-content {
    padding: 26px 0 60px;
}

.legal-content section {
    scroll-margin-top: 110px;
    padding: 30px 0;
    border-bottom: 1px solid var(--card-border);
}

.legal-content section:last-child {
    border-bottom: 0;
}

.legal-content h2 {
    margin-bottom: 14px;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    line-height: 1.3;
}

.legal-content h3 {
    margin: 22px 0 8px;
    color: #f2f2f2;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.08rem;
}

.legal-content p,
.legal-content li {
    color: #b8b8b8;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.78;
}

.legal-content p + p {
    margin-top: 14px;
}

.legal-content ul {
    margin: 12px 0 0 1.25rem;
}

.legal-content li + li {
    margin-top: 9px;
}

.legal-content strong {
    color: #ededed;
}

.legal-content a,
.legal-footer a {
    color: #79b2fb;
    text-underline-offset: 3px;
}

.legal-content a:hover,
.legal-footer a:hover {
    color: var(--accent-yellow);
}

.legal-notice {
    margin-top: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(244, 224, 77, 0.28);
    border-radius: 16px;
    background: rgba(244, 224, 77, 0.06);
}

.legal-notice p {
    color: #d1d1d1;
}

.legal-footer {
    margin-top: 0;
}

.legal-footer .footer-links {
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 760px) {
    .legal-page header {
        padding: 14px 20px;
    }

    .legal-page .logo-text {
        display: none;
    }

    .legal-nav {
        gap: 14px;
    }

    .legal-nav .home-link,
    .legal-nav .cta-button {
        display: none;
    }

    .legal-nav a:not(.cta-button) {
        font-size: 0.9rem;
    }

    .legal-main {
        width: min(100% - 32px, 920px);
        padding-top: 28px;
    }

    .legal-hero {
        padding: 38px 0 30px;
    }

    .legal-content section {
        padding: 25px 0;
    }
}
