/* Legal pages + cookie banner */

.legal-page {
    padding: calc(var(--header-height, 80px) + 2.75rem) 0 5rem;
}

.legal-hero {
    max-width: 760px;
    margin: 0 auto 1.5rem;
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0.7rem;
    color: var(--accent-orange);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.45rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.legal-updated {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.45rem;
    max-width: 760px;
    margin: 0 auto 2rem;
    padding: 0;
}

.legal-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.legal-nav a:hover {
    color: var(--text-main);
    border-color: rgba(255, 87, 34, 0.4);
}

.legal-nav a.is-active {
    color: #fff;
    border-color: var(--accent-orange);
    background: rgba(255, 87, 34, 0.16);
}

.legal-article {
    max-width: 760px;
    margin: 0 auto;
    color: #d5dbe6;
    font-size: 1.02rem;
    line-height: 1.7;
}

.legal-article h2 {
    margin: 2.1rem 0 0.7rem;
    color: var(--text-main);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.legal-article h2:first-child {
    margin-top: 0;
}

.legal-article h3 {
    margin: 1.35rem 0 0.45rem;
    color: var(--text-main);
    font-size: 1.02rem;
}

.legal-article p,
.legal-article ul {
    margin: 0 0 0.9rem;
}

.legal-article ul {
    padding-left: 1.2rem;
}

.legal-article li {
    margin-bottom: 0.35rem;
}

.legal-article a {
    color: #ff8a65;
}

.legal-article a:hover {
    color: #ffccbc;
}

.legal-note {
    margin-top: 2.4rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.1rem;
    margin-top: 0.85rem;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
}

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

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem;
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: rgba(8, 11, 18, 0.94);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner-copy {
    min-width: 0;
}

.cookie-banner-copy p {
    margin: 0;
    color: #d5dbe6;
    font-size: 0.92rem;
    line-height: 1.5;
}

.cookie-banner-copy a {
    color: #ff8a65;
}

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

.cookie-banner-actions button {
    min-height: 40px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
}

.cookie-btn-accept {
    border: none;
    background: var(--accent-orange);
    color: #fff;
}

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

@media (max-width: 720px) {
    .legal-page {
        padding: calc(var(--header-height, 72px) + 1.75rem) 0 3.5rem;
    }

    .legal-nav a {
        min-height: 38px;
        padding: 0.35rem 0.8rem;
        font-size: 0.82rem;
    }

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-banner-actions button {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legal-nav a,
    .cookie-banner {
        transition: none;
    }
}
