/* Páginas legais e banner de cookies */

.legal-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 55%, var(--primary-light) 100%);
    color: var(--text-white);
    padding: 2.75rem 0 2.25rem;
}

.legal-hero h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.legal-hero .legal-updated {
    font-size: 0.9rem;
    opacity: 0.88;
    font-weight: 300;
}

.legal-page {
    padding: 2.75rem 0 4rem;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(13, 115, 119, 0.05) 0%, transparent 45%),
        var(--bg-white);
}

.legal-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.legal-content {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 2.1rem 0 0.85rem;
    line-height: 1.3;
}

.legal-content h3 {
    font-size: 1.08rem;
    font-weight: 600;
    margin: 1.5rem 0 0.6rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.25rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--primary-color);
    font-weight: 500;
}

.legal-note {
    background: rgba(13, 115, 119, 0.07);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.legal-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.legal-nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.legal-nav-links a:hover {
    text-decoration: underline;
}

/* Footer expandido */
.footer {
    text-align: left;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-copy {
    text-align: center;
}

.footer-copy p {
    margin-bottom: 0.35rem;
    opacity: 0.8;
    font-size: 0.85rem;
}

.footer-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.55;
    max-width: 640px;
    margin: 0.5rem auto 0;
    line-height: 1.5;
}

/* Banner cookies */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 10000;
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    padding: 1.25rem 1.35rem;
    display: none;
    border: 1px solid var(--border-color);
    animation: cookieSlideUp 0.35s ease;
}

.cookie-banner.is-visible {
    display: block;
}

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cookie-banner a {
    color: var(--primary-color);
    font-weight: 500;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-btn {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn-accept {
    background: var(--primary-color);
    color: var(--text-white);
}

.cookie-btn-accept:hover {
    background: var(--primary-dark);
}

.cookie-btn-essential {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.cookie-btn-essential:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 88px; /* acima do WhatsApp float */
        max-width: none;
    }

    .footer-links {
        justify-content: center;
        gap: 0.4rem 1rem;
    }
}
