/* ClinX legal pages and cookie consent */
.legal-links {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.legal-links a,
.legal-links button {
    border: 0;
    background: transparent;
    color: rgba(224, 224, 255, 0.42);
    font: inherit;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.legal-links a:hover,
.legal-links button:hover {
    color: #00f3ff;
}

.cookie-consent {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 5000;
    display: none;
    justify-content: center;
    pointer-events: none;
}

.cookie-consent.show {
    display: flex;
}

.cookie-consent-card {
    width: min(860px, 100%);
    pointer-events: auto;
    border: 1px solid rgba(0, 243, 255, 0.24);
    border-radius: 10px;
    background: rgba(9, 12, 26, 0.97);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48), 0 0 30px rgba(0, 243, 255, 0.08);
    color: #e0e0ff;
    padding: 16px;
    backdrop-filter: blur(16px);
}

.cookie-consent-title {
    margin: 0 0 6px;
    color: #00f3ff;
    font-size: 17px;
    font-weight: 500;
}

.cookie-consent-text {
    color: rgba(224, 224, 255, 0.72);
    font-size: 13px;
    line-height: 1.5;
}

.cookie-consent-options {
    display: none;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
}

.cookie-consent.expanded .cookie-consent-options {
    display: grid;
    gap: 10px;
}

.cookie-choice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px;
    align-items: start;
    color: rgba(224, 224, 255, 0.78);
    font-size: 13px;
}

.cookie-choice input {
    margin-top: 2px;
}

.cookie-choice small {
    display: block;
    margin-top: 2px;
    color: rgba(224, 224, 255, 0.46);
    line-height: 1.35;
}

.cookie-consent-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.cookie-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #e0e0ff;
    padding: 0 12px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.cookie-btn.primary {
    border-color: rgba(0, 243, 255, 0.42);
    background: rgba(0, 243, 255, 0.13);
    color: #00f3ff;
}

.cookie-btn:hover {
    border-color: rgba(0, 243, 255, 0.5);
    color: #00f3ff;
}

.legal-page {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 10%, rgba(0, 243, 255, 0.08), transparent 34%), #05050a;
    color: #e0e0ff;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 34px 18px;
}

.legal-shell {
    width: min(980px, 100%);
    margin: 0 auto;
}

.legal-card {
    border: 1px solid rgba(0, 243, 255, 0.18);
    background: rgba(15, 18, 34, 0.94);
    border-radius: 10px;
    padding: 26px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.legal-brand {
    color: #00f3ff;
    font-family: 'Orbitron', monospace;
    font-size: 30px;
    margin-bottom: 8px;
}

.legal-card h1 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #fff;
}

.legal-card h2 {
    margin: 24px 0 8px;
    font-size: 18px;
    color: #00ff88;
}

.legal-card p,
.legal-card li {
    color: rgba(224, 224, 255, 0.76);
    font-size: 15px;
    line-height: 1.62;
}

.legal-card ul {
    padding-left: 18px;
    margin: 8px 0 0;
}

.legal-note {
    margin: 14px 0;
    padding: 12px;
    border-left: 3px solid #00f3ff;
    background: rgba(0, 243, 255, 0.07);
    color: rgba(224, 224, 255, 0.82);
}

.legal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.legal-action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #00f3ff;
    text-decoration: none;
    background: rgba(0, 243, 255, 0.1);
    cursor: pointer;
}

@media (max-width: 620px) {
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-consent-actions,
    .legal-actions {
        display: grid;
    }

    .cookie-btn,
    .legal-action {
        width: 100%;
    }

    .legal-card {
        padding: 18px;
    }
}
